Skip to content


'ImportError: No module named fs.local' #513

acarrillo opened this Issue · 5 comments

3 participants


With the latest code, it seems that some (myself included) are having issues with the `fs' dependency:

Traceback (most recent call last):
  File "", line 17, in <module>
    from mrjob.job import MRJob
  File "/Library/Python/2.7/site-packages/mrjob-0.4_dev-py2.7.egg/mrjob/", line 39, in <module>
    from mrjob.launch import MRJobLauncher
  File "/Library/Python/2.7/site-packages/mrjob-0.4_dev-py2.7.egg/mrjob/", line 32, in <module>
    from mrjob.options import add_basic_opts
  File "/Library/Python/2.7/site-packages/mrjob-0.4_dev-py2.7.egg/mrjob/", line 22, in <module>
    from mrjob.runner import CLEANUP_CHOICES
  File "/Library/Python/2.7/site-packages/mrjob-0.4_dev-py2.7.egg/mrjob/", line 49, in <module>
    from mrjob.fs.local import LocalFilesystem
ImportError: No module named fs.local

However, it seems I was able to resolve this by installing v0.3.4.1.


fs is not a dependency, it's part of the framework. How are you trying to run the example? if mrjob isn't in your PYTHONPATH then the job won't be able to import from it.


I tried:

git clone
cd mrjob
python mrjob/examples/ README.rst > counts

and get the same output as about. I've tried:

export PYTHONPATH=/home/nickp/.../repos/mrjob/mrjob

But still get the same result. Am I doing something wrong?


Although if I run the Python CLI from that directory I can do the imports manually without any problems.


Do you have an older version of mrjob installed on your system? The old version doesn't have an fs module but may override the new version in the PYTHONPATH when you run jobs.


Fixed the problem. We had forgotten to add mrjob.fs to

@irskep irskep closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.