IOError: (0,"Error") when closing "os.popen"ed file?

Adrian Eyre a.eyre at optichrome.com
Mon Jan 31 11:05:37 EST 2000


> I could try to upgrade this machine (it appears to be a RH6.0 and not
> 6.1 as I thought earlier). But if that doesn't fix it, how would I go
> about tracing the problem? Do I have to edit "printf's" into the
> python source? I'm running quite a large package (controlling a data
> acquisition robot, 45.1k lines of Python) to produce this problem, and
> the occurrence seems to be timing-dependent.  Horrible debugging
> scenarios doom in front of me....

I'd start off by taking Python out of the equation, and writing a mini
app which uses the standard posix popen function. See if you can
duplicate the problem. Read Python-1.5.2/modules/posixmodule.c for the
gory details.

--------------------------------------------
Adrian Eyre <a.eyre at optichrome.com>
http://www.optichrome.com 





More information about the Python-list mailing list