Brewed python3 was updated, now brewed macvim gives the following error:
Fatal Python error: Py_Initialize: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007fff8e4af340 (most recent call first):
Vim: Caught deadly signal ABRT
Vim: Finished.
Other threads have suggested upgrading to the development version of python (but these threads were quite old, so the development version of python that they are referring to is not the same as the current dev version). I tried this (brew upgrade python3 --devel), and it basically broke everything:
dyld: Library not loaded: /usr/local/opt/python/Frameworks/Python.framework/Versions/3.6/Python
vim still works in the terminal, but macvim won't open
Thank you for the issue. Duplicate of https://github.com/macvim-dev/macvim/issues/562. I would recommend looking at the solutions proposed there to see if they resolve your issue.
This is what fixed it for me:
brew unlink macvim
brew install macvim --HEAD
@c0llision That fixed it, thank you:
brew unlink macvim
brew install macvim --HEAD
Most helpful comment
This is what fixed it for me:
brew unlink macvimbrew install macvim --HEAD