Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

Startup errors in Neovim on windows #33

@sandyscott

Description

@sandyscott

Hi,

I get a whole bunch of errors when starting Neovim, or forcing plugins to update:

Error invoking 'python_execute' on channel 3 (python3-script-host):
Traceback (most recent call last):
  File "C:\Users\[my username]\.vim\plugged\vim-conda\plugin\vimconda.py", line 54, in func
    v = self.cache[key]
KeyError: (('import site, sys, os; sys.stdout.write(os.path.pathsep.join(site.getsitepackages()))',), ())

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\[my username]\.vim\plugged\vim-conda\plugin\vimconda.py", line 216, in insert_system_py_sitepath
    sitedirs = vim_conda_runpyshell(cmd)
  File "C:\Users\[my username]\.vim\plugged\vim-conda\plugin\vimconda.py", line 58, in func
    v = self.cache[key] = f(*args, **kwargs), time.time()
  File "C:\Users\[my username]\.vim\plugged\vim-conda\plugin\vimconda.py", line 151, in vim_conda_runpyshell
    return check_output('python -c "{}"'.format(cmd),
  File "C:\Users\[my username]\Anaconda3\envs\neovim_python3\lib\subprocess.py", line 411, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\[my username]\Anaconda3\envs\neovim_python3\lib\subprocess.py", line 512, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'python -c "import site, sys, os; sys.stdout.write(os.path.pathsep.join(site.getsitepackages()))"' returned non-zero exit status 9009.

I'm running Neovim 0.4.3 with the nvim-qt wrapper on Windows 10

I've set up environments for python 2 and 3 with pynvim in each, and configured python_host_prog and python3_host_prog - :checkhealth provider says both are OK:

## Python 2 provider (optional)
  - INFO: Using: g:python_host_prog = "C:\Users\[my username]/Anaconda3/envs/neovim_python2/python"
  - INFO: Executable: C:\Users\[my username]\Anaconda3\envs\neovim_python2\python
  - INFO: Python version: 2.7.15
  - INFO: pynvim version: 0.4.1
  - OK: Latest pynvim is installed.

## Python 3 provider (optional)
  - INFO: Using: g:python3_host_prog = "C:\Users\[my username]/Anaconda3/envs/neovim_python3/python"
  - INFO: Executable: C:\Users\[my username]\Anaconda3\envs\neovim_python3\python
  - INFO: Python version: 3.8.3
  - INFO: pynvim version: 0.4.1
  - OK: Latest pynvim is installed.

How can I get this working?

Kind regards,

Sandy

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions