Describe the bug
The Python interface no longer works after updating MacVim from snapshot 159 to snapshot 160.
To Reproduce
Detailed steps to reproduce the behavior:
-
Put the lines below in /tmp/pythontest.vim to tell Vim where to find Python 3.7:
" this is from MacPorts, use a path that works for you
let &pythonthreehome = '/opt/local/Library/Frameworks/Python.framework/Versions/3.7'
let &pythonthreedll = '/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7.dylib'
-
Start the TUI with:
$ mvim -vNu /tmp/pythontest.vim
or the GUI with:
$ mvim -gNu /tmp/pythontest.vim
-
Do :echo has('python3').
-
Get a 0.
-
Do :py3 print(1).
-
Get the following errors:
E370: Could not load library /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7.dylib
E263: Sorry, this command is disabled, the Python library could not be loaded.
Expected behavior
Both commands should echo 1, without throwing errors.
Environment:
- Vim version: 8.1.2224 (160)
- OS: macOS 10.14.6
- Terminal: Terminal.app and the GUI
First reported:
https://www.reddit.com/r/vim/comments/dotqki/macvim_black_and_python_version_problem/
Describe the bug
The Python interface no longer works after updating MacVim from snapshot 159 to snapshot 160.
To Reproduce
Detailed steps to reproduce the behavior:
Put the lines below in
/tmp/pythontest.vimto tell Vim where to find Python 3.7:Start the TUI with:
or the GUI with:
Do
:echo has('python3').Get a
0.Do
:py3 print(1).Get the following errors:
Expected behavior
Both commands should echo
1, without throwing errors.Environment:
First reported:
https://www.reddit.com/r/vim/comments/dotqki/macvim_black_and_python_version_problem/