Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't start (pkg_resources.DistributionNotFound: jedi>=0.8.1) #16

Closed
jackmaney opened this issue Jan 6, 2015 · 4 comments
Closed

Can't start (pkg_resources.DistributionNotFound: jedi>=0.8.1) #16

jackmaney opened this issue Jan 6, 2015 · 4 comments

Comments

@jackmaney
Copy link

It seems as though pgcli can't find a package called jedi:

$ pgcli localhost
Traceback (most recent call last):
  File "/usr/local/bin/pgcli", line 5, in <module>
    from pkg_resources import load_entry_point
  File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 2912, in <module>
  File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 550, in _build_master
  File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 563, in _build_from_requirements
  File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 742, in resolve
pkg_resources.DistributionNotFound: jedi>=0.8.1

However, I already have a sufficient version of this package installed:

$ python
Python 2.7.9 (default, Dec 15 2014, 10:15:39)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import jedi
>>> jedi.__version__
'0.8.1-final0'

Am I missing anything obvious here?

Thank you for your time.

@jackmaney
Copy link
Author

I should add that I'm using the Python 2.7.9 provided by Homebrew.

@amjith
Copy link
Member

amjith commented Jan 6, 2015

Can you try pip install jedi==0.8.1?

There was a recently a change in pip that disallowed packages that didn't conform to PEP 440 from being installed. It was rectified by Jedi just two days ago. So it's worth upgrading jedi.

Ref: davidhalter/jedi#521

@jackmaney
Copy link
Author

A pip install jedi==0.8.1 seemed to do the trick. I'm having another issue in connecting to a server, however. I'll open up a separate issue for that.

Thanks!

@adregan
Copy link

adregan commented Jan 6, 2015

I had the same error and a quick pip freeze told me the jedi I had installed was jedi==0.8.1-final0.

Explicitly installing pip install jedi==0.8.1 fixed the problem, but I'm not sure where the issue started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants