Plugin does not recognize Python host in Neovim although Python works just fine within -
i use neovim on arch linux python-neovim , python3-neovim installed python support. until last update of python-clients neovim worked well. particular use unite plugin needs python support.
after new version of python clients neovim installed python support seemed have broken.
echo g:loaded_python_provider returns 1 , unite throws following exception:
function <snr>51_call_unite..unite#start..unite#start#standard..unite#init#_current_unite..remote#define#commandbootstrap..remote#host#require..<snr>56_requirepythonhost, line 15 vim(if):channel closed client error detected while processing function <snr>51_call_unite..unite#start..unite#start#standard..unite#init#_current_unite..remote#define#commandbootstrap..remote#host#require..<snr>56_requirepythonhost: line 22: e605: exception not caught: failed load python3 host. can try see happened starting neovim environment variable $nvim_python_log_file set file , opening generated log file. also, host stderr b e available in neovim log, may contain useful information. see ~/.nvimlog. however, figured out python works within neovim trying
:python print "hello" and
:python3 print("hello") i tried manually set python host using python_host_prog. didn't change anything.
update:
in meantime error message has changed , contains python exception. furthermore, found out there issue on machine update of packages when upgraded python3.4 3.5. packages linked. incorrectly linked between 2 versions. nonethelles, complete reinstall of neovim , python api-bindings did not solve problem.
function <snr>51_call_unite[33]..unite#start[1]..unite#start#standard[39]..unite#init#_current_unite[97]..remote#define#commandbootstrap": zeile 5: no request handler registered "/home/cutuchiqueno/.vim/plugged/unite.vim/rplugin/python3/unite.py:command:uniteinitializepython" encountered importerror loading plugin @ /home/cutuchiqueno/.vim/plugged/unite.vim/rplugin/python3/unite.py: no module named 'unite' traceback (most recent call last): file "/usr/lib/python3.5/site-packages/neovim/plugin/host.py", line 118, in _load file, pathname, descr = find_module(name, [directory]) file "/usr/lib/python3.5/site-packages/neovim/compat.py", line 29, in find_module return original_find_module(fullname, path) file "/usr/lib/python3.5/imp.py", line 296, in find_module raise importerror(_err_msg.format(name), name=name) importerror: no module named 'unite'
the problem solved calling :updateremoteplugins. command necessary create special manifest file needed communication between special plugins , neovim due way neovim handles api communication (msgpack-rpc).
the update python3.4 python3.5 made old manifest files obsolete. consequently, had updated too.
Comments
Post a Comment