question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

:checkhealth failed after upgrade module neovim to 0.3.1 (on python 3.7.1)

See original GitHub issue

Expected result: :checkhealth all passed

Actual result:

## Python 3 provider (optional)
  - INFO: Using: g:python3_host_prog = "/usr/local/bin/python3"
  - INFO: Executable: /usr/local/bin/python3
  - ERROR: Command error (job=7): `'/usr/local/bin/python3' -c 'import sys; sys.path.remove(""); import neovim; print(neovim.__file__)'` (in '/Users/bruce/work/encoding-service')
    Output: Traceback (most recent call last):  File "<string>", line 1, in <module>ModuleNotFoundError: No module named 'neovim'
  - INFO: Python3 version: 3.7.1
  - INFO: python3-neovim version: unable to load neovim Python module
  - ERROR: Neovim Python client is not installed.
    Error: unable to load neovim Python module
    - ADVICE:
      - Run in shell: pip3 install neovim 

Steps to reproduce:

  1. pip3 install neovim==0.3.1

  2. pip3 show neovim

    Name: neovim
    Version: 0.3.1
    Summary: Transition packgage for pynvim
    Home-page: http://github.com/neovim/python-client
    Author: Thiago de Arruda
    Author-email: tpadilha84@gmail.com
    License: Apache
    Location: /usr/local/lib/python3.7/site-packages
    Requires: pynvim
    Required-by:
    
  3. pip3 show pynvim

Name: pynvim
Version: 0.3.1
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/python3.7/site-packages
Requires: msgpack, greenlet
Required-by: neovim
  1. nvim +checkhealth

health#LanguageClient#check
========================================================================
  - OK: binary found: /Users/bruce/.config/nvim/plugged/LanguageClient-neovim/bin/languageclient
  - OK: languageclient 0.1.127 229df982b764502c4e03b524ad3c14eb0db8e273

health#nvim#check
========================================================================
## Configuration
  - OK: no issues found

## Performance
  - OK: Build type: Release

## Remote Plugins
  - OK: Up to date

## terminal
  - INFO: key_backspace (kbs) terminfo entry: key_backspace=\177
  - INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~
  - INFO: $TERM_PROGRAM='iTerm.app'
  - INFO: $COLORTERM='truecolor'

health#provider#check
========================================================================
## Clipboard (optional)
  - OK: Clipboard tool found: pbcopy

## Python 2 provider (optional)
  - WARNING: No Python interpreter was found with the neovim module.  Using the first available for diagnostics.
  - ERROR: Python provider error
    - ADVICE:
      - provider/pythonx: Could not load Python 2:
          /usr/local/bin/python2 does not have the "neovim" module. :help |provider-python|
          /usr/local/bin/python2.7 does not have the "neovim" module. :help |provider-python|
          python2.6 not found in search path or not executable.
          /usr/local/bin/python does not have the "neovim" module. :help |provider-python|
  - INFO: Executable: Not found

## Python 3 provider (optional)
  - INFO: Using: g:python3_host_prog = "/usr/local/bin/python3"
  - INFO: Executable: /usr/local/bin/python3
  - ERROR: Command error (job=7): `'/usr/local/bin/python3' -c 'import sys; sys.path.remove(""); import neovim; print(neovim.__file__)'` (in '/Users/bruce/work/encoding-service')
    Output: Traceback (most recent call last):  File "<string>", line 1, in <module>ModuleNotFoundError: No module named 'neovim'
  - INFO: Python3 version: 3.7.1
  - INFO: python3-neovim version: unable to load neovim Python module
  - ERROR: Neovim Python client is not installed.
    Error: unable to load neovim Python module
    - ADVICE:
      - Run in shell: pip3 install neovim

## Ruby provider (optional)
  - INFO: Ruby: ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin17]
  - INFO: Host: /usr/local/bin/neovim-ruby-host
  - OK: Latest "neovim" gem is installed: 0.7.1

## Node.js provider (optional)
  - INFO: Node.js: v11.2.0
  - INFO: Neovim node.js host: /usr/local/lib/node_modules/neovim/bin/cli.js
  - OK: Latest "neovim" npm/yarn package is installed: 4.2.1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

31reactions
number5commented, Nov 19, 2018

Following the steps in docs like:

pip3 uninstall neovim
pip3 uninstall pynvim
pip3 install pynvim

fixed it.

It would be good if the error messages mentioned https://github.com/neovim/neovim/wiki/Following-HEAD#20181118 though.

4reactions
jaybocc2commented, Nov 29, 2018

Can we at least reference this on the Readme? I had to dig a little more than was necessary to find out the package had been renamed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Neovim on Windows can't find python provider - Stack Overflow
I can run python in cmd / powershell, and I can import neovim python module without any issues. Does someone know how to...
Read more >
ImportError: No module named neovim - Reddit
Whenever I try to start neovim, I get the following error: function ... (from neovim) (0.3.1) Requirement already satisfied, skipping upgrade: ...
Read more >
[SOLVED]Nvim with python / Newbie Corner / Arch Linux ...
But when i ran :checkhealth in nvim i saw python was installed but ... unable to load neovim Python module - ERROR: pynvim...
Read more >
space vim deoplete how to set g:python3_host_prog - You.com
Provide example that does not clobber <Tab> functionality on failure, or allow manual complete to be triggered by appropriate pattern (e.g. not at...
Read more >
neovim-pythonからpynvimへ。 - ちよぶろ。
検索してみると :checkhealth failed after upgrade module neovim to 0.3.1 (on python 3.7.1) #366 というのがあって、python-neovimがpynvimに ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found