-
Notifications
You must be signed in to change notification settings - Fork 55
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
After the system python version update to 3.9, I get "No valid Python interpreter found" [PANTS 1.30. IDEA 2020.2/2020.3] #616
Comments
I created a minimal repo to illustrate the issue: https://github.com/slvrtrn/pants-python-3.9-issue and the log says
in the actual terminal, everything works fine
|
So, this seems to be a duplicate of #505 If I run the IDEA like this % ~/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/202.8194.7/bin/idea.sh & and NOT from the Toolbox, the correct version (3.8.6 in my case) is picked up by IDEA If I run it from Toolbox, the default Python version is used (3.9.1) despite me having |
Started to have this issue after Ubuntu 20.04 -> 21.04 upgrade.
Verified in IDEA 2020.2 with the stable plugin and with 2020.3 bleeding-edge version (released on 24th of March 2021, Pants Support 1.17.0.7c71f505173a6499b6e0c91651e10ed03c6d2ff0)
PANTS work fine from the console (I am able to bootstrap the project and run the app or the tests), but it is not possible to refresh (or import) the project in IDEA.
I am using pyenv for the 3.8.6 setup. The actual package python3.8 is removed from Ubuntu 21.04 and replaced with python3.9 by default.
I also have
.python-version
file in the project rootif I run just
python
from the console in the project root, it starts the correct interpreterthat's also true for IDEA terminal - it runs 3.8.6. But PANTS plugin complains about the python version.
However,
The text was updated successfully, but these errors were encountered: