os.popen2() test croaks on python 1.5.2, Solaris 2.6

Michael P. Reilly arcege at shore.net
Tue May 11 21:49:23 EDT 1999


Michael Vanier <mvanier at bbb.caltech.edu> wrote:

: Hi,

: I just compiled python 1.5.2 on Solaris 2.6 using gcc (egcs-1.1).  I ran "make
: test" and got this error:

: % python
: Python 1.5.2 (#3, May 11 1999, 13:39:27)  [GCC egcs-2.91.57 19980901 (egcs-1.1 re on sunos5
: Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
:>>> import popen2
:>>> popen2._test()

: testing popen2...
: testing popen3...
: Traceback (innermost last):
:   File "<stdin>", line 1, in ?
:   File "/home/mvanier/local/Solaris/lib/python1.5/popen2.py", line 95, in _test
:     assert not _active
: AssertionError

: I don't actually use the popen2 module, but this looks like a bug.  Weirder
: still, when I ran it from within IDLE it worked! Any ideas?

: Thanks,

It works on mine.  Maybe it's the egcs compiler?

arcege> python
Python 1.5.2 (#6, Apr 20 1999, 10:35:35)  [GCC 2.7.2.2] on sunos5
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import popen2
>>> popen2._test()
testing popen2...
testing popen3...
All OK
>>> import os
>>> os.system('uname -a')
SunOS golem 5.6 Generic_105182-05 i86pc i386 i86pc
0
>>>

Have you tried to trace thru the popen with pdb? (careful of the fork).

  -Arcege





More information about the Python-list mailing list