Bugs item #1704790, was opened at 2007-04-21 06:41 Message generated for change (Settings changed) made by rubys You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1704790&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.5 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Sam Ruby (rubys) Assigned to: Nobody/Anonymous (nobody) >Summary: Exception message when using subprocess.Popen Initial Comment: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1704790&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com