forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed as not planned
Closed as not planned
Copy link
Labels
area-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environmentsinfo-neededIssue requires more information from posterIssue requires more information from postertriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
Description
VS Code Version: 1.91.1
Local OS Version: Windows_NT x64 10.0.22631
Remote OS Version: SUSE Linux Enterprise Server (SLES) , version 15-SP3
I develop on a remote server using the VSCode extension:
Remote Development v0.25.0
Python extension: v2024.10.0
Python Debugger extension: v2024.8.0
I cannot run or debug python files. Keep getting the error:
"An Invalid Python interpreter is selected, please try changing it to enable features such as IntelliSense, linting, and debugging. See output for more details regarding why the interpreter is invalid."
Steps to Reproduce:
- export PATH=/python/Python-3.11.9.build/bin:$PATH
- create and activate a venv
- my settings.json in the .vscode dir in the repo: {"python.defaultInterpreterPath": "/bin/python",}
- try to run a python file in the repo using F5 or the 'Run Python File' button
- Error: "An Invalid Python interpreter is selected, please try changing it to enable features such as IntelliSense, linting, and debugging. See output for more details regarding why the interpreter is invalid."
After selecting the path to my venv in the UI, the same outcome repeats over and over
- My venv is fully functional: I can run python files in terminal but not in the UI
- My VSCode installation and the Remote Development extension work without any problems on other remote machines
- I have tried reinstalling Python and Python Debugger extensions, which didn't change anything (on other machines they work without problems, same extension versions but different OS versions)
- I have tried re-creating my venv, with the same outcome
Metadata
Metadata
Assignees
Labels
area-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environmentsinfo-neededIssue requires more information from posterIssue requires more information from postertriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team