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
Versions newer than 2020.1.58038 don't find Python interpreters #11528
Comments
@texasaggie97, thanks for getting in touch with us. The problem is that "Python: Venv Folders" (python.venvFolders) works relative to the home directory, so the setting you have doesn't work and causes problems during Python environment discovery. Instead, you likely want to use the "Python: Venv Path" (python.venvPath) setting. What happens if you use "Python: Venv Path" instead (and leave "Python: Venv Folders" empty)? |
Please provide the content of your "Python" output panel when "Venv Folders" and "Venv Path" are both not set. Also, please provide your workspace settings.json. Thanks! |
So when you select one of those (try your system-installed 3.8) you get a popup saying Python isn't installed? What happens if you completely remove the |
If I completely remove the "python.pythonPath" line, then I get an error about not being about to find flake8 or black. After removing the line, I do see the installed versions of Python. So I tried upgrading to the latest Python extension while the line was removed. I still saw the installed Pythons. I added the I then added back "Python: Venv Path" and I saw all the installed Pythons as well as the other venv's in that folder. At this point I tried downgrading back to the version that I was using, I continued to see all Pythons listed. I then upgraded to the latest, and still saw all versions. Based on all this, it looks like to me maybe some sort of settings upgrade issue? I don't know the settings system well enough to even guess what it could be since it is just json. Feel free to close this now that it is working if that is your preference. Also, I was not able to reproduce the "Need to install Python" dialog. |
Yeah, I expect something was wrong in the cache of interpreter information that the extension keeps. I'm glad it's working now for you. If you see any other problems please let us know. |
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version #3977): uncheckedpython.languageServer
setting: Not foundExpected behaviour
Python interpreters found automatically and listed in select python interpreter
Actual behaviour
When using any version of the extension later than 2020.1.58038 (I.e. this is the last one that works) no interpreters are found.
I have added
C:\Users\marke\AppData\Local\pypoetry\Cache\virtualenvs
to the Python: Venv Folders settingPython 2.7, 3.6, 3.7 & 3.8 installed from python.org. All are x64 except 3.6 which is both x64 & x86. All are installed to c:\PythonXX[-32]
I hadn't had to change my Python environment in a while and when I tried to today, it couldn't find any of them. Even if I typed in an explicit path, it would not register the interpreter and would show me the dialog saying I needed to install Python from python.org.
Even using 2020.1.58038, Only the 64 bit versions of python 3.X are found and one virtual environment in the added path (there are three there).
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)The text was updated successfully, but these errors were encountered: