2012-07-10 66 views
0

我正在嘗試使用mrjob運行示例字數統計map reduce任務。我收到以下錯誤:運行python 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 

回答

0

我是維護者之一。下次遇到類似問題時,您應該在Github上打開一張票。我們根本不看Stack Overflow。

我們使用master分支進行開發。 PyPI中的標籤版本和文件是穩定的。

請查看此門票並回復任何其他問題。 https://github.com/Yelp/mrjob/issues/513

0

我也有這個確切的錯誤。像我最初那樣,是否直接從Git存儲庫克隆mrjob?如果是這樣,請嘗試使用tagged版本之一,例如v0.3.4.1,這對我來說很合適。