vim-lldb icon indicating copy to clipboard operation
vim-lldb copied to clipboard

Doesn't work with brewed python

Open keith opened this issue 5 years ago • 2 comments

If vim / neovim is installed via brew, it uses python installed from brew, which fails to import lldb from Xcode 12. Example failure:

% /usr/local/Cellar/[email protected]/3.8.5/bin/python3
Python 3.8.5 (default, Aug 31 2020, 13:38:53)
[Clang 11.0.3 (clang-1103.0.32.62)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import lldb
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'lldb'
>>> import sys
>>> sys.path.append("/Applications/Xcode-12.0.0-GM2.app/Contents/SharedFrameworks/LLDB.framework/Resourc
es/Python3")
>>> import lldb
Fatal Python error: _PyInterpreterState_Get(): no current thread state
Python runtime state: unknown

zsh: abort      /usr/local/Cellar/[email protected]/3.8.5/bin/python3

keith avatar Nov 15 '20 04:11 keith

According to the readme, it needs python 2 :(

themightyoarfish avatar May 27 '21 02:05 themightyoarfish

It turns out the issue is lldb's macOS python support in general only supports the version shipped with Xcode https://lldb.llvm.org/resources/caveats.html#lldb-in-xcode-on-macos (or maybe at least only the version lldb was used to build with)

keith avatar Mar 19 '22 22:03 keith