Message153994
| 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:04 | Massimo.Paladin | set | recipients:
+ Massimo.Paladin |
| 2012年02月22日 22:00:04 | Massimo.Paladin | set | messageid: <1329948004.01.0.833709233922.issue14091@psf.upfronthosting.co.za> |
| 2012年02月22日 22:00:03 | Massimo.Paladin | link | issue14091 messages |
| 2012年02月22日 22:00:03 | Massimo.Paladin | create |
|