[New-bugs-announce] [issue5099] subprocess.POpen.__del__() AttribuetError (os module == None!)

Mary Stern report at bugs.python.org
Thu Jan 29 17:00:08 CET 2009

New submission from Mary Stern <marystern at yahoo.com>:

I was getting this error (while running my unit tests):

Exception exceptions.AttributeError: "'NoneType' object has no attribute
'error'" in <bound method Popen.__del__ of <subprocess.Popen object at
0x8a2596c>> ignored

which I tracked down to the os module being set to None (yes really!) in
POpen._internal_poll() when called from Popen.__del__, so this line:

                    except os.error:

was generating the error.

I guess that the module is getting unloaded earlier somehow (maybe a
race condition)?

components: Extension Modules
messages: 80771
nosy: marystern
severity: normal
status: open
title: subprocess.POpen.__del__() AttribuetError (os module == None!)
type: crash
versions: Python 2.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list