1

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?

5
  • fugitive shouldn't use anything python related.
    – Maxim Kim
    Commented Oct 20, 2020 at 7:16
  • Precisely it is :Gdiff when error apears
    – lluke
    Commented Oct 20, 2020 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
    Commented Oct 20, 2020 at 7:47
  • I have checked fugitive source -- there is nothing there to call python
    – Maxim Kim
    Commented Oct 20, 2020 at 7:50
  • 1
    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
    Commented Oct 20, 2020 at 9:07

1 Answer 1

3

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 and acknowledge you have read our privacy policy.

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