ipython -q4thread file.py incompatible wtih subprocess
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
IPython |
Fix Committed
|
Undecided
|
Brian Granger |
Bug Description
When -q4thread is used to launch a script,
subprocess commands fail.
A sample script is joined.
The error output is :
.../bug_ipython.py in <module>()
1 import sys
2 import subprocess
----> 3 subprocess.
4
5
/usr/lib/
585 (p2cread, p2cwrite,
586 c2pread, c2pwrite,
--> 587 errread, errwrite) = self._get_
588
589 self._execute_
/usr/lib/
946 else:
947 # Assuming file-like object
--> 948 c2pwrite = stdout.fileno()
949
950 if stderr is None:
AttributeError: 'cStringIO.StringO' object has no attribute 'fileno'
WARNING: Failure executing file: <bug_ipython.py>
There isn't a bug with gthread, there isn't bug with
ipython -q4thread
In [1]:execfile(
Changed in ipython: | |
milestone: | none → 0.11 |
Issues like this are completely fixed with the new PyOSInputHook based GUI support.