0

I get often error E370: cannot load library python36.dll while using different plugins like: Fugitive.vim. I have Python 3.8 install with proper PATH.

Is it possible to force Gvim to use python38.dll or it should be recompiled with python 3.8? Probably if I install the Python3.6 it will work. Is it necessary to recomile every time there is new version of python?

  • fugitive shouldn't use anything python related. – Maxim Kim Oct 20 '20 at 7:16
  • Precisely it is :Gdiff when error apears – lluke Oct 20 '20 at 7:37
  • I believe if you would have vim without python, fugitive would still work. Try with gvim --clean add fugitive manually and try again. – Maxim Kim Oct 20 '20 at 7:47
  • I have checked fugitive source -- there is nothing there to call python – Maxim Kim Oct 20 '20 at 7:50
  • Thanks for ideas. I have installed Python 3.6 with proper PATH and this problem disapears. Probably there must me some indirect call for python while using :Gdiff. – lluke Oct 20 '20 at 9:07
2

Is it possible to force Gvim to use python38.dll or it should be recompiled with python 3.8? Probably if I install the Python3.6 it will work. Is it necessary to recomile every time there is new version of python?

Yes in order to use python 3.8 vim api, vim has to be built with python 3.8. Which is inconvenient indeed. For windows I usually install official nightly releases (usually they are pretty much stable though). And they use recent python dlls there.

:h python-dynamic

MS-Windows ~

To use the Python interface the Python DLL must be in your search path.  In a
console window type "path" to see what directories are used.  The 'pythondll'
or 'pythonthreedll' option can be also used to specify the Python DLL.

The name of the DLL should match the Python version Vim was compiled with.
Currently the name for Python 2 is "python27.dll", that is for Python 2.7.
That is the default value for 'pythondll'.  For Python 3 it is python36.dll
(Python 3.6).  To know for sure edit "gvim.exe" and search for
"python\d*.dll\c".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.