IOError: (0,"Error") when closing "os.popen"ed file?
Rob W. W. Hooft
rob at hooft.net
Mon Jan 31 10:52:16 EST 2000
More information about the Python-list mailing list
Mon Jan 31 10:52:16 EST 2000
- Previous message (by thread): IOError: (0,"Error") when closing "os.popen"ed file?
- Next message (by thread): IOError: (0,"Error") when closing "os.popen"ed file?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>>>>> "AE" == Adrian Eyre <a.eyre at optichrome.com> writes: >> But maybe I should repeat the flush() until it succeeds, and only >> then close() the file. Since I wrote my first message I have >> already found occasions where even the sleep(0.1) doesn't solve >> the problem. Bad. I really hope I can properly fix this. AE> TBH it sounds more like a bug in one of the following: AE> Python, Standard C libraries, OS AE> I suspect one of the latter two. AE> Are you not able to trace where/why this odd error occurs? 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.... Rob -- ===== rob at hooft.net http://www.xs4all.nl/~hooft/rob/ ===== ===== R&D, Nonius BV, Delft http://www.nonius.nl/ ===== ===== PGPid 0xFA19277D ========================== Use Linux! =========
- Previous message (by thread): IOError: (0,"Error") when closing "os.popen"ed file?
- Next message (by thread): IOError: (0,"Error") when closing "os.popen"ed file?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list