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 <>
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].

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: <>
2021-02-10 15:28:37izbyshevlinkissue43113 messages
2021-02-10 15:28:37izbyshevcreate