This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author izbyshev
Recipients eric.smith, gregory.p.smith, hroncok, izbyshev, nanjekyejoannah, pablogsal, torsava, vstinner
Date 2021-02-10.15:28:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1612970917.57.0.515289995356.issue43113@roundup.psfhosted.org>
In-reply-to
Content
How do you propose to approach documentation of such behavior? The underlying cause is the ambiguity of ENOENT error code from execve() returned by the kernel, so it applies to all places where Python can call execve(), including os.posixspawn(), os.execve() and subprocess, so it's not clear to me where such documentation should be placed. And, of course, this behavior is not specific to CPython.

The Linux man pages mention various causes of this error[1], though POSIX doesn't[2].

While ENOENT ambiguity is indeed confusing, one of the top results of my DDG search on "linux no such file or directory but script exists" is this link[3].

[1] https://man7.org/linux/man-pages/man2/execve.2.html
[2] https://pubs.opengroup.org/onlinepubs/9699919799/functions/execve.html
[3] https://stackoverflow.com/questions/3949161/no-such-file-or-directory-but-it-exists
History
Date User Action Args
2021-02-10 15:28:37izbyshevsetrecipients: + izbyshev, gregory.p.smith, vstinner, eric.smith, torsava, hroncok, pablogsal, nanjekyejoannah
2021-02-10 15:28:37izbyshevsetmessageid: <1612970917.57.0.515289995356.issue43113@roundup.psfhosted.org>
2021-02-10 15:28:37izbyshevlinkissue43113 messages
2021-02-10 15:28:37izbyshevcreate