Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with brewed python #2

Open
keith opened this issue Nov 15, 2020 · 2 comments
Open

Doesn't work with brewed python #2

keith opened this issue Nov 15, 2020 · 2 comments

Comments

@keith
Copy link
Contributor

keith commented Nov 15, 2020

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
@themightyoarfish
Copy link

According to the readme, it needs python 2 :(

@keith
Copy link
Contributor Author

keith commented Mar 19, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants