stderr missing in IPython + Emacs + WinXP

Bug #237204 reported by Jie Tang
6
Affects Status Importance Assigned to Milestone
IPython
Confirmed
Low
Unassigned

Bug Description

WinXP Pro SP2
Emacs 22.1
ipython.el
python-mode.el

stderr doesn't show up when using IPython with ipython.el inside Emacs.

e.g.:

In [2]: from sys import stderr,stdout

In [3]: stdout.write('\nfoo\n')

foo

In [4]: stderr.write('\nbar\n')

In [5]:

It seems like sys.stderr has some buffering issues; if I flush the stream using stderr.flush() after writing to it the text displays.

In [6]: stderr.flush()

bar

In [7]:

As a workaround I added calls to

Term.cout.flush()
Term.cerr.flush()

right before IPython's "In[]" input prompt is displayed (around line 1675 in iplib.py)

Revision history for this message
Joe Covalesky (joe-nowsol) wrote :

This workaround didn't fix this problem for me.

WinXP Pro SP2
Emacs 22.1.1
ipython.el 2927
python-mode.el 4.75
pyreadline 1.3 or trunk (post-1.5)

Revision history for this message
Brian Granger (ellisonbg) wrote :

Any thoughts on this from Windows/Emacs users?

Changed in ipython:
importance: Undecided → Low
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.