You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Py_Initialize: can't initialize sys standard streams #52939
Run Python31\python.exe I got the following error:
---
Fatal Python error: Py_Initialize: can't initialize sys standard streams
Traceback (most recent call last):
File "C:\Python31\lib\encodings\__init__.py", line 98, in search_function
level=0)
File "C:\Python31\lib\encodings\cp720.py", line 50u'\x00'# 0x00 -> CONTROL CHARACTER^SyntaxError: invalid syntax
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
---
5) copied genwincodec.py to Python26
6) Run C:\Python26>python.exe genwincodec.py 720 1>C:\Python31\Lib\encodings\cp720.py I got the following error message:
---
Traceback (most recent call last):
File "genwincodec.py", line 8, in <module>from gencodec import codegen
ImportError: No module named gencodec
What's wrong? that's really exhausted! I didn't face this problem with any programming language before (I'm C++/Qt developer)
loewis commented on May 12, 2010
loewismannequin
Mannequin
More actions
Please trust me that this *is* a duplicate issue.
This bug tracker is not a place to get help; it is a place to report bugs. The bug you are reporting has been reported before. Other duplicate reports are bpo-6995, bpo-7496, bpo-7600, bpo-8120.
Activity
mbnoimi commentedon May 12, 2010
After installing python-3.1.2.msi I'm not able to run to python.exe at all because it gives me the following error message:
Fatal Python error: Py_Initialize: can't initialize sys standard streams
LookupError: unknown encoding: cp720
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
PS
* I'm using WinXp SP3 32Bit
mbnoimi commentedon May 12, 2010
I uninstalled python-2.6.3 before installing python-3.1.2.msi
loewis commentedon May 12, 2010
This is a duplicate of bpo-1616979.
mbnoimi commentedon May 12, 2010
No No, this isn't duplicated issue because if I copied cp720.py to Python31\Lib\encodings
Python still crashed and gives me the following error
----
Fatal Python error: Py_Initialize: can't initialize sys standard streams
TypeError: 'NoneType' object is not callable
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
mbnoimi commentedon May 12, 2010
This is the file I'm adding for removing warning message which is not the reason of crashing
mbnoimi commentedon May 12, 2010
humm I re-read bpo-1616979
I'm confused is it really duplicate issue? if yes I couldn't find the way for fixing in bpo-1616979
PS
I'm newbie in Python and I faced this problem in first day I use Python so please forgive me if my discussion is stupid.
mbnoimi commentedon May 12, 2010
For fixing this issue I tried to following:
---
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
---
5) copied genwincodec.py to Python26
6) Run C:\Python26>python.exe genwincodec.py 720 1>C:\Python31\Lib\encodings\cp720.py I got the following error message:
---
What's wrong? that's really exhausted! I didn't face this problem with any programming language before (I'm C++/Qt developer)
loewis commentedon May 12, 2010
Please trust me that this *is* a duplicate issue.
This bug tracker is not a place to get help; it is a place to report bugs. The bug you are reporting has been reported before. Other duplicate reports are bpo-6995, bpo-7496, bpo-7600, bpo-8120.
If you want help, contact python-list@python.org (aka news:comp.lang.python).
mbnoimi commentedon May 12, 2010
Thanks and I'm very sorry for disturbance I'll try to get help through mailing list you've mentioned
mbnoimi commentedon May 12, 2010
Lie Ryan gave me the solution,
copy http://svn.python.org/view/python/branches/py3k/Lib/encodings/cp720.py?view=markup to Python31\Lib\encodings