classification
Title: Py_Initialize: Can't initialize system standard streams
Type: crash Stage:
Components: Installation Versions: Python 3.1
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: Hamed.ji, amaury.forgeotdarc
Priority: normal Keywords:

Created on 2010-03-12 08:15 by Hamed.ji, last changed 2010-03-12 10:27 by Hamed.ji. This issue is now closed.

Messages (5)
msg100904 - (view) Author: Hamed J.I (Hamed.ji) Date: 2010-03-12 08:15
While try to run Python.exe version 3.1 or 3.2 RC2 on
Windows 7 or Windows XP SP2 get the following error:

Py_Initialize: Can't initialize system standard streams
Lookup Error: unknown encoding: cp720

after download and install cp720.py to lib/encodings get the following error:

Py_Initialize: Can't initialize system standard streams
TypeError: 'NoneType' object is not callable

this is while IDLE works fine
msg100906 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2010-03-12 08:40
two questions: 
- where did you obtain cp720.py, are you sure it was a python3 version?
- I've never seen a "3.2 RC2" version. Did you mean the py3k branch?
msg100911 - (view) Author: Hamed J.I (Hamed.ji) Date: 2010-03-12 09:23
in fact i'm not sure it is compatible with python 3.1
i have download it from 

http://blog.oneortheother.info/tip/python-fix-cp720-encoding/
msg100918 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2010-03-12 09:53
cp720.py was added a few months ago, and will be available with 3.2.
for the impatient, it's here:
http://svn.python.org/view/python/branches/py3k/Lib/encodings/cp720.py?view=markup
msg100924 - (view) Author: Hamed J.I (Hamed.ji) Date: 2010-03-12 10:27
Thank you very much

Worked well
History
Date User Action Args
2010-03-12 10:27:50Hamed.jisetmessages: + msg100924
2010-03-12 09:53:24amaury.forgeotdarcsetstatus: open -> closed
resolution: out of date
messages: + msg100918
2010-03-12 09:23:33Hamed.jisetmessages: + msg100911
2010-03-12 08:40:47amaury.forgeotdarcsetnosy: + amaury.forgeotdarc
messages: + msg100906
2010-03-12 08:15:34Hamed.jicreate