-
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
spawn /usr/bin/python2 ENOENT when trying to select interpreter #1305
Comments
Can you send us a screenshot of what interpreters are listed by the extension? Since you're on Windows 7 it shouldn't be trying to execute |
Also, please let us know how you have started VS Code? (did you lunch it from the |
@brettcannon I can grab a screenshot in the morning. I have Msys2 installed on the machine and configured such the programs it provides are available on the PATH - I shouldn't think this should affect vscode but it occurred to me to mention it as a possibility. @DonJayamanne I started vscode as I generally do, via the normal Windows Menu icon as provided by vscode's installer |
Also having this problem, I think it might have something to do with the linux subsystem for win10, but I uninstalled it and the problem persisted. |
Closing in favor of #67 |
@DonJayamanne I don't really understand that other thread... is there a way to get the select interpreter functionality back? I didn't have this problem before so i think an update broke it, i'm pretty confused and a quick explanation of why i might be having this problem would be really helpful |
I'm sorry, I thought you were selecting an interpreter from the last (that belonged to wsl)
We didn't make any changes that would code this issue (only added support for pipenv). You can try to install an older version of the extension to confirm this. |
How did you do this? |
You can download an older version from here:
|
whoah, installing the january version of the extension fixed all the problems I was having. To clarify, the sources of my frustration were: The behavior of the default python config seemed different. In the previous version the config was simply labeled "Python". The new version's default was "Python: Current File", with different settings in the JSON. Running python with the config "Python: Current File" seemed to run the file using the terminal specified in the user settings, which in my case was Additionally, in the new version, running the debugger would switch focus to the Terminal window instead of the Debug Console window, and from there I would need to click on the Debug Console. In the old version focus would go directly to the Debug Console. (This one might be intentional I guess, so if there's a setting for that or something let me know). Finally of course the ENOENT issue preventing me from switching my python interpreter is not present in the older version. |
|
Let me know if you need any more information! |
Ill be uploading a screenshot soon, however I quickly wanted to mention that the problem I am seeing has little to do with WSL as I am on Windows 7, not Windows 10. Windows 7 does not have WSL (hence the MSYS bash). |
To add MSYS2 provided programs to the PATH I just added |
@wolf99 @bbukaty @brettcannon
|
Let me know how this goes |
Please uninstall and reinstall the extension. Finally check the error in the |
I'm sorry for not testing the build, looks like we're missing a dependency. I'll get this fixed asap and upload a new build of the extension (#1360) |
@bbukaty |
Yep, that new version works. Regardless, thanks for the quick fix on this issue. |
Yes, please do so. |
Haven't tried it yet but thanks for the quick fixes on this @DonJayamanne (and the testing @bbukaty), much appreciated! |
spawn /usr/bin/python2 ENOENT
Environment data
Actual behavior
Step 3 of the prerequisites states:
The readme also mentions this under optional steps:
However, when attempting to select an interpreter, VsCode reports the error:
Expected behavior
The interpreter is selected (or at least a more helpful error message is displayed)
Steps to reproduce:
Python install path is known by vscode as selecting
Python: Start REPL
, works as expected.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
)The text was updated successfully, but these errors were encountered: