0

我正在尝试使用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
4

2 回答 2

0

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

于 2012-07-20T21:22:14.953 回答
0

我是维护者之一。下次遇到此类问题时,您应该在 Github 上开一张票。我们根本不看 Stack Overflow。

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

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

于 2012-07-20T21:33:48.160 回答