davidhalter / jedi-vim

Using the jedi autocompletion library for VIM.
MIT License
5.28k stars 370 forks source link

Error: jedi-vim failed to initialize Python #879

Closed BullfroG21 closed 6 years ago

BullfroG21 commented 6 years ago

Issue

Error by opening python file, using debian stretch with Gnome

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)

Output of “:verbose JediDebugInfo”

Jedi-vim debug information

jedi-vim version
Global Python

Using Python version null to access Jedi.

Error detected while processing function 16_jedi_debug_info[12]..jedi#debug_info: line 22: E492: Not an editor command: PythonJedi import vim; vim.command('let s:pythonjedi_called = 1')

blueyed commented 6 years ago

jedi-vim requires Vim with support for Python 2 or 3

What does :ver say? It looks like your Vim does not have Python.

BullfroG21 commented 6 years ago

Yep you are right. by installing vim-nox instead of the usual vim made it work. apt-get install vim-nox

thx for the quick response

fanyang1997 commented 3 years ago

the error occurs because vim does not have python3. my solution: check the vim -v check it if support python and python3 brew install macvim then reopen the vim, it works for me.