Author rubys
Recipients
Date 2007-04-21.10:41:53
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
module.py:

om subprocess import Popen, PIPE
pid = Popen(['whoami'],stdout=PIPE,stderr=PIPE)
print pid.communicate()

main.py:

import module

Running module.py directly produces the desired result.  Running main.py, however, produces the following on Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:00:25), i.e., the version of Python that is included in Ubuntu Feisty Fawn:

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

The same script works in Python 2.4.
History
Date User Action Args
2007-08-23 14:53:15adminlinkissue1704790 messages
2007-08-23 14:53:15admincreate