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 christian.heimes
Recipients amaury.forgeotdarc, benjamin.peterson, christian.heimes, djc, grahamd, loewis
Date 2008-10-26.22:58:38
SpamBayes Score 9.76599e-10
Marked as misclassified No
Message-id <>
The patch "subinterpreter.patch" is based on Martin's patch
"importexc.diff". The patch contains additional code to setup a
preliminary stderr object and a call to initstdio(). Amaury is right. I
had to add initstdio() to initialize the standard streams. But I can't
get it to work.

$ rm -f Demo/embed/importexc.o; cd Demo/embed; make; ./importexc; cd ../..
gcc -g -I../../Include -I../..  -c -o importexc.o importexc.c
gcc -Xlinker -export-dynamic importexc.o ../../libpython3.0.a  -lnsl
-ldl -lreadline -ltermcap -lieee -lpthread -lutil -lm -o importexc
Initialize interpreter
<module 'types' from '/usr/local/lib/python3.0/'>

Initialize subinterpreter
Fatal Python error: Py_Initialize: can't initialize sys standard streams
Traceback (most recent call last):
  File "/usr/local/lib/python3.0/encodings/", line 32, in
ValueError: Cannot encode path item
Date User Action Args
2008-10-26 22:58:42christian.heimessetrecipients: + christian.heimes, loewis, amaury.forgeotdarc, benjamin.peterson, djc, grahamd
2008-10-26 22:58:42christian.heimessetmessageid: <>
2008-10-26 22:58:41christian.heimeslinkissue3723 messages
2008-10-26 22:58:40christian.heimescreate