[issue43113] os.posix_spawn errors with wrong information when shebang points to not-existing file

Miro Hrončok report at bugs.python.org
Wed Feb 3 08:52:06 EST 2021


Miro Hrončok <miro at hroncok.cz> added the comment:

That was "ideal" error message. If we don't have all the information, we cannot have the ideal error message. But we need to adapt the default error message to not be misleading. What about:

FileNotFoundError: [Errno 2] No such file or directory: Either './demo' or the interpreter of './demo' not found.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43113>
_______________________________________


More information about the Python-bugs-list mailing list