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

Error: jedi-vim failed to initialize Python: jedi-vim requires Vim with support for Python 2 or 3 #1018

Closed
sepremento opened this issue Jun 14, 2020 · 6 comments

Comments

@sepremento
Copy link

Issue

Windows 8.1, Python 3.6-32

Error: jedi-vim failed to initialize Python: jedi-vim requires Vim with support for Python 2 or 3. (in function jedi#init_python[4]..48_init_python, line 10)

:ver says I have +python/dyn, +python3/dyn, so I'm a little bit confused what to think.

@davidhalter
Copy link
Owner

Does :python print(1) work? And :python3 print(1)?

@sepremento
Copy link
Author

sepremento commented Jun 14, 2020

No, I get E370: Could not load library python27.dll and then E263: Sorry this command is disabled, the Python library could not be loaded. Which is very strange as I have Python 3.6-32.

If I try :python3 print(1) I get E448 about loading PySlice_AdjustIndices

@davidhalter
Copy link
Owner

This is not a jedi-vim problem. Usually the best way forward is to uninstall Vim and reinstall it so you get a proper installation. VIM might have been compiled with another version. I generally have no idea how this works on Windows.

You could also contact the vim mailing list, asking why :python3 does not work for you.

@fanyang1997
Copy link

this issue bks ur vim don;t have python3,
in my side
brew install macvim
it works for me.

@fenwk0
Copy link

fenwk0 commented Jun 6, 2021

Hi Jedi looks amazing and I'd love to get it running, the base instal of vim does not support Python.

What is a proper vim install for a raspberry pi?

$ uname -a
Linux minecraft-01 5.10.17-v7+ #1403 SMP Mon Feb 22 11:29:51 GMT 2021 armv7l GNU/Linux

The error I get consistently is :

Error: jedi-vim failed to initialize Python: jedi-vim requires Vim with support for Python 3. (in function jedi#
init_python[4]..69_init_python, line 4)

I even tried to rebuild vim with Python support

sudo apt-get install libncurses5-dev libncursesw5-dev
cd /tmp && sudo rm -Rf vim && git clone https://github.com/vim/vim.git && cd vim
make distclean
rm auto/config.cache
./configure --enable-pythoninterp --prefix=/usr --with-python-config-dir=/usr/lib/python2.7/config-arm-linux-gnueabihf//--enable-python3interp=yes --with-python3-config-dir=/usr/lib/python3.7/config-3.7m-arm-linux-gnueabihf/
make && sudo make install

but still no luck, when I check via :ver

@masumndc1
Copy link

masumndc1 commented Aug 22, 2022

I had jedi-vim python 3 support issue with neovim in mac.
I have solved it by running

 pip3 install --user --upgrade pynvim
 sudo port install py-neovim

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

5 participants