question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"'jedi' has no attribute __version__" on system with multiple versions of Python

See original GitHub issue

After installing jedi-vim from master branch (@a0c326, using pathogen bundle), the following message is shown when opening python files:

Could not load jedi python module: module 'jedi' has no attribute '__version__'

The system (Arch Linux) has two versions of Python (2.7 and 3.x, where 3.x is default). Jedi library was installed for Python 2.7 only. The error goes away if jedi library is installed under Python 3. As an aside, rope-vim has no trouble using the version of the library installed only for 2.7.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
davidhaltercommented, Apr 17, 2016

Probably VIM on arch comes with Python 3. Just install Jedi with Python 3. Or use the git submodule --recursive stuff to initialize the submodule.

0reactions
UltiRequiemcommented, Jan 25, 2021

😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

"'jedi' has no attribute __version__" on system with multiple ...
After installing jedi-vim from master branch (@a0c326, using pathogen bundle), the following message is shown when opening python files:
Read more >
Autocompletion with Jedi-vim gives Error - Stack Overflow
This has happened because of the 2 versions python installed on the Mac. One that came by default resided in /usr/bin directory and...
Read more >
Installation and Configuration — Jedi 0.18.2 documentation
Most people will want to install Jedi as a submodule/vendored and not through pip/system wide. The reason for this is that it makes...
Read more >
jedi - PyPI
Jedi is a static analysis tool for Python that is typically used in IDEs/editors plugins. Jedi has a focus on autocompletion and goto...
Read more >
Dropping support for older Python versions
The publisher is using the latest version of setuptools, ... When dropping support for Python 2, it is important not to forget to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found