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

No support for python 3 under virtualenv #467

Closed
nrvnrvn opened this issue Oct 3, 2015 · 4 comments
Closed

No support for python 3 under virtualenv #467

nrvnrvn opened this issue Oct 3, 2015 · 4 comments

Comments

@nrvnrvn
Copy link

nrvnrvn commented Oct 3, 2015

I have no omni completion (and jump-to-declarations) for installed packages except my current working project and standard library.
Throws Omni completion (^O^N^P) Pattern not found.
Python 3.4 and 3.5 tested.
Works ok with python2.7-based venvs.

Jedi itself works ok. See davidhalter/jedi#629 (comment)

Environment:

  • archlinux, linux 4.2.2, vim 7.4.884.
  • ubuntu 14.04, vim 7.4.52.
@davidhalter
Copy link
Owner

What I just realized is that you probably suffer from the fact that VIM is coming with one (or two) Python versions that it works with.

You can check that versions by using :python import sys; print(sys.path);. This is the version that it will infer package information from, every other Python version will be ignored.

This is probably going to be solved by davidhalter/jedi#385.

@nrvnrvn
Copy link
Author

nrvnrvn commented Oct 3, 2015

Yes, when I reinstall vim with python3 support I can finally use jedi. This 2vs3 hell seems to have spread its lousy tentacles everywhere...

@davidhalter
Copy link
Owner

It's not really about that, VIM just binds to one version. So you're still not going to be able to use it in both 3.4 and 3.5. What we need is a client/server structure to deal with this.

I will close, because its something we cannot really change right now.

@blueyed
Copy link
Collaborator

blueyed commented Oct 3, 2015

JFI: with Neovim at least it's possible to use Python 2 and 3 at the same time.

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