You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Updating to snapshot 160 breaks Python support #979
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.
This will be fixed in snapshot 161 which will come out in a day or so. The cause of this was that snapshot-160 turned on hardened runtime for app notarization requirements but it messed with Python and other scripting languages.
For now, Apple allows using much more lenient restrictions so I'm going to work around the issue and get the app notarized, but they are going to tighten up what they allow to be notarized soon (Janurary 2020) so I'll need to find a real solution for this problem.
Reacted by Romain Lafourcade, Peter Onneby, Radoslav Stankov, Ryan Sheatsley and Eir Nym
Activity
eirnym commentedon Oct 30, 2019
@romainl Thank you for an issue,
It's a known problem, #978
RStankov commentedon Oct 30, 2019
Have the same issues. Any workarounds?
romainl commentedon Oct 30, 2019
@RStankov I worked around the issue by rolling back to snapshot 159. I'll wait and see for snapshot 161.
ychin commentedon Oct 30, 2019
This will be fixed in snapshot 161 which will come out in a day or so. The cause of this was that snapshot-160 turned on hardened runtime for app notarization requirements but it messed with Python and other scripting languages.
For now, Apple allows using much more lenient restrictions so I'm going to work around the issue and get the app notarized, but they are going to tighten up what they allow to be notarized soon (Janurary 2020) so I'll need to find a real solution for this problem.
MacVim Snapshot 161
ychin commentedon Oct 30, 2019
Fixed in 161: https://github.com/macvim-dev/macvim/releases/latest