os.popen() failing under ipython+cygwin, I'm stumped.

Miki Tebeka miki.tebeka at zoran.com
Mon Mar 8 11:56:49 EST 2004


Hello Fernando,

> We've narrowed it down to the following.  Under ipython, here is what he gets
> with a popen() call:
> 
> ,---
> | Python 2.3.3 (#1, Dec 30 2003, 08:29:25) 
> | Type "copyright", "credits" or "license" for more information.
> | 
> | IPython 0.5.0 -- An enhanced Interactive Python.
> | ?       -> Introduction to IPython's features.
> | @magic  -> Information about IPython's 'magic' @ functions.
> | help    -> Python's own help system.
> | object? -> Details about 'object'. ?object also works, ?? prints more.
> | 1% import os
> | 2% xmode Verbose
> | Exception reporting mode: Verbose
> | 3% pipe=os.popen('less','w')
> |      10 [main] python2.3 2896 sync_with_child: child 3032(0x6D4) died before
> initialization with status code 0x1
> |    9375 [main] python2.3 2896 sync_with_child: *** child state child loading
> dlls
> | ---------------------------------------------------------------------------
> | OSError                                   Traceback (most recent call last)
> | 
> | /home/thorsten/<console> 
> | 
> | OSError: [Errno 11] Resource temporarily unavailable
> 

I've installed IPython 0.5.0 with `python setup.py install'
then:
---
[18:46] $ipython
Python 2.3.3 (#1, Dec 22 2003, 11:56:28)
Type "copyright", "credits" or "license" for more information.

IPython 0.5.0 -- An enhanced Interactive Python.
?       -> Introduction to IPython's features.
@magic  -> Information about IPython's 'magic' @ functions.
help    -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.

In [1]: import os

In [2]: xmode verbose
Exception reporting mode: Verbose

In [3]:
---

Maybe upgrade your cygwin? My dll version is 1.5.7-1
(run `cygcheck -s | egrep "^cygwin"' to find your version)

HTH.
Miki



More information about the Python-list mailing list