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 jaystrict
Recipients jaystrict, r.david.murray
Date 2015-10-26.18:43:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445885032.61.0.0368966544091.issue25481@psf.upfronthosting.co.za>
In-reply-to
Content
Narrowing it down further:

In $PATH there is a subdirectory of /home/user1.
PATH="/home/user1/bin:/usr/local/sbin:/usr/local/bin:/usr/bin"

Doing an strace on the example above shows the line
stat("/home/user1/bin/python", 0x7fff9d365bb0) = -1 EACCES (Permission denied)
AFAICT this line is generated when the shell looks for the correct python executable, but it should not interfere with the (later) call to subprocess.check_output().

If I delete "/home/user1/bin" from $PATH, then the correct FileNotFoundError is thrown.

So it seems (just guessing) that subprocess.check_output() somehow throws the older, obsolete error code. Would this be possible?
History
Date User Action Args
2015-10-26 18:43:52jaystrictsetrecipients: + jaystrict, r.david.murray
2015-10-26 18:43:52jaystrictsetmessageid: <1445885032.61.0.0368966544091.issue25481@psf.upfronthosting.co.za>
2015-10-26 18:43:52jaystrictlinkissue25481 messages
2015-10-26 18:43:52jaystrictcreate