-
-
Notifications
You must be signed in to change notification settings - Fork 732
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
[Bug] pyenv site_packages_dir assertion fails when setting multiple python versions in pyenv #1048
Comments
The issue isn't even multiple versions of pyenv. The code does |
Yeah that is sloppy version parsing, will have to fix. |
In my opinion this should be done from a separate script that'd be |
It might be a use case we want support, but I don't use it personally (for GDB) and I think it adds a lot of complexity. And I can't even help test it, so I'd rather not worry about it. |
A gef-extras script to do it would be nice! |
GEF+GDB version
Operating System
Ubuntu 23.10
Describe the issue you encountered
When setting multiple global versions by pyenv, gef will throw an AssertionError.
The Pyenv site packages path is set inappropriately, and should not just get the output of
pyenv version-name
as the python version of pyenv. And the python directory name in site_packages is also set inappropriately when python version >= 3.10.There is a possible solution:
Do you read the docs and look at previously closed issues/PRs for similar cases?
Yes
Architecture impacted
Describe your issue. Without a proper reproduction step-by-step, your issue will be ignored.
Set multiple pyenv global versions:
gef script will throw an AssertionError
Minimalist test case
No response
Additional context?
No response
The text was updated successfully, but these errors were encountered: