Have tried many things, but keep getting this error after multiple attempts to update python, pip, etc. I am on OS X running 10.9.5.
CMD% eb
Traceback (most recent call last):
File "/usr/local/bin/eb", line 5, in <module>
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module>
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
pkg_resources.DistributionNotFound: python-dateutil>=2.1,<3.0.0
in my case on mac osx 10.10, I had to reinstall.
Just in case some runs into this type of error. check the last paragraph in the trace for the kind of error that it is being raised. In my case, this was:
use the following command
to upgrade it
From the raised error in your log, it needs
python-dateutil>=2.1
. So you need to make sure that version is installed and install it if not. I had similar issue, and the solution (in my case) is:I had the exact same issue, for me, the eb script was using the wrong python. To solve it I just modified the eb script:
After restarting the terminal, everything work as expected.
Pip is probably linked to a different version of python then standard.
You should try installing pip using
(You can download get-pip.py from the pip website)
Otherwise, You can see which Python everything is linked too.
You can change to shebang line in the eb script to match pip and it should all work.
You can also install using a
virtualenv
(pythons recommended way of installing)I was experiencing a similar error when trying to run eb, though not for dateutil...
For me the solution was to update setuptools:
Hope that helps somebody.