[issue13524] critical error with import tempfile

Tim Golden report at bugs.python.org
Sat Dec 3 13:30:06 CET 2011

Tim Golden <mail at timgolden.me.uk> added the comment:

The environment passed to a Windows process must contain
certain things. (I don't at this moment remember exactly
what). You can't just pass the one thing you're adding.
Change your "e = ..." line to something like:

e = os.environ
e['PATH_TO_MY_CODE'] = '/x/y/z'

and then try the code.

Obviously the subprocess module doesn't have enough
checks in place for this -- it actually segfaults on my
WinXP machine. But can you confirm that this is indeed
your issue?

nosy: +tim.golden

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list