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
Raise ValueError on no executable and empty args #103233
base: main
Are you sure you want to change the base?
Conversation
Windows throws a cryptic error when trying to create a process with no executable and empty args. Make it obvious with a ValueError.
|
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
|
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
Windows throws a cryptic error when trying to create a process with no executable and empty args. Make it obvious with a ValueError.
|
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
|
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
|
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
|
Thank you for a patch! Could you post your exception message with a stack trace, please? On my Windows 10 Home 22H2, I get WinError 3 (no path found): |
|
In case of Linux, it causes an IndexError at trying to get the executable from the args. |
Windows throws a cryptic
OSError: [WinError 87]when trying to create a process with no executable and empty args, which confused me a lot. Doesn't work on Linux too and contradicts the purpose of Popen (as I understand it), so probably should be disallowed completely.