homepage

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 Massimo.Paladin
Recipients Massimo.Paladin
Date 2012年02月22日.22:00:03
SpamBayes Score 2.6818714e-11
Marked as misclassified No
Message-id <1329948004.01.0.833709233922.issue14091@psf.upfronthosting.co.za>
In-reply-to
Content
Here is the behavior I am getting only on Python 2.7.2 in a Fedora 16:
$ cat /tmp/example.py
from subprocess import Popen,PIPE
args = "whatever program".split()
p = Popen(args)
If I run the program with:
$ cd /tmp/; python example.py
I get following as expected
Traceback (most recent call last):
 File "example.py", line 7, in <module>
 p = Popen(args)
 File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__
 errread, errwrite)
 File "/usr/lib64/python2.7/subprocess.py", line 1228, in _execute_child
 raise child_exception
OSError: [Errno 2] No such file or directory
Instead if I run the program with:
$ cd ~; python /tmp/example.py
It hangs until I stop it with ctrl-c
On the same machine python 3.2.1 works fine.
On a mac with python 2.7.1 works fine.
On a rhel5 with python 2.4 works fine too.
History
Date User Action Args
2012年02月22日 22:00:04Massimo.Paladinsetrecipients: + Massimo.Paladin
2012年02月22日 22:00:04Massimo.Paladinsetmessageid: <1329948004.01.0.833709233922.issue14091@psf.upfronthosting.co.za>
2012年02月22日 22:00:03Massimo.Paladinlinkissue14091 messages
2012年02月22日 22:00:03Massimo.Paladincreate

AltStyle によって変換されたページ (->オリジナル) /