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

Failed to load python host #4470

Closed
mayowa opened this Issue Mar 18, 2016 · 20 comments

Comments

Projects
None yet
9 participants
@mayowa

mayowa commented Mar 18, 2016

  • Neovim version:
    0.1.3-dev (from :version)
    0.1.2ubuntu1+git201603170436+2371+17~ubuntu14.04.1 (from apt-cache policy)
  • Operating system:
    Ubuntu 14.04
  • Terminal emulator:
    terminator

After the neovim update on (March 17, 2016) on startup nvim displays an error on the status bar:
Failed to load python host. You can try to see what happened by starting Neovim with the environment variable $NVIM_PYTHON_LOG_FILE set to a file and opening the generated log file. Also, the host st
derr will be available in Neovim log, so it may contain useful information. See also ~/.nvimlog.
vim runs fine without any issues.

~/.nvimlog doesnt exist i have also tried to start nvim as follows

$ env NVIM_PYTHON_LOG_FILE=~/nvimlog nvim
I get the same error but ~/nvimlog isnt created

$ nvim -u NONE
nvim starts without issue which leads me to conclude that it might be a compatibility issue with one of the plugins i currently have installed.

Can anyone tell me how to figure out which of the plugins is causing the issue (other than removing all the plugins then re-enabling them one by one)?

Thanks

Plugins in ~/.vimrc

Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'garyburd/go-explorer'
Plugin 'Valloric/YouCompleteMe'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'airblade/vim-gitgutter'
Plugin 'mattn/emmet-vim'
"Plugin 'Raimondi/delimitMate'
Plugin 'scrooloose/nerdtree'
Plugin 'AlessandroYorba/Alduin'
Plugin 'majutsushi/tagbar'
Plugin 'scrooloose/syntastic'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'fatih/vim-go'
Plugin 'vimwiki/vimwiki'
Plugin 'scrooloose/nerdcommenter'
Plugin 'qpkorr/vim-bufkill'
Plugin 'xolox/vim-misc'
Plugin 'xolox/vim-session'
Plugin 'mhinz/vim-janah'
Plugin 'valloric/MatchTagAlways'
Plugin 'tpope/vim-surround'
Plugin 'int3h/numbers.vim'
Plugin 'tacahiroy/ctrlp-funky'
Plugin 'xolox/vim-notes'
Plugin 'alvan/vim-closetag'
Plugin 'sheerun/vim-polyglot'
Plugin 'jiangmiao/auto-pairs'
Plugin 'davidhalter/jedi-vim'
Plugin 'Yggdroot/indentLine'
Plugin 'jelera/vim-javascript-syntax'
Plugin 'hail2u/vim-css3-syntax'
Plugin 'Shougo/vimproc.vim'
if v:version >= 703
Plugin 'Shougo/vimshell.vim'
endif

@bfredl

This comment has been minimized.

Show comment
Hide comment
@bfredl

bfredl Mar 18, 2016

Member

with 0.1.3-dev to you mean recent master version? Try latest master once more and make sure you have latest python-client 0.1.5 (for python2 and/or python3 depending on what you use)

Member

bfredl commented Mar 18, 2016

with 0.1.3-dev to you mean recent master version? Try latest master once more and make sure you have latest python-client 0.1.5 (for python2 and/or python3 depending on what you use)

@mayowa

This comment has been minimized.

Show comment
Hide comment
@mayowa

mayowa Mar 18, 2016

I didnt install from source, I installed from an Ubuntu ppa (ppa:neovim-ppa/unstable)

mayowa commented Mar 18, 2016

I didnt install from source, I installed from an Ubuntu ppa (ppa:neovim-ppa/unstable)

@mayowa

This comment has been minimized.

Show comment
Hide comment
@mayowa

mayowa Mar 18, 2016

bfredl, upgrading the python-client (pip install --upgrade neovim) solved the problem.

Thanks!

mayowa commented Mar 18, 2016

bfredl, upgrading the python-client (pip install --upgrade neovim) solved the problem.

Thanks!

@bfredl

This comment has been minimized.

Show comment
Hide comment
@bfredl

bfredl Mar 18, 2016

Member

Ok, but @justinmk maybe the python-client incompatibility would warrant tagging a neovim version (0.1.3)? It will probably take a while before the next version compatibility breaking change (the UpdateRemotePlugins refactor)

Member

bfredl commented Mar 18, 2016

Ok, but @justinmk maybe the python-client incompatibility would warrant tagging a neovim version (0.1.3)? It will probably take a while before the next version compatibility breaking change (the UpdateRemotePlugins refactor)

@brycearden

This comment has been minimized.

Show comment
Hide comment
@brycearden

brycearden Mar 18, 2016

I am still having issues with the python host after running pip install --upgrade neovim My generated log file contains only the following line.

2016-03-17 08:44:48,231 [ERROR @ session.py:run:117] 8012 - Setup error: No module named script_host

Any help would be appreciated.

I am still having issues with the python host after running pip install --upgrade neovim My generated log file contains only the following line.

2016-03-17 08:44:48,231 [ERROR @ session.py:run:117] 8012 - Setup error: No module named script_host

Any help would be appreciated.

@gkostyanikov

This comment has been minimized.

Show comment
Hide comment
@gkostyanikov

gkostyanikov Mar 18, 2016

same here. installed today with
brew reinstall --HEAD neovim

uninstall/install neovim via pip didn't helped

same here. installed today with
brew reinstall --HEAD neovim

uninstall/install neovim via pip didn't helped

@mayowa

This comment has been minimized.

Show comment
Hide comment
@mayowa

mayowa Mar 18, 2016

@brycearden how did you get neovim to generate a logfile (i was unable to)

mayowa commented Mar 18, 2016

@brycearden how did you get neovim to generate a logfile (i was unable to)

@khalidchawtany

This comment has been minimized.

Show comment
Hide comment
@khalidchawtany

khalidchawtany Mar 18, 2016

@brycearden I had that same issue as yours. later I found out that pip and pip3 were both aliased to pip3. As a result, doing pip install --upgrade neovim was not upgrading my python2 version. So I did the following, and the issue was gone. [Note: I use the latest version of neovim, always :) ]

pip2 install --upgrade --force-reinstall neovim
pip3 install --upgrade --force-reinstall neovim

@brycearden I had that same issue as yours. later I found out that pip and pip3 were both aliased to pip3. As a result, doing pip install --upgrade neovim was not upgrading my python2 version. So I did the following, and the issue was gone. [Note: I use the latest version of neovim, always :) ]

pip2 install --upgrade --force-reinstall neovim
pip3 install --upgrade --force-reinstall neovim
@justinmk

This comment has been minimized.

Show comment
Hide comment
@justinmk

justinmk Mar 18, 2016

Member

@bfredl We'll do a 0.1.3 release this week.

Member

justinmk commented Mar 18, 2016

@bfredl We'll do a 0.1.3 release this week.

@brycearden

This comment has been minimized.

Show comment
Hide comment
@brycearden

brycearden Mar 18, 2016

@khalidchawtany this solution works. Thank you!

@khalidchawtany this solution works. Thank you!

@brycearden

This comment has been minimized.

Show comment
Hide comment
@brycearden

brycearden Mar 18, 2016

I tried replicating this fix on a separate machine. This time the pip2 and pip3 commands listed by @khalidchawtany did not seem to solve this problem. To answer @mayowa I generated the log file with the following commands, and creates the .nvimlog file in your home directory.

export NVIM_PYTHON_LOG_FILE_PATH=~/.nvimlog
nvim -U NONE

The log file generated this time was the same as before.

2016-03-18 18:28:44,049 [ERROR @ session.py:run:117] 17234 - Setup error: No module named 'script_host'

Any help or ideas would be appreciated. I am using pip 7.1.2

I tried replicating this fix on a separate machine. This time the pip2 and pip3 commands listed by @khalidchawtany did not seem to solve this problem. To answer @mayowa I generated the log file with the following commands, and creates the .nvimlog file in your home directory.

export NVIM_PYTHON_LOG_FILE_PATH=~/.nvimlog
nvim -U NONE

The log file generated this time was the same as before.

2016-03-18 18:28:44,049 [ERROR @ session.py:run:117] 17234 - Setup error: No module named 'script_host'

Any help or ideas would be appreciated. I am using pip 7.1.2

@khalidchawtany

This comment has been minimized.

Show comment
Hide comment
@khalidchawtany

khalidchawtany Mar 19, 2016

@brycearden try to make sure that you have neovim python client installed. I have the following on my system:

>> pip show neovim
---
Metadata-Version: 2.0
Name: neovim
Version: 0.1.5
Summary: Python client to neovim
Home-page: http://github.com/neovim/python-client
Author: Thiago de Arruda
Author-email: tpadilha84@gmail.com
Installer: pip
License: Apache
Location: /usr/local/lib/python2.7/site-packages
Requires: trollius, msgpack-python, greenlet
Classifiers:

>> pip3 show neovim
---
Metadata-Version: 2.0
Name: neovim
Version: 0.1.5
Summary: Python client to neovim
Home-page: http://github.com/neovim/python-client
Author: Thiago de Arruda
Author-email: tpadilha84@gmail.com
Installer: pip
License: Apache
Location: /usr/local/lib/python3.5/site-packages
Requires: greenlet, msgpack-python
Classifiers:

Also make sure that Neovim is using the same version of python that you are installing python client for. This may happen because of virtual env.
My terminal uses this version of python:

>> ls -lAFh `which python`
lrwxr-xr-x  1 juju  admin    36B Oct 23 13:04 /usr/local/bin/python@ -> ../Cellar/python/2.7.10_2/bin/python

Neovim is using the same version: (Running same command from neovim)

:!ls -lAFh `which python`
lrwxr-xr-x  1 juju  admin    36B Oct 23 13:04 /usr/local/bin/python@ -> ../Cellar/python/2.7.10_2/bin/python

Note: I am using pip 8.1.1 and pip3 8.1.0

@brycearden try to make sure that you have neovim python client installed. I have the following on my system:

>> pip show neovim
---
Metadata-Version: 2.0
Name: neovim
Version: 0.1.5
Summary: Python client to neovim
Home-page: http://github.com/neovim/python-client
Author: Thiago de Arruda
Author-email: tpadilha84@gmail.com
Installer: pip
License: Apache
Location: /usr/local/lib/python2.7/site-packages
Requires: trollius, msgpack-python, greenlet
Classifiers:

>> pip3 show neovim
---
Metadata-Version: 2.0
Name: neovim
Version: 0.1.5
Summary: Python client to neovim
Home-page: http://github.com/neovim/python-client
Author: Thiago de Arruda
Author-email: tpadilha84@gmail.com
Installer: pip
License: Apache
Location: /usr/local/lib/python3.5/site-packages
Requires: greenlet, msgpack-python
Classifiers:

Also make sure that Neovim is using the same version of python that you are installing python client for. This may happen because of virtual env.
My terminal uses this version of python:

>> ls -lAFh `which python`
lrwxr-xr-x  1 juju  admin    36B Oct 23 13:04 /usr/local/bin/python@ -> ../Cellar/python/2.7.10_2/bin/python

Neovim is using the same version: (Running same command from neovim)

:!ls -lAFh `which python`
lrwxr-xr-x  1 juju  admin    36B Oct 23 13:04 /usr/local/bin/python@ -> ../Cellar/python/2.7.10_2/bin/python

Note: I am using pip 8.1.1 and pip3 8.1.0

@bfredl

This comment has been minimized.

Show comment
Hide comment
@bfredl

bfredl Mar 19, 2016

Member

please try NVIM_PYTHON_LOG_FILE=pylog NVIM_PYTHON_LOG_LEVEL=DEBUG nvim and check the pylog file afterward for a more detailed error.

Member

bfredl commented Mar 19, 2016

please try NVIM_PYTHON_LOG_FILE=pylog NVIM_PYTHON_LOG_LEVEL=DEBUG nvim and check the pylog file afterward for a more detailed error.

@bfredl

This comment has been minimized.

Show comment
Hide comment
@bfredl

bfredl Mar 19, 2016

Member

@khalidchawtany Thanks, but please everyone refer to python2-pip as "pip2" and not "pip" to avoid confusion. (it differs between systems whether pip is 2 or 3)

Member

bfredl commented Mar 19, 2016

@khalidchawtany Thanks, but please everyone refer to python2-pip as "pip2" and not "pip" to avoid confusion. (it differs between systems whether pip is 2 or 3)

@brycearden

This comment has been minimized.

Show comment
Hide comment
@brycearden

brycearden Mar 19, 2016

@khalidchawtany Here are the results from the commands.

pip2 show neovim
---
Metadata-Version: 2.0
Name: neovim
Version: 0.1.5
Summary: Python client to neovim
Home-page: http://github.com/neovim/python-client
Author: Thiago de Arruda
Author-email: tpadilha84@gmail.com
License: Apache
Location: /usr/local/lib/python2.7/dist-packages
Requires: trollius, msgpack-python, greenlet

pip3 show neovim
---
Metadata-Version: 2.0
Name: neovim
Version: 0.1.5
Summary: Python client to neovim
Home-page: http://github.com/neovim/python-client
Author: Thiago de Arruda
Author-email: tpadilha84@gmail.com
License: Apache
Location: /usr/local/lib/python2.7/dist-packages
Requires: trollius, msgpack-python, greenlet

ls -lAFh `which python`
lrwxrwxrwx 1 root root 9 Aug 18  2014 /usr/bin/python -> python2.7*

!ls -lAFh `which python`
lrwxrwxrwx 1 root root 9 Aug 18  2014 /usr/bin/python -> python2.7*

It appears as though pip3 is pointing to the 2.7 package, which might be the reason why I am still having issues. Is there an easy way to fix this? For reference, I have also attached the more detailed log file that @bfredl recommended.

2016-03-19 09:12:12,395 [DEBUG @ msgpack_stream.py:send:36] 20435 - sent [0, 1, b'vim_get_api_info', ()]
2016-03-19 09:12:12,395 [DEBUG @ base.py:send:113] 20435 - Sending 'b'\x94\x00\x01\xc4\x10vim_get_api_info\x90''
2016-03-19 09:12:12,395 [DEBUG @ base.py:run:138] 20435 - Entering event loop
2016-03-19 09:12:12,396 [DEBUG @ msgpack_stream.py:_on_data:57] 20435 - waiting for message...
2016-03-19 09:12:12,396 [DEBUG @ msgpack_stream.py:_on_data:59] 20435 - received message: [0, 1, b'poll', []]
2016-03-19 09:12:12,396 [DEBUG @ async_session.py:_on_request:86] 20435 - received request: b'poll', []
2016-03-19 09:12:12,396 [DEBUG @ msgpack_stream.py:_on_data:57] 20435 - waiting for message...
2016-03-19 09:12:12,396 [DEBUG @ msgpack_stream.py:_on_data:62] 20435 - unpacker needs more data...
2016-03-19 09:12:12,396 [DEBUG @ msgpack_stream.py:_on_data:57] 20435 - waiting for message...
2016-03-19 09:12:12,396 [DEBUG @ msgpack_stream.py:_on_data:59] 20435 - received message: [1, 1, None, [2, {b'types': {b'Tabpage': {b'id': 2}, b'Buffer': {b'id': 0}, b'Window': {b'id': 1}}, b'error_types': {b'Validation': {b'id': 1}, b'Exception': {b'id': 0}}, b'functions': [{b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_buffer', b'can_fail': True, b'return_type': b'Buffer'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_cursor', b'can_fail': True, b'return_type': b'ArrayOf(Integer, 2)'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'ArrayOf(Integer, 2)', b'pos']], b'name': b'window_set_cursor', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_height', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'Integer', b'height']], b'name': b'window_set_height', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_width', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'Integer', b'width']], b'name': b'window_set_width', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'String', b'name']], b'name': b'window_get_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'String', b'name'], [b'Object', b'value']], b'name': b'window_set_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'String', b'name']], b'name': b'window_get_option', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'String', b'name'], [b'Object', b'value']], b'name': b'window_set_option', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_position', b'can_fail': True, b'return_type': b'ArrayOf(Integer, 2)'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_tabpage', b'can_fail': True, b'return_type': b'Tabpage'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_is_valid', b'return_type': b'Boolean'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer']], b'name': b'buffer_line_count', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'index']], b'name': b'buffer_get_line', b'can_fail': True, b'return_type': b'String'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'index'], [b'String', b'line']], b'name': b'buffer_set_line', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'index']], b'name': b'buffer_del_line', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'start'], [b'Integer', b'end'], [b'Boolean', b'include_start'], [b'Boolean', b'include_end']], b'name': b'buffer_get_line_slice', b'can_fail': True, b'return_type': b'ArrayOf(String)'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'start'], [b'Integer', b'end'], [b'Boolean', b'include_start'], [b'Boolean', b'include_end'], [b'ArrayOf(String)', b'replacement']], b'name': b'buffer_set_line_slice', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name']], b'name': b'buffer_get_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name'], [b'Object', b'value']], b'name': b'buffer_set_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name']], b'name': b'buffer_get_option', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name'], [b'Object', b'value']], b'name': b'buffer_set_option', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer']], b'name': b'buffer_get_number', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer']], b'name': b'buffer_get_name', b'can_fail': True, b'return_type': b'String'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name']], b'name': b'buffer_set_name', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer']], b'name': b'buffer_is_valid', b'return_type': b'Boolean'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'lnum'], [b'ArrayOf(String)', b'lines']], b'name': b'buffer_insert', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name']], b'name': b'buffer_get_mark', b'can_fail': True, b'return_type': b'ArrayOf(Integer, 2)'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'src_id'], [b'String', b'hl_group'], [b'Integer', b'line'], [b'Integer', b'col_start'], [b'Integer', b'col_end']], b'name': b'buffer_add_highlight', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'src_id'], [b'Integer', b'line_start'], [b'Integer', b'line_end']], b'name': b'buffer_clear_highlight', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage']], b'name': b'tabpage_get_windows', b'can_fail': True, b'return_type': b'ArrayOf(Window)'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage'], [b'String', b'name']], b'name': b'tabpage_get_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage'], [b'String', b'name'], [b'Object', b'value']], b'name': b'tabpage_set_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage']], b'name': b'tabpage_get_window', b'can_fail': True, b'return_type': b'Window'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage']], b'name': b'tabpage_is_valid', b'return_type': b'Boolean'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_command', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'keys'], [b'String', b'mode'], [b'Boolean', b'escape_csi']], b'name': b'vim_feedkeys', b'return_type': b'void'}, {b'async': True, b'parameters': [[b'String', b'keys']], b'name': b'vim_input', b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'String', b'str'], [b'Boolean', b'from_part'], [b'Boolean', b'do_lt'], [b'Boolean', b'special']], b'name': b'vim_replace_termcodes', b'return_type': b'String'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_command_output', b'can_fail': True, b'return_type': b'String'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_eval', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'fname'], [b'Array', b'args']], b'name': b'vim_call_function', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_strwidth', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [], b'name': b'vim_list_runtime_paths', b'return_type': b'ArrayOf(String)'}, {b'async': False, b'parameters': [[b'String', b'dir']], b'name': b'vim_change_directory', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [], b'name': b'vim_get_current_line', b'can_fail': True, b'return_type': b'String'}, {b'async': False, b'parameters': [[b'String', b'line']], b'name': b'vim_set_current_line', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [], b'name': b'vim_del_current_line', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'name']], b'name': b'vim_get_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'name'], [b'Object', b'value']], b'name': b'vim_set_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'name']], b'name': b'vim_get_vvar', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'name']], b'name': b'vim_get_option', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'name'], [b'Object', b'value']], b'name': b'vim_set_option', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_out_write', b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_err_write', b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_report_error', b'return_type': b'void'}, {b'async': False, b'parameters': [], b'name': b'vim_get_buffers', b'return_type': b'ArrayOf(Buffer)'}, {b'async': False, b'parameters': [], b'name': b'vim_get_current_buffer', b'return_type': b'Buffer'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer']], b'name': b'vim_set_current_buffer', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [], b'name': b'vim_get_windows', b'return_type': b'ArrayOf(Window)'}, {b'async': False, b'parameters': [], b'name': b'vim_get_current_window', b'return_type': b'Window'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'vim_set_current_window', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [], b'name': b'vim_get_tabpages', b'return_type': b'ArrayOf(Tabpage)'}, {b'async': False, b'parameters': [], b'name': b'vim_get_current_tabpage', b'return_type': b'Tabpage'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage']], b'name': b'vim_set_current_tabpage', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'event']], b'name': b'vim_subscribe', b'receives_channel_id': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'event']], b'name': b'vim_unsubscribe', b'receives_channel_id': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'name']], b'name': b'vim_name_to_color', b'return_type': b'Integer'}, {b'async': False, b'parameters': [], b'name': b'vim_get_color_map', b'return_type': b'Dictionary'}, {b'async': True, b'parameters': [], b'name': b'vim_get_api_info', b'receives_channel_id': True, b'return_type': b'Array'}]}]]
2016-03-19 09:12:12,396 [DEBUG @ async_session.py:_on_response:95] 20435 - received response: None, [2, {b'types': {b'Tabpage': {b'id': 2}, b'Buffer': {b'id': 0}, b'Window': {b'id': 1}}, b'error_types': {b'Validation': {b'id': 1}, b'Exception': {b'id': 0}}, b'functions': [{b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_buffer', b'can_fail': True, b'return_type': b'Buffer'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_cursor', b'can_fail': True, b'return_type': b'ArrayOf(Integer, 2)'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'ArrayOf(Integer, 2)', b'pos']], b'name': b'window_set_cursor', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_height', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'Integer', b'height']], b'name': b'window_set_height', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_width', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'Integer', b'width']], b'name': b'window_set_width', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'String', b'name']], b'name': b'window_get_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'String', b'name'], [b'Object', b'value']], b'name': b'window_set_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'String', b'name']], b'name': b'window_get_option', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'String', b'name'], [b'Object', b'value']], b'name': b'window_set_option', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_position', b'can_fail': True, b'return_type': b'ArrayOf(Integer, 2)'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_tabpage', b'can_fail': True, b'return_type': b'Tabpage'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_is_valid', b'return_type': b'Boolean'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer']], b'name': b'buffer_line_count', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'index']], b'name': b'buffer_get_line', b'can_fail': True, b'return_type': b'String'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'index'], [b'String', b'line']], b'name': b'buffer_set_line', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'index']], b'name': b'buffer_del_line', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'start'], [b'Integer', b'end'], [b'Boolean', b'include_start'], [b'Boolean', b'include_end']], b'name': b'buffer_get_line_slice', b'can_fail': True, b'return_type': b'ArrayOf(String)'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'start'], [b'Integer', b'end'], [b'Boolean', b'include_start'], [b'Boolean', b'include_end'], [b'ArrayOf(String)', b'replacement']], b'name': b'buffer_set_line_slice', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name']], b'name': b'buffer_get_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name'], [b'Object', b'value']], b'name': b'buffer_set_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name']], b'name': b'buffer_get_option', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name'], [b'Object', b'value']], b'name': b'buffer_set_option', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer']], b'name': b'buffer_get_number', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer']], b'name': b'buffer_get_name', b'can_fail': True, b'return_type': b'String'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name']], b'name': b'buffer_set_name', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer']], b'name': b'buffer_is_valid', b'return_type': b'Boolean'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'lnum'], [b'ArrayOf(String)', b'lines']], b'name': b'buffer_insert', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name']], b'name': b'buffer_get_mark', b'can_fail': True, b'return_type': b'ArrayOf(Integer, 2)'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'src_id'], [b'String', b'hl_group'], [b'Integer', b'line'], [b'Integer', b'col_start'], [b'Integer', b'col_end']], b'name': b'buffer_add_highlight', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'src_id'], [b'Integer', b'line_start'], [b'Integer', b'line_end']], b'name': b'buffer_clear_highlight', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage']], b'name': b'tabpage_get_windows', b'can_fail': True, b'return_type': b'ArrayOf(Window)'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage'], [b'String', b'name']], b'name': b'tabpage_get_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage'], [b'String', b'name'], [b'Object', b'value']], b'name': b'tabpage_set_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage']], b'name': b'tabpage_get_window', b'can_fail': True, b'return_type': b'Window'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage']], b'name': b'tabpage_is_valid', b'return_type': b'Boolean'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_command', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'keys'], [b'String', b'mode'], [b'Boolean', b'escape_csi']], b'name': b'vim_feedkeys', b'return_type': b'void'}, {b'async': True, b'parameters': [[b'String', b'keys']], b'name': b'vim_input', b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'String', b'str'], [b'Boolean', b'from_part'], [b'Boolean', b'do_lt'], [b'Boolean', b'special']], b'name': b'vim_replace_termcodes', b'return_type': b'String'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_command_output', b'can_fail': True, b'return_type': b'String'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_eval', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'fname'], [b'Array', b'args']], b'name': b'vim_call_function', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_strwidth', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [], b'name': b'vim_list_runtime_paths', b'return_type': b'ArrayOf(String)'}, {b'async': False, b'parameters': [[b'String', b'dir']], b'name': b'vim_change_directory', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [], b'name': b'vim_get_current_line', b'can_fail': True, b'return_type': b'String'}, {b'async': False, b'parameters': [[b'String', b'line']], b'name': b'vim_set_current_line', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [], b'name': b'vim_del_current_line', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'name']], b'name': b'vim_get_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'name'], [b'Object', b'value']], b'name': b'vim_set_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'name']], b'name': b'vim_get_vvar', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'name']], b'name': b'vim_get_option', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'name'], [b'Object', b'value']], b'name': b'vim_set_option', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_out_write', b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_err_write', b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_report_error', b'return_type': b'void'}, {b'async': False, b'parameters': [], b'name': b'vim_get_buffers', b'return_type': b'ArrayOf(Buffer)'}, {b'async': False, b'parameters': [], b'name': b'vim_get_current_buffer', b'return_type': b'Buffer'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer']], b'name': b'vim_set_current_buffer', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [], b'name': b'vim_get_windows', b'return_type': b'ArrayOf(Window)'}, {b'async': False, b'parameters': [], b'name': b'vim_get_current_window', b'return_type': b'Window'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'vim_set_current_window', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [], b'name': b'vim_get_tabpages', b'return_type': b'ArrayOf(Tabpage)'}, {b'async': False, b'parameters': [], b'name': b'vim_get_current_tabpage', b'return_type': b'Tabpage'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage']], b'name': b'vim_set_current_tabpage', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'event']], b'name': b'vim_subscribe', b'receives_channel_id': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'event']], b'name': b'vim_unsubscribe', b'receives_channel_id': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'name']], b'name': b'vim_name_to_color', b'return_type': b'Integer'}, {b'async': False, b'parameters': [], b'name': b'vim_get_color_map', b'return_type': b'Dictionary'}, {b'async': True, b'parameters': [], b'name': b'vim_get_api_info', b'receives_channel_id': True, b'return_type': b'Array'}]}]
2016-03-19 09:12:12,397 [DEBUG @ base.py:stop:149] 20435 - Stopped event loop
2016-03-19 09:12:12,397 [DEBUG @ msgpack_stream.py:_on_data:57] 20435 - waiting for message...
2016-03-19 09:12:12,397 [DEBUG @ msgpack_stream.py:_on_data:62] 20435 - unpacker needs more data...
2016-03-19 09:12:12,397 [DEBUG @ base.py:run:140] 20435 - Exited event loop
2016-03-19 09:12:12,397 [DEBUG @ msgpack_stream.py:send:36] 20435 - sent [0, 2, b'vim_get_option', (b'encoding',)]
2016-03-19 09:12:12,397 [DEBUG @ base.py:send:113] 20435 - Sending 'b'\x94\x00\x02\xc4\x0evim_get_option\x91\xc4\x08encoding''
2016-03-19 09:12:12,397 [DEBUG @ base.py:run:138] 20435 - Entering event loop
2016-03-19 09:12:12,397 [DEBUG @ msgpack_stream.py:_on_data:57] 20435 - waiting for message...
2016-03-19 09:12:12,397 [DEBUG @ msgpack_stream.py:_on_data:59] 20435 - received message: [1, 2, None, b'utf-8']
2016-03-19 09:12:12,397 [DEBUG @ async_session.py:_on_response:95] 20435 - received response: None, b'utf-8'
2016-03-19 09:12:12,397 [DEBUG @ base.py:stop:149] 20435 - Stopped event loop
2016-03-19 09:12:12,397 [DEBUG @ msgpack_stream.py:_on_data:57] 20435 - waiting for message...
2016-03-19 09:12:12,397 [DEBUG @ msgpack_stream.py:_on_data:62] 20435 - unpacker needs more data...
2016-03-19 09:12:12,397 [DEBUG @ base.py:run:140] 20435 - Exited event loop
2016-03-19 09:12:12,399 [DEBUG @ msgpack_stream.py:send:36] 20435 - sent [0, 3, 'vim_get_option', ('encoding',)]
2016-03-19 09:12:12,399 [DEBUG @ base.py:send:113] 20435 - Sending 'b'\x94\x00\x03\xaevim_get_option\x91\xa8encoding''
2016-03-19 09:12:12,399 [DEBUG @ base.py:run:138] 20435 - Entering event loop
2016-03-19 09:12:12,400 [DEBUG @ msgpack_stream.py:_on_data:57] 20435 - waiting for message...
2016-03-19 09:12:12,400 [DEBUG @ msgpack_stream.py:_on_data:59] 20435 - received message: [1, 3, None, b'utf-8']
2016-03-19 09:12:12,400 [DEBUG @ async_session.py:_on_response:95] 20435 - received response: None, b'utf-8'
2016-03-19 09:12:12,400 [DEBUG @ base.py:stop:149] 20435 - Stopped event loop
2016-03-19 09:12:12,400 [DEBUG @ msgpack_stream.py:_on_data:57] 20435 - waiting for message...
2016-03-19 09:12:12,400 [DEBUG @ msgpack_stream.py:_on_data:62] 20435 - unpacker needs more data...
2016-03-19 09:12:12,400 [DEBUG @ base.py:run:140] 20435 - Exited event loop
2016-03-19 09:12:12,400 [DEBUG @ base.py:stop:149] 20435 - Stopped event loop
2016-03-19 09:12:12,400 [ERROR @ session.py:run:117] 20435 - Setup error: No module named 'script_host'

@khalidchawtany Here are the results from the commands.

pip2 show neovim
---
Metadata-Version: 2.0
Name: neovim
Version: 0.1.5
Summary: Python client to neovim
Home-page: http://github.com/neovim/python-client
Author: Thiago de Arruda
Author-email: tpadilha84@gmail.com
License: Apache
Location: /usr/local/lib/python2.7/dist-packages
Requires: trollius, msgpack-python, greenlet

pip3 show neovim
---
Metadata-Version: 2.0
Name: neovim
Version: 0.1.5
Summary: Python client to neovim
Home-page: http://github.com/neovim/python-client
Author: Thiago de Arruda
Author-email: tpadilha84@gmail.com
License: Apache
Location: /usr/local/lib/python2.7/dist-packages
Requires: trollius, msgpack-python, greenlet

ls -lAFh `which python`
lrwxrwxrwx 1 root root 9 Aug 18  2014 /usr/bin/python -> python2.7*

!ls -lAFh `which python`
lrwxrwxrwx 1 root root 9 Aug 18  2014 /usr/bin/python -> python2.7*

It appears as though pip3 is pointing to the 2.7 package, which might be the reason why I am still having issues. Is there an easy way to fix this? For reference, I have also attached the more detailed log file that @bfredl recommended.

2016-03-19 09:12:12,395 [DEBUG @ msgpack_stream.py:send:36] 20435 - sent [0, 1, b'vim_get_api_info', ()]
2016-03-19 09:12:12,395 [DEBUG @ base.py:send:113] 20435 - Sending 'b'\x94\x00\x01\xc4\x10vim_get_api_info\x90''
2016-03-19 09:12:12,395 [DEBUG @ base.py:run:138] 20435 - Entering event loop
2016-03-19 09:12:12,396 [DEBUG @ msgpack_stream.py:_on_data:57] 20435 - waiting for message...
2016-03-19 09:12:12,396 [DEBUG @ msgpack_stream.py:_on_data:59] 20435 - received message: [0, 1, b'poll', []]
2016-03-19 09:12:12,396 [DEBUG @ async_session.py:_on_request:86] 20435 - received request: b'poll', []
2016-03-19 09:12:12,396 [DEBUG @ msgpack_stream.py:_on_data:57] 20435 - waiting for message...
2016-03-19 09:12:12,396 [DEBUG @ msgpack_stream.py:_on_data:62] 20435 - unpacker needs more data...
2016-03-19 09:12:12,396 [DEBUG @ msgpack_stream.py:_on_data:57] 20435 - waiting for message...
2016-03-19 09:12:12,396 [DEBUG @ msgpack_stream.py:_on_data:59] 20435 - received message: [1, 1, None, [2, {b'types': {b'Tabpage': {b'id': 2}, b'Buffer': {b'id': 0}, b'Window': {b'id': 1}}, b'error_types': {b'Validation': {b'id': 1}, b'Exception': {b'id': 0}}, b'functions': [{b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_buffer', b'can_fail': True, b'return_type': b'Buffer'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_cursor', b'can_fail': True, b'return_type': b'ArrayOf(Integer, 2)'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'ArrayOf(Integer, 2)', b'pos']], b'name': b'window_set_cursor', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_height', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'Integer', b'height']], b'name': b'window_set_height', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_width', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'Integer', b'width']], b'name': b'window_set_width', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'String', b'name']], b'name': b'window_get_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'String', b'name'], [b'Object', b'value']], b'name': b'window_set_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'String', b'name']], b'name': b'window_get_option', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'String', b'name'], [b'Object', b'value']], b'name': b'window_set_option', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_position', b'can_fail': True, b'return_type': b'ArrayOf(Integer, 2)'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_tabpage', b'can_fail': True, b'return_type': b'Tabpage'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_is_valid', b'return_type': b'Boolean'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer']], b'name': b'buffer_line_count', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'index']], b'name': b'buffer_get_line', b'can_fail': True, b'return_type': b'String'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'index'], [b'String', b'line']], b'name': b'buffer_set_line', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'index']], b'name': b'buffer_del_line', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'start'], [b'Integer', b'end'], [b'Boolean', b'include_start'], [b'Boolean', b'include_end']], b'name': b'buffer_get_line_slice', b'can_fail': True, b'return_type': b'ArrayOf(String)'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'start'], [b'Integer', b'end'], [b'Boolean', b'include_start'], [b'Boolean', b'include_end'], [b'ArrayOf(String)', b'replacement']], b'name': b'buffer_set_line_slice', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name']], b'name': b'buffer_get_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name'], [b'Object', b'value']], b'name': b'buffer_set_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name']], b'name': b'buffer_get_option', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name'], [b'Object', b'value']], b'name': b'buffer_set_option', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer']], b'name': b'buffer_get_number', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer']], b'name': b'buffer_get_name', b'can_fail': True, b'return_type': b'String'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name']], b'name': b'buffer_set_name', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer']], b'name': b'buffer_is_valid', b'return_type': b'Boolean'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'lnum'], [b'ArrayOf(String)', b'lines']], b'name': b'buffer_insert', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name']], b'name': b'buffer_get_mark', b'can_fail': True, b'return_type': b'ArrayOf(Integer, 2)'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'src_id'], [b'String', b'hl_group'], [b'Integer', b'line'], [b'Integer', b'col_start'], [b'Integer', b'col_end']], b'name': b'buffer_add_highlight', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'src_id'], [b'Integer', b'line_start'], [b'Integer', b'line_end']], b'name': b'buffer_clear_highlight', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage']], b'name': b'tabpage_get_windows', b'can_fail': True, b'return_type': b'ArrayOf(Window)'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage'], [b'String', b'name']], b'name': b'tabpage_get_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage'], [b'String', b'name'], [b'Object', b'value']], b'name': b'tabpage_set_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage']], b'name': b'tabpage_get_window', b'can_fail': True, b'return_type': b'Window'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage']], b'name': b'tabpage_is_valid', b'return_type': b'Boolean'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_command', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'keys'], [b'String', b'mode'], [b'Boolean', b'escape_csi']], b'name': b'vim_feedkeys', b'return_type': b'void'}, {b'async': True, b'parameters': [[b'String', b'keys']], b'name': b'vim_input', b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'String', b'str'], [b'Boolean', b'from_part'], [b'Boolean', b'do_lt'], [b'Boolean', b'special']], b'name': b'vim_replace_termcodes', b'return_type': b'String'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_command_output', b'can_fail': True, b'return_type': b'String'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_eval', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'fname'], [b'Array', b'args']], b'name': b'vim_call_function', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_strwidth', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [], b'name': b'vim_list_runtime_paths', b'return_type': b'ArrayOf(String)'}, {b'async': False, b'parameters': [[b'String', b'dir']], b'name': b'vim_change_directory', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [], b'name': b'vim_get_current_line', b'can_fail': True, b'return_type': b'String'}, {b'async': False, b'parameters': [[b'String', b'line']], b'name': b'vim_set_current_line', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [], b'name': b'vim_del_current_line', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'name']], b'name': b'vim_get_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'name'], [b'Object', b'value']], b'name': b'vim_set_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'name']], b'name': b'vim_get_vvar', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'name']], b'name': b'vim_get_option', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'name'], [b'Object', b'value']], b'name': b'vim_set_option', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_out_write', b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_err_write', b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_report_error', b'return_type': b'void'}, {b'async': False, b'parameters': [], b'name': b'vim_get_buffers', b'return_type': b'ArrayOf(Buffer)'}, {b'async': False, b'parameters': [], b'name': b'vim_get_current_buffer', b'return_type': b'Buffer'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer']], b'name': b'vim_set_current_buffer', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [], b'name': b'vim_get_windows', b'return_type': b'ArrayOf(Window)'}, {b'async': False, b'parameters': [], b'name': b'vim_get_current_window', b'return_type': b'Window'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'vim_set_current_window', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [], b'name': b'vim_get_tabpages', b'return_type': b'ArrayOf(Tabpage)'}, {b'async': False, b'parameters': [], b'name': b'vim_get_current_tabpage', b'return_type': b'Tabpage'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage']], b'name': b'vim_set_current_tabpage', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'event']], b'name': b'vim_subscribe', b'receives_channel_id': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'event']], b'name': b'vim_unsubscribe', b'receives_channel_id': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'name']], b'name': b'vim_name_to_color', b'return_type': b'Integer'}, {b'async': False, b'parameters': [], b'name': b'vim_get_color_map', b'return_type': b'Dictionary'}, {b'async': True, b'parameters': [], b'name': b'vim_get_api_info', b'receives_channel_id': True, b'return_type': b'Array'}]}]]
2016-03-19 09:12:12,396 [DEBUG @ async_session.py:_on_response:95] 20435 - received response: None, [2, {b'types': {b'Tabpage': {b'id': 2}, b'Buffer': {b'id': 0}, b'Window': {b'id': 1}}, b'error_types': {b'Validation': {b'id': 1}, b'Exception': {b'id': 0}}, b'functions': [{b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_buffer', b'can_fail': True, b'return_type': b'Buffer'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_cursor', b'can_fail': True, b'return_type': b'ArrayOf(Integer, 2)'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'ArrayOf(Integer, 2)', b'pos']], b'name': b'window_set_cursor', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_height', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'Integer', b'height']], b'name': b'window_set_height', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_width', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'Integer', b'width']], b'name': b'window_set_width', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'String', b'name']], b'name': b'window_get_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'String', b'name'], [b'Object', b'value']], b'name': b'window_set_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'String', b'name']], b'name': b'window_get_option', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Window', b'window'], [b'String', b'name'], [b'Object', b'value']], b'name': b'window_set_option', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_position', b'can_fail': True, b'return_type': b'ArrayOf(Integer, 2)'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_get_tabpage', b'can_fail': True, b'return_type': b'Tabpage'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'window_is_valid', b'return_type': b'Boolean'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer']], b'name': b'buffer_line_count', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'index']], b'name': b'buffer_get_line', b'can_fail': True, b'return_type': b'String'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'index'], [b'String', b'line']], b'name': b'buffer_set_line', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'index']], b'name': b'buffer_del_line', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'start'], [b'Integer', b'end'], [b'Boolean', b'include_start'], [b'Boolean', b'include_end']], b'name': b'buffer_get_line_slice', b'can_fail': True, b'return_type': b'ArrayOf(String)'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'start'], [b'Integer', b'end'], [b'Boolean', b'include_start'], [b'Boolean', b'include_end'], [b'ArrayOf(String)', b'replacement']], b'name': b'buffer_set_line_slice', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name']], b'name': b'buffer_get_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name'], [b'Object', b'value']], b'name': b'buffer_set_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name']], b'name': b'buffer_get_option', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name'], [b'Object', b'value']], b'name': b'buffer_set_option', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer']], b'name': b'buffer_get_number', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer']], b'name': b'buffer_get_name', b'can_fail': True, b'return_type': b'String'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name']], b'name': b'buffer_set_name', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer']], b'name': b'buffer_is_valid', b'return_type': b'Boolean'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'lnum'], [b'ArrayOf(String)', b'lines']], b'name': b'buffer_insert', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'String', b'name']], b'name': b'buffer_get_mark', b'can_fail': True, b'return_type': b'ArrayOf(Integer, 2)'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'src_id'], [b'String', b'hl_group'], [b'Integer', b'line'], [b'Integer', b'col_start'], [b'Integer', b'col_end']], b'name': b'buffer_add_highlight', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer'], [b'Integer', b'src_id'], [b'Integer', b'line_start'], [b'Integer', b'line_end']], b'name': b'buffer_clear_highlight', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage']], b'name': b'tabpage_get_windows', b'can_fail': True, b'return_type': b'ArrayOf(Window)'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage'], [b'String', b'name']], b'name': b'tabpage_get_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage'], [b'String', b'name'], [b'Object', b'value']], b'name': b'tabpage_set_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage']], b'name': b'tabpage_get_window', b'can_fail': True, b'return_type': b'Window'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage']], b'name': b'tabpage_is_valid', b'return_type': b'Boolean'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_command', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'keys'], [b'String', b'mode'], [b'Boolean', b'escape_csi']], b'name': b'vim_feedkeys', b'return_type': b'void'}, {b'async': True, b'parameters': [[b'String', b'keys']], b'name': b'vim_input', b'return_type': b'Integer'}, {b'async': False, b'parameters': [[b'String', b'str'], [b'Boolean', b'from_part'], [b'Boolean', b'do_lt'], [b'Boolean', b'special']], b'name': b'vim_replace_termcodes', b'return_type': b'String'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_command_output', b'can_fail': True, b'return_type': b'String'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_eval', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'fname'], [b'Array', b'args']], b'name': b'vim_call_function', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_strwidth', b'can_fail': True, b'return_type': b'Integer'}, {b'async': False, b'parameters': [], b'name': b'vim_list_runtime_paths', b'return_type': b'ArrayOf(String)'}, {b'async': False, b'parameters': [[b'String', b'dir']], b'name': b'vim_change_directory', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [], b'name': b'vim_get_current_line', b'can_fail': True, b'return_type': b'String'}, {b'async': False, b'parameters': [[b'String', b'line']], b'name': b'vim_set_current_line', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [], b'name': b'vim_del_current_line', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'name']], b'name': b'vim_get_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'name'], [b'Object', b'value']], b'name': b'vim_set_var', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'name']], b'name': b'vim_get_vvar', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'name']], b'name': b'vim_get_option', b'can_fail': True, b'return_type': b'Object'}, {b'async': False, b'parameters': [[b'String', b'name'], [b'Object', b'value']], b'name': b'vim_set_option', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_out_write', b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_err_write', b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'str']], b'name': b'vim_report_error', b'return_type': b'void'}, {b'async': False, b'parameters': [], b'name': b'vim_get_buffers', b'return_type': b'ArrayOf(Buffer)'}, {b'async': False, b'parameters': [], b'name': b'vim_get_current_buffer', b'return_type': b'Buffer'}, {b'async': False, b'parameters': [[b'Buffer', b'buffer']], b'name': b'vim_set_current_buffer', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [], b'name': b'vim_get_windows', b'return_type': b'ArrayOf(Window)'}, {b'async': False, b'parameters': [], b'name': b'vim_get_current_window', b'return_type': b'Window'}, {b'async': False, b'parameters': [[b'Window', b'window']], b'name': b'vim_set_current_window', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [], b'name': b'vim_get_tabpages', b'return_type': b'ArrayOf(Tabpage)'}, {b'async': False, b'parameters': [], b'name': b'vim_get_current_tabpage', b'return_type': b'Tabpage'}, {b'async': False, b'parameters': [[b'Tabpage', b'tabpage']], b'name': b'vim_set_current_tabpage', b'can_fail': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'event']], b'name': b'vim_subscribe', b'receives_channel_id': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'event']], b'name': b'vim_unsubscribe', b'receives_channel_id': True, b'return_type': b'void'}, {b'async': False, b'parameters': [[b'String', b'name']], b'name': b'vim_name_to_color', b'return_type': b'Integer'}, {b'async': False, b'parameters': [], b'name': b'vim_get_color_map', b'return_type': b'Dictionary'}, {b'async': True, b'parameters': [], b'name': b'vim_get_api_info', b'receives_channel_id': True, b'return_type': b'Array'}]}]
2016-03-19 09:12:12,397 [DEBUG @ base.py:stop:149] 20435 - Stopped event loop
2016-03-19 09:12:12,397 [DEBUG @ msgpack_stream.py:_on_data:57] 20435 - waiting for message...
2016-03-19 09:12:12,397 [DEBUG @ msgpack_stream.py:_on_data:62] 20435 - unpacker needs more data...
2016-03-19 09:12:12,397 [DEBUG @ base.py:run:140] 20435 - Exited event loop
2016-03-19 09:12:12,397 [DEBUG @ msgpack_stream.py:send:36] 20435 - sent [0, 2, b'vim_get_option', (b'encoding',)]
2016-03-19 09:12:12,397 [DEBUG @ base.py:send:113] 20435 - Sending 'b'\x94\x00\x02\xc4\x0evim_get_option\x91\xc4\x08encoding''
2016-03-19 09:12:12,397 [DEBUG @ base.py:run:138] 20435 - Entering event loop
2016-03-19 09:12:12,397 [DEBUG @ msgpack_stream.py:_on_data:57] 20435 - waiting for message...
2016-03-19 09:12:12,397 [DEBUG @ msgpack_stream.py:_on_data:59] 20435 - received message: [1, 2, None, b'utf-8']
2016-03-19 09:12:12,397 [DEBUG @ async_session.py:_on_response:95] 20435 - received response: None, b'utf-8'
2016-03-19 09:12:12,397 [DEBUG @ base.py:stop:149] 20435 - Stopped event loop
2016-03-19 09:12:12,397 [DEBUG @ msgpack_stream.py:_on_data:57] 20435 - waiting for message...
2016-03-19 09:12:12,397 [DEBUG @ msgpack_stream.py:_on_data:62] 20435 - unpacker needs more data...
2016-03-19 09:12:12,397 [DEBUG @ base.py:run:140] 20435 - Exited event loop
2016-03-19 09:12:12,399 [DEBUG @ msgpack_stream.py:send:36] 20435 - sent [0, 3, 'vim_get_option', ('encoding',)]
2016-03-19 09:12:12,399 [DEBUG @ base.py:send:113] 20435 - Sending 'b'\x94\x00\x03\xaevim_get_option\x91\xa8encoding''
2016-03-19 09:12:12,399 [DEBUG @ base.py:run:138] 20435 - Entering event loop
2016-03-19 09:12:12,400 [DEBUG @ msgpack_stream.py:_on_data:57] 20435 - waiting for message...
2016-03-19 09:12:12,400 [DEBUG @ msgpack_stream.py:_on_data:59] 20435 - received message: [1, 3, None, b'utf-8']
2016-03-19 09:12:12,400 [DEBUG @ async_session.py:_on_response:95] 20435 - received response: None, b'utf-8'
2016-03-19 09:12:12,400 [DEBUG @ base.py:stop:149] 20435 - Stopped event loop
2016-03-19 09:12:12,400 [DEBUG @ msgpack_stream.py:_on_data:57] 20435 - waiting for message...
2016-03-19 09:12:12,400 [DEBUG @ msgpack_stream.py:_on_data:62] 20435 - unpacker needs more data...
2016-03-19 09:12:12,400 [DEBUG @ base.py:run:140] 20435 - Exited event loop
2016-03-19 09:12:12,400 [DEBUG @ base.py:stop:149] 20435 - Stopped event loop
2016-03-19 09:12:12,400 [ERROR @ session.py:run:117] 20435 - Setup error: No module named 'script_host'
@khalidchawtany

This comment has been minimized.

Show comment
Hide comment
@khalidchawtany

khalidchawtany Mar 19, 2016

I had the exact opposite. My pip command was pointing to python3 instead of python2.

Run the following commands:

pip2

 >> cat `which pip2`
#!/usr/local/opt/python/bin/python2.7

# -*- coding: utf-8 -*-
import re
import sys

from pip import main

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
    sys.exit(main())

pip3

>> cat `which pip3`
#!/usr/local/opt/python3/bin/python3.5

# -*- coding: utf-8 -*-
import re
import sys

from pip import main

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
    sys.exit(main())

Note how each points to their version of python. Correct them accordingly if they are not like mine :)

I had the exact opposite. My pip command was pointing to python3 instead of python2.

Run the following commands:

pip2

 >> cat `which pip2`
#!/usr/local/opt/python/bin/python2.7

# -*- coding: utf-8 -*-
import re
import sys

from pip import main

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
    sys.exit(main())

pip3

>> cat `which pip3`
#!/usr/local/opt/python3/bin/python3.5

# -*- coding: utf-8 -*-
import re
import sys

from pip import main

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
    sys.exit(main())

Note how each points to their version of python. Correct them accordingly if they are not like mine :)

@renajohn

This comment has been minimized.

Show comment
Hide comment
@renajohn

renajohn Mar 26, 2016

I think I had a similar issue when I upgraded to the latest version of NeoVim on El Capitan. Doing:

pip2 install --upgrade --force-reinstall neovim

Was not working. So I've did:

pip2 unsintall neovim
pip2 install neovim

and my life rocks again (read: it worked).

I think I had a similar issue when I upgraded to the latest version of NeoVim on El Capitan. Doing:

pip2 install --upgrade --force-reinstall neovim

Was not working. So I've did:

pip2 unsintall neovim
pip2 install neovim

and my life rocks again (read: it worked).

@danielb2

This comment has been minimized.

Show comment
Hide comment
@danielb2

danielb2 Apr 11, 2016

@khalidchawtany 's solution worked for me also. I ran into this too, and I just reinstalled neovim with homebrew today. NVIM v0.1.4-23-gf47a20a

@khalidchawtany 's solution worked for me also. I ran into this too, and I just reinstalled neovim with homebrew today. NVIM v0.1.4-23-gf47a20a

@sullyj3

This comment has been minimized.

Show comment
Hide comment
@sullyj3

sullyj3 May 29, 2016

I'm having the same issue on 0.1.4

On my system, pip is aliased to pip3, and pip install --upgrade neovim didn't work. Doing pip2 install --upgrade neovim throws a giant traceback:

Traceback (most recent call last):
  File "/usr/bin/pip2", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2927, in <module>
    @_call_aside
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2913, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2940, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 626, in _build_master
    ws = cls()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 619, in __init__
    self.add_entry(entry)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 675, in add_entry
    for dist in find_distributions(entry, True):
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1982, in find_on_path
    path_item, entry, metadata, precedence=DEVELOP_DIST
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2370, in from_location
    py_version=py_version, platform=platform, **kw
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2687, in _reload_version
    md_version = _version_from_file(self._get_metadata(self.PKG_INFO))
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2335, in _version_from_file
    line = next(iter(version_lines), '')
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2503, in _get_metadata
    for line in self.get_metadata_lines(name):
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1873, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1863, in get_metadata
    metadata = f.read()
  File "/usr/lib/python2.7/codecs.py", line 314, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xf6 in position 203: invalid start byte in /usr/lib/python2.7/site-packages/albumart-1.6.6-py2.7.egg-info

The exact same traceback is thrown by pip2 show neovim as well.
I really have no idea how to interpret that, so I took a different approach.
I did binary search on my plugins to see which one was causing the original error message, and it seems to be YouCompleteMe.

Not really sure what to do from here.

sullyj3 commented May 29, 2016

I'm having the same issue on 0.1.4

On my system, pip is aliased to pip3, and pip install --upgrade neovim didn't work. Doing pip2 install --upgrade neovim throws a giant traceback:

Traceback (most recent call last):
  File "/usr/bin/pip2", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2927, in <module>
    @_call_aside
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2913, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2940, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 626, in _build_master
    ws = cls()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 619, in __init__
    self.add_entry(entry)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 675, in add_entry
    for dist in find_distributions(entry, True):
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1982, in find_on_path
    path_item, entry, metadata, precedence=DEVELOP_DIST
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2370, in from_location
    py_version=py_version, platform=platform, **kw
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2687, in _reload_version
    md_version = _version_from_file(self._get_metadata(self.PKG_INFO))
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2335, in _version_from_file
    line = next(iter(version_lines), '')
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2503, in _get_metadata
    for line in self.get_metadata_lines(name):
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1873, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1863, in get_metadata
    metadata = f.read()
  File "/usr/lib/python2.7/codecs.py", line 314, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xf6 in position 203: invalid start byte in /usr/lib/python2.7/site-packages/albumart-1.6.6-py2.7.egg-info

The exact same traceback is thrown by pip2 show neovim as well.
I really have no idea how to interpret that, so I took a different approach.
I did binary search on my plugins to see which one was causing the original error message, and it seems to be YouCompleteMe.

Not really sure what to do from here.

@sullyj3

This comment has been minimized.

Show comment
Hide comment
@sullyj3

sullyj3 May 29, 2016

In the unlikely event that someone experiences the exact same problem as me, I managed to solve by uninstalling the package "albumart" with pacman -R albumart. This allowed me to update the python2 neovim package with pip2 install --upgrade neovim which made the scary error message go away. Still not entirely sure why YouCompleteMe was the only plugin which caused the message.

sullyj3 commented May 29, 2016

In the unlikely event that someone experiences the exact same problem as me, I managed to solve by uninstalling the package "albumart" with pacman -R albumart. This allowed me to update the python2 neovim package with pip2 install --upgrade neovim which made the scary error message go away. Still not entirely sure why YouCompleteMe was the only plugin which caused the message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment