[New-bugs-announce] [issue20607] multiprocessing cx_Freeze windows GUI bug (& easy fixes)

Mark Summerfield report at bugs.python.org
Wed Feb 12 14:00:07 CET 2014


New submission from Mark Summerfield:

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.

----------
components: Windows
files: multiprocessing.diff
keywords: patch
messages: 211089
nosy: mark
priority: normal
severity: normal
status: open
title: multiprocessing cx_Freeze windows GUI bug (& easy fixes)
versions: Python 3.3
Added file: http://bugs.python.org/file34060/multiprocessing.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20607>
_______________________________________


More information about the New-bugs-announce mailing list