[issue43113] os.posix_spawn errors with wrong information when shebang points to not-existing file
Eric V. Smith
report at bugs.python.org
Wed Feb 10 12:17:26 EST 2021
Eric V. Smith <eric at trueblade.com> added the comment:
I agree with @hroncok, and maybe we could tweak the message to say
FileNotFoundError: [Errno 2] No such file or directory: while executing './demo'. Maybe bad shebang, or missing file?
Or something to that effect. I realize that listing all possible error reasons is a fool's errand, and there are cases where it might make things more confusing.
This reminds me of the old MS-DOS errors like "A duplicate file name exists, or the file cannot be found": as a user, I always wanted to scream "you know which one, tell me!". Sadly, you can't always get the OS to give you the info. Which is also like Windows "can't load DLL" errors: which one?!
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43113>
_______________________________________
More information about the Python-bugs-list
mailing list