Gautier / bitbucket-sync

bitbucket-sync synchronize locally all the repositories of a bitbucket account
MIT License
12 stars 6 forks source link

File "/usr/local/bin/bitbucket-sync", line 5, in <module> from pkg_resources import load_entry_point #10

Open pixelschubseAtWork opened 9 years ago

pixelschubseAtWork commented 9 years ago

hi out there we're using lots of bitbucket repos in my company so was really happy when i found your script. I've no clue what's the problem. When i execute your script i get the following error:

bitbucket-sync Traceback (most recent call last): File "/usr/local/bin/bitbucket-sync", line 5, in 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 working_set.require(requires) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require needed = self.resolve(parse_requirements(requirements)) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve raise DistributionNotFound(req) # XXX put more info here pkg_resources.DistributionNotFound: requests>=2.0.0

am i using wrong python version or smth. sm? i've never been in touch with python - can you please give me an advice?

maybe it's important: i'm using osx 10.9.5 with python 2.7.5 installed

Gautier commented 9 years ago

Hi,

this issue sounds similar to this one on a different project : https://github.com/jakubroztocil/httpie/issues/148

The workaround is to upgrade setuptools with

pip install --upgrade setuptools

Let me know if this does the trick.

Best, Gautier