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 eric.smith
Recipients eric.smith, gregory.p.smith, hroncok, izbyshev, nanjekyejoannah, pablogsal, torsava, vstinner
Date 2021-02-10.17:17:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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?!
Date User Action Args
2021-02-10 17:17:26eric.smithsetrecipients: + eric.smith, gregory.p.smith, vstinner, torsava, izbyshev, hroncok, pablogsal, nanjekyejoannah
2021-02-10 17:17:26eric.smithsetmessageid: <>
2021-02-10 17:17:26eric.smithlinkissue43113 messages
2021-02-10 17:17:26eric.smithcreate