This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark
Recipients mark
Date 2014-02-12.13:00:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1392210007.55.0.703344543531.issue20607@psf.upfronthosting.co.za>
In-reply-to
Content
I have a Python Windows GUI application (using PySide) that uses multiprocessing.

When I freeze the application I get error messages, in particular that mulitprocessing cannot call flush on a null object.

ISTM That in a Windows GUI application, sys.stdout and sys.stderr may well be None since there is no attached console.

So, I added guards to accesses to sys.stdout and sys.stderr and the problems went away.

I'm not used to creating patch diffs but hopefully the attached (with just a few lines of changes) will be easy to understand.
History
Date User Action Args
2014-02-12 13:00:07marksetrecipients: + mark
2014-02-12 13:00:07marksetmessageid: <1392210007.55.0.703344543531.issue20607@psf.upfronthosting.co.za>
2014-02-12 13:00:07marklinkissue20607 messages
2014-02-12 13:00:07markcreate