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.

Error '[defx] defx requires Python3 support("+python3")' on Windows10, Vim8

See original GitHub issue

Warning: I will close the issue without the minimal init.vim and the reproduction instructions.

Problems summary

I’m getting this error on :Defx command run:

[defx] defx requires Python3 support("+python3").

Vim is compiled with Python3, pynvim is installed. It works fine on NeoVim.

Expected

Vim8 should be able to run :Defx.

Environment Information

  • defx version(SHA1): commit SHA-1: 0a42be58745b2b0a19f6d59ca6238d1dfc96a07b

  • OS: Win10 x64

  • neovim/Vim version: VIM - Vi IMproved 8.1 (2018 May 18, compiled Oct 29 2019 23:02:14)

  • :checkhealth or :CheckHealth result(neovim only):

Provide a minimal init.vim/vimrc with less than 50 lines (Required!)

let g:python3_host_prog = '~\AppData\Local\Programs\Python\Python38\python.exe'

call plug#begin('~/.vim-plug')
	Plug 'Shougo/defx.nvim'
	Plug 'roxma/nvim-yarp'
	Plug 'roxma/vim-hug-neovim-rpc'
call plug#end()

The reproduce ways from neovim/Vim starting (Required!)

  1. Start Vim8
  2. Run :Defx
  3. Get error

Screen shot (if possible)

image

Upload the log file

vimLog.txt

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Shougocommented, Nov 6, 2019

OK. The problem is fixed.

1reaction
EtiamNullamcommented, Nov 6, 2019

You’re right, thanks for clarification. I’ve misinterpreted +python3/dyn assumed it was as good as +python3.

I guess I was fooled a bit by this (https://github.com/roxma/nvim-yarp#requirements):

g:python3_host_prog pointed to your python3 executable [...]

When it seems like g:python3_host_prog is mainly used in nvim. On Vim8 I had to use these two:

set pythonthreehome=~\AppData\Local\Programs\Python\Python38
set pythonthreedll=~\AppData\Local\Programs\Python\Python38\python38.dll

Actually I still had to set g:python3_host_prog for https://github.com/roxma/nvim-yarp.

I’ve ran into two minor issues after that, but that’s my final, working, minimal rc (Vim8):

set encoding=utf-8

let g:python3_host_prog = expand('~\AppData\Local\Programs\Python\Python38\python.exe')

set pythonthreehome=~\AppData\Local\Programs\Python\Python38
set pythonthreedll=~\AppData\Local\Programs\Python\Python38\python38.dll

call plug#begin('~/.vim-plug')
	Plug 'Shougo/defx.nvim'
	Plug 'roxma/nvim-yarp'
	Plug 'roxma/vim-hug-neovim-rpc'
call plug#end()

image

Sorry for taking your time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Error '[defx] defx requires Python3 support("+ ...
Error '[defx] defx requires Python3 support("+python3")' on Windows10, Vim8.
Read more >
Deoplete requires Python3 support error : r/neovim - Reddit
First, set g:python3_host_prog to point to the location of your python 3 executable. Second, update or install pynvim package for that python3 distribution...
Read more >
python - Support doesn't work - Stack Overflow
On nvim-startup I get the message UltiSnips requires py >= 2.7 or py3 and for deoplete It requires Neovim with Python 3 support...
Read more >
Installing vim8.2 with python3.8 : Python.h not found
This directory is not in the search path for include files. So it has to be added manually. export CFLAGS="-I$LOCAL_INSTALL/include/python3.8" .
Read more >
How do I install vim on OSX with Python 3 support? - Super User
In the google searches I've done, the command I should be using is brew install vim --with-python3 , which succeeds without error, but...
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