-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Detect homebrew python and fail #32992
Comments
Specifically, the error here (that I'm getting at least) is:
(the major part being I personally have no idea what that error means, but I suspect it's because we're using a compiled plugin for lldb which only works against one version of python (presumably) and that version of python is likely the OSX system python. We should detect this in either or both of the cc @michaelwoerister, lldb weirdness! |
I also tried installing the 'six' module manually, and still was unable to get past the crash with homebrew python. |
We could also adapt |
Yeah that may not be a bad idea to just hardcode that for OSX. #32994 worries me though and indicates that even that may be wrong, although it could also just be a problem with our script. If LLDB has its own Python version then we should probably definitely be using that! |
|
LLDB does not appear to come with a Python distribution, and explicitly depends on ‘Python 3.5’. I assume they simply depend on the latest minor version of CPython 3.x. Given the proliferation of Python code in the Rust code base, perhaps shipping a minimal Python distribution with a known version that works well across all Python code may cause the least headache. You can set |
I'm pretty sure the trouble I was hitting with homebrew was with the 2.x python. It was the one installed as 'python' in /usr/local/bin. Likewise, system Python is 2.7.10 for OS X 10.11.4. I haven't see it use 3.x, yet, though maybe I'm looking in the wrong place? |
I believe we since fixed this by hardcoding that the system python is used for LLDB tests, so I'm gonna close. |
Currently, in OS X, if we find homebrew python we'll use it instead of the system python. Unfortunately, this seems to conflict with the lldb python module.
We don't warn the users that this is the case, and instead happily configure homebrew and promptly crash when the user tries to run any of the debuginfo-lldb tests. We should instead warn the user to not use python from homebrew but instead use the system python.
The text was updated successfully, but these errors were encountered: