Thefuck: OSX: "ImportError: No module named pathlib"

Created on 14 Jul 2015  路  10Comments  路  Source: nvbn/thefuck

Hi, I'm trying to install and I get this error:

$ fuck
Traceback (most recent call last):
  File "/usr/local/bin/thefuck", line 7, in <module>
    from thefuck.main import main
  File "/Library/Python/2.7/site-packages/thefuck/main.py", line 2, in <module>
    from pathlib import Path
ImportError: No module named pathlib

I tried updating setup by following the instructions in #218.
Running OSX 10.10.4, Python 2.7.6, and pip 7.1.0.
Any ideas?

Most helpful comment

I tried

sudo pip install pathlib

and it works for me :)

All 10 comments

I tried

sudo pip install pathlib

and it works for me :)

:+1: Worked for me too.

Worked for me too. thx

Oh well, that makes a lot of sense. It works now, thanks a lot!

What is "pip" in sudo pip install pathlib?

芦聽pip聽禄 is a managing dependencies for python

I tried

sudo pip install pathlib

and it works for me :)

THANK YOU

Should pathlib be added as a dependency in the documentation?

I tried but it didn't worked.
Can you help me with any other solution?

sudo pip install pathlib

ImportError: No module named utils.console

Was this page helpful?
0 / 5 - 0 ratings

Related issues

liuml07 picture liuml07  路  5Comments

jabbson picture jabbson  路  4Comments

onewheelskyward picture onewheelskyward  路  3Comments

jedwards1211 picture jedwards1211  路  4Comments

agross picture agross  路  5Comments