运行python mrjob字数计算示例时出错

时间:2012-07-10 11:49:40

标签: python mapreduce emr mrjob

我正在尝试使用mrjob运行示例字计数地图缩减任务。我收到以下错误:

Traceback (most recent call last):
  File "mr.py", line 3, in <module>
    from mrjob.job import MRJob
  File "/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/mrjob-0.4_dev-py2.7.egg/mrjob/job.py", line 39, in <module>
    from mrjob.launch import MRJobLauncher
  File "/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/mrjob-0.4_dev-py2.7.egg/mrjob/launch.py", line 32, in <module>
    from mrjob.options import add_basic_opts
  File "/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/mrjob-0.4_dev-py2.7.egg/mrjob/options.py", line 22, in <module>
    from mrjob.runner import CLEANUP_CHOICES
  File "/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/mrjob-0.4_dev-py2.7.egg/mrjob/runner.py", line 49, in <module>
    from mrjob.fs.local import LocalFilesystem
ImportError: No module named fs.local

2 个答案:

答案 0 :(得分:0)

我也有这个确切的错误。您是否像我最初那样直接从Git存储库中克隆了mrjob?如果是这样,请尝试使用其中一个tagged版本,例如v0.3.4.1,这对我有用。

答案 1 :(得分:0)

我是其中一位维护者。下次出现这样的问题时,您应该在Github上打开一张票。我们根本不看Stack Overflow。

我们使用master分支进行开发。 PyPI中的标记版本和文件是稳定的。

请查看此机票并回答任何其他问题。 https://github.com/Yelp/mrjob/issues/513