Jedi-vim not working, thinks Jedi is not installed
See original GitHub issueIssue
Hi there, I’ve tried for a while to get this working and have gone through a number of solutions that I have found that have worked for others. However, whenever I try and run vim with jedi-vim installed I get:
Please
install Jedi if you want to use jedi-vim.
The error was: /home/USER/anaconda3/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _Py_write_noraise
Please install Jedi if you want to use jedi-vim.
The error was: /home/USER/anaconda3/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _Py_write_noraise
Steps to reproduce
Open a .py file with vim
Output of “:verbose JediDebugInfo”
Jedi-vim debug information
Using Python version: 3
- global sys.version:
3.6.5 (default, May 11 2018, 04:00:52), [GCC 8.1.0]
- global site module:
/home/mattrbrousseau/anaconda3/lib/python3.6/site.py
ERROR: could not import the “jedi” Python module. The error was: /home/mattrbrousseau/anaconda3/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-x86_64-linux-gnu.so: u ndefined symbol: _Py_write_noraise - jedi-vim git version: 0.9.0-20-gd4006ab
- jedi git submodule status: bd7c65d9639c2d451d44c6d135b4f6043a918950 pythonx/jedi (v0.12.0) 6f385bdba182059e0c46917a414981a6d0894527 pythonx/parso (v0.2.1)
Settings
omnifunc=jedi#completions
Last set from ~/.vim/bundle/jedi-vim/autoload/jedi.vim
completeopt=menuone,longest,preview
Last set from ~/.vim/bundle/jedi-vim/plugin/jedi.vim
:version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled May 13 2018 19:35:54)
Included patches: 1-1838
Compiled by Arch Linux
Huge version without GUI. Features included (+) or not (-):
+acl +cursorshape +job -mouse_sysmouse +scrollbind +virtualedit
+arabic +dialog_con +jumplist +mouse_urxvt +signs +visual
+autocmd +diff +keymap +mouse_xterm +smartindent +visualextra
-autoservername +digraphs +lambda +multi_byte +startuptime +viminfo
-balloon_eval -dnd +langmap +multi_lang +statusline +vreplace
+balloon_eval_term -ebcdic +libcall -mzscheme -sun_workshop +wildignore
-browse +emacs_tags +linebreak +netbeans_intg +syntax +wildmenu
++builtin_terms +eval +lispindent +num64 +tag_binary +windows
+byte_offset +ex_extra +listcmds +packages +tag_old_static +writebackup
+channel +extra_search +localmap +path_extra -tag_any_white -X11
+cindent +farsi +lua/dyn +perl/dyn +tcl/dyn -xfontset
-clientserver +file_in_path +menu +persistent_undo +termguicolors -xim
-clipboard +find_in_path +mksession +postscript +terminal -xpm
+cmdline_compl +float +modify_fname +printer +terminfo -xsmp
+cmdline_hist +folding +mouse +profile +termresponse -xterm_clipboard
+cmdline_info -footer -mouseshape +python/dyn +textobjects -xterm_save
+comments +fork() +mouse_dec +python3/dyn +timers
+conceal +gettext +mouse_gpm +quickfix +title
+cryptv -hangul_input -mouse_jsbterm +reltime -toolbar
+cscope +iconv +mouse_netterm +rightleft +user_commands
+cursorbind +insert_expand +mouse_sgr +ruby/dyn +vertsplit
system vimrc file: "/etc/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-st
rong -fno-plt -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L. -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-r
path,/usr/lib/perl5/5.26/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -L/usr/local/lib -Wl,--as-needed -o vim
-lm -ltinfo -lelf -lnsl -lacl -lattr -lgpm -ldl -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.26/core_perl/CORE -Wl,-O1,--sort-c
ommon,--as-needed,-z,relro,-z,now -fstack-protector-strong -L/usr/local/lib -L/usr/lib/perl5/5.26/core_perl/CORE -lperl -lpthread
-lnsl -ldl -lm -lcrypt -lutil -lc -L/usr/lib -ltclstub8.6 -ldl -lz -lpthread -lm
#### :messages
Messages maintainer: Bram Moolenaar Bram@vim.org “ais2.py” 220L, 6313C Please install Jedi if you want to use jedi-vim. The error was: /home/mattrbrousseau/anaconda3/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-x86_64-linux-gnu.so: undefine d symbol: _Py_write_noraise Please install Jedi if you want to use jedi-vim. The error was: /home/mattrbrousseau/anaconda3/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-x86_64-linux-gnu.so: undefine d symbol: _Py_write_noraise VIM - Vi IMproved 8.0 (2016 Sep 12, compiled May 13 2018 19:35:54) E475: Invalid argument: @+> E492: Not an editor command: verboe JediDebugInfo VIM - Vi IMproved 8.0 (2016 Sep 12, compiled May 13 2018 19:35:54)
:scriptnames
1: /etc/vimrc
2: /usr/share/vim/vimfiles/archlinux.vim
3: ~/.vimrc
4: /usr/share/vim/vim80/syntax/syntax.vim
5: /usr/share/vim/vim80/syntax/synload.vim
6: /usr/share/vim/vim80/syntax/syncolor.vim
7: /usr/share/vim/vim80/filetype.vim
8: /usr/share/vim/vimfiles/autoload/vundle.vim
9: /usr/share/vim/vimfiles/autoload/vundle/config.vim
10: ~/.vim/bundle/jedi-vim/plugin/jedi.vim
11: /usr/share/vim/vim80/ftplugin.vim
12: /usr/share/vim/vim80/plugin/getscriptPlugin.vim
13: /usr/share/vim/vim80/plugin/gzip.vim
14: /usr/share/vim/vim80/plugin/logiPat.vim
15: /usr/share/vim/vim80/plugin/manpager.vim
16: /usr/share/vim/vim80/plugin/matchparen.vim
17: /usr/share/vim/vim80/plugin/netrwPlugin.vim
18: /usr/share/vim/vim80/plugin/rrhelper.vim
19: /usr/share/vim/vim80/plugin/spellfile.vim
20: /usr/share/vim/vim80/plugin/tarPlugin.vim
21: /usr/share/vim/vim80/plugin/tohtml.vim
22: /usr/share/vim/vim80/plugin/vimballPlugin.vim
23: /usr/share/vim/vim80/plugin/zipPlugin.vim
24: /usr/share/vim/vim80/syntax/python.vim
25: ~/.vim/bundle/jedi-vim/after/syntax/python.vim
26: ~/.vim/bundle/jedi-vim/autoload/jedi.vim
27: ~/.vim/bundle/jedi-vim/ftplugin/python/jedi.vim
28: /usr/share/vim/vim80/ftplugin/python.vim
29: ~/.vim/bundle/jedi-vim/after/ftplugin/python/jedi.vim
Issue Analytics
- State:
- Created 5 years ago
- Comments:29 (10 by maintainers)
Top GitHub Comments
So, I might be completely off with my reasoning, but, for some reason, the lib-dynload cpython packages are not working properly with the latest anaconda python version.
If you set your
PYTHONPATH
to use the system version (I’m using manjaro btw) , jedi-vim works perfectly.This is the way I set up the
PYTHONPATH
variable in my machine now.export PYTHONPATH=$PYTHONPATH:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/lib/python3.7/site-packages
Hopefully there won’t be a lot of problems in terms of my development workflow.
I’m pretty sure the problem is a broken Python/VIM installation. No idea how to solve it (downgrade/upgrade?). As long as
:py3 import subprocess
it’s definitely not a jedi/jedi-vim issue!