Hi, I encountered SIGTRAP when using Vim after upgrading Python. I use Homebrew on Mac. And the SIGTRAP is caused by Python:
Fatal Python error: Py_Initialize: unable to load the file system codec ModuleNotFoundError: No module named ‘encodings’ Same error is reported very often. Please google "No module named ‘encodings’ vim" For example: https://github.com/macvim-dev/macvim/issues/562 https://github.com/macvim-dev/macvim/issues/554 Since I can reproduce it now, I researched why this happened. https://discourse.brew.sh/t/python2-support-in-macvim-bottle/1823/13?u=methane In short, Vim remembers Python prefix when Vim is built. [1] So when Python is upgraded and prefix is changed, Python can't find real prefix. Python has embedded prefix. It can find real prefix if Py_SetPythonHome() is not called with wrong path. I think the patch [1] totally wrong. I find post by Roland [2]. But he didn't describe what actually happened in his environment. I don't know how he installed Python 3 and build vim. Anyway, would you remove -DPYTHON_HOME and -DPYTHON3_HOME from default CFLAGS? Regards, [1] https://github.com/macvim-dev/macvim/commit/17bcd0255475d0f4db11fbc648184d53a34d5a4d [2] https://groups.google.com/forum/#!topic/vim_dev/sl4-rVXz0VQ -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
