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 Daniel.Goertzen
Recipients Daniel.Goertzen, amaury.forgeotdarc, belopolsky, flox, grahamd, pitrou, vstinner
Date 2011-04-01.15:01:09
SpamBayes Score 3.867462e-13
Marked as misclassified No
Message-id <1301670070.88.0.284031804334.issue6501@psf.upfronthosting.co.za>
In-reply-to
Content
I run into this problem when I start a Python app as a subprocess from Erlang (open_port() function).  The PYTHONIOENCODING fix works when I launch my py app via pythonw.exe, but it does *not* work when I use the cx-freeze version of the app.

I am using the Win32GUI base for cx-freeze which appears to be a thin WinMain() wrapper around Py_Initialize().  I am going to continue investigating the cx-freeze related problems.

I am using Python 3.2 under Windows.  The failure is basically silent under Windows (generic MSVC runtime error), so I wasted a lot time figuring out what the problem actually was.  Python 2 doesn't seem to have this problem.
History
Date User Action Args
2011-04-01 15:01:11Daniel.Goertzensetrecipients: + Daniel.Goertzen, amaury.forgeotdarc, belopolsky, pitrou, vstinner, grahamd, flox
2011-04-01 15:01:10Daniel.Goertzensetmessageid: <1301670070.88.0.284031804334.issue6501@psf.upfronthosting.co.za>
2011-04-01 15:01:10Daniel.Goertzenlinkissue6501 messages
2011-04-01 15:01:09Daniel.Goertzencreate