-
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
Error: spawn $ {workspaceFolder}\.env\Scripts\python.exe ENOENT #853
Comments
I tried renaming the virtualenv directory (.env) to .virtualenv but got the same error. Steps to rename virtualenv:
|
launch.json file: {
"version": "0.2.0",
"configurations": [
{
"name": "Python",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"pythonPath": "${config:python.pythonPath}",
"program": "${file}",
"cwd": "${workspaceFolder}",
"env": {},
"envFile": "${workspaceFolder}/.env",
"debugOptions": [
"RedirectOutput"
]
},
{
"name": "Python: Terminal (integrated)",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"pythonPath": "${config:python.pythonPath}",
"program": "${file}",
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"env": {},
"envFile": "${workspaceFolder}/.env",
"debugOptions": []
}
]
} settings.json file: {
"python.pythonPath": "${workspaceFolder}\\.virtualenv\\Scripts\\python.exe"
} |
Duplicate of #691 The fix will be in the next release (end of this month). Until then please use the Insiders build of this extension as it contains the fix (Note: I'm not referring to VS Code Insiders). The instructions to download and install this insiders build of the extension can be found here, under Insiders Buid |
@DonJayamanne the odd thing is happening on linux Fedora 27 xfce, fresh virtual machine. I am using insiders build that is reporting version 2018.2.0-beta and VSCode 1.20.1 . |
@hash
|
Ok, I am now able to reproduce the error when I try to debug just after VSCode starts, but not after some seconds pass. |
I'm still getting this error even after disabling all extensions (except this one of course). Yes "I've tried turning it off and on again" (somethings never change with M$ products :D)
using |
@awhillas |
@DonJayamanne yes, no dice :( |
Please create another issue if you are still experiencing this issue, This has been closed. |
Environment data
VS Code version: 1.20.1
Python Extension version: 2018.1
Python Version: 3.6.3
OS and version: Windows 7 Enterprise
Actual behavior
After starting debugging (using default Python configuration template), I get this error:
Error: spawn $ {workspaceFolder}\.env\Scripts\ python.exe ENOENT
Failed to launch the Python Process, please validate the path $ {workspaceFolder}\.env\Scripts\python.exe
After starting debugging, but using "Python: Terminal (integrated)" configuration template, I get the error below and the debug feature stops working (it's not possible to debug again unless restart VSCode):
This issue occurs after VSCode's upgrade to 1.20.x version.
ps .: ".env" is my virtualenv directory.
Expected behavior
debugging normally
Steps to reproduce:
The text was updated successfully, but these errors were encountered: