-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Can't select interpreter if the Windows Registry can't be accessed #12962
Comments
Hello @Chris-May, thank you for reaching out. Could you copy the output from the developer tools (command palette > When you open the command palette and select The extension needs access to your Windows registry to look for interpreters, is Thanks! |
Hey, @kimadeline !!! Thanks for helping me figure out what's going on... The error pops up right away. I don't see any option to follow up. H.... It appears as though regedit is disabled on my machine. :\ I have tried to set the interpreter in the workspace settings. It seems as though that doesn't make a difference, since I'd be happy to do that as an alternative. Here is the error message from the console:
|
What do you mean when you said you tried to set the interpreter in the workspace settings? How is your project/folder structured? |
My projects are generally like this:
except for when I am creating Azure Functions, then I omit the I'm sorry, I misspoke... it wasn't in the workspace that I defined the interpreter. It was user settings, under |
What happens if you try setting the interpreter by adding the |
👉 To be considered as part of #12020: We need to have a fallback solution and/or handle it gracefully when we don't have access to the registry. |
Sorry for the silence, @kimadeline. I didn't see the notification for this ticket. I have tried to add these three lines to the
When I saved the file, the python extension created a yellow-colored warning message in the status bar that said "Select Python interpreter". Also, the Azure Function extension asked for me to restart VS Code. Clicking on the "Select Python Interpreter" status created the "spawn EPERM" popup. After restarting, the python extension created a popup that said "No Python interpreter is selected. You need to select a Python interpreter to enable features such as IntelliSense, linting, and debugging." I also have had this in my
|
Since user settings are located with your VS Code installation, it would be better to use an absolute path to a python executable there.
Yep, that's what we need to fix in the extension: Clicking "Select Python Interpreter" triggers interpreter discovery, which needs access to the Windows Registry 🧨 Can you try starting from scratch by creating a new workspace folder + a new virtual environment in it, and set |
Hey, @kimadeline! Thanks again for your help. I followed your directions, and nothing happened. The python extension just shows the |
Hi, I believe I am having the same issue with @Chris-May . First of all, I am using VSCode on my workstation at the company, therefore, I don't have any administrator rights to my computer, including I tried User installation and Portable version of VSCode by following the documentation. but the issue is still happening. I believe since you guys said above about the registry, even if it is portable, it won't have the rights. Since this is a company computer, I don't think I will ever have access to the registry, so my hopes are really with #12020. Steps to Reproduce:Try this on a computer where you are not an administrator.
Logs:The following logs are for VSCode Portable, I can share for VSCode User as well. VSCode About
Notification message.
Developer Tools Console log
|
Thank you for reporting back @Chris-May, and thank you for your report @metinsenturk! We have a two-folded problem here (handling non-access to the registry, and the interpreter not being picked up when |
@Chris-May what happens if you use forward slashes in |
Hey, @kimadeline! I don't notice any difference between the two. I appreciate the thought! |
Hi @kimadeline, I don't know if it helps but when I clone the vscode-python repo and use the extension from debugging, extension works as expected. I only get a warning that extension loaded late. I believe this is because of the debugger.
|
This has been fixed on master branch which is why you didn't see it. The fix will officially go out in the next release, closing this |
Environment data
python.languageServer
setting: JediExpected behaviour
In general, I've not seen IntelliSence pick up anything from my code. It's all standard library suggestions, and I cannot select the interpreter. Every time I do, I get an error (see below). I can't figure out what to do.
Actual behaviour
Steps to reproduce:
Python: Select Interpreter
Logs
Output for
Python
in theOutput
panelThe text was updated successfully, but these errors were encountered: