[issue8693] Py_Initialize: can't initialize sys standard streams

2010-05-12 Thread Muhammad Bashir Al-Noimi

Muhammad Bashir Al-Noimi mbno...@gmx.com added the comment:

For fixing this issue I tried to following:

1) Installed python-2.6.3.msi
2) Downloaded cp720.py, genwincodec.py from 
http://svn.python.org/view?rev=74000view=rev
3) Copied cp720.py it to Python31\Lib\encodings
4) 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 50
u'\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:\Python26python.exe genwincodec.py 720  
1C:\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)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8693
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8693] Py_Initialize: can't initialize sys standard streams

2010-05-12 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

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 
#6995, #7496, #7600, #8120.

If you want help, contact python-l...@python.org (aka news:comp.lang.python).

--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8693
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8693] Py_Initialize: can't initialize sys standard streams

2010-05-12 Thread Muhammad Bashir Al-Noimi

Muhammad Bashir Al-Noimi mbno...@gmx.com added the comment:

Thanks and I'm very sorry for disturbance I'll try to get help through mailing 
list you've mentioned

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8693
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8693] Py_Initialize: can't initialize sys standard streams

2010-05-12 Thread Muhammad Bashir Al-Noimi

Muhammad Bashir Al-Noimi mbno...@gmx.com added the comment:

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

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8693
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8693] Py_Initialize: can't initialize sys standard streams

2010-05-11 Thread Muhammad Bashir Al-Noimi

New submission from Muhammad Bashir Al-Noimi mbno...@gmx.com:

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

--
components: Windows
files: error.log
messages: 105566
nosy: mbnoimi
priority: normal
severity: normal
status: open
title: Py_Initialize: can't initialize sys standard streams
type: crash
versions: Python 3.1
Added file: http://bugs.python.org/file17302/error.log

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8693
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8693] Py_Initialize: can't initialize sys standard streams

2010-05-11 Thread Muhammad Bashir Al-Noimi

Muhammad Bashir Al-Noimi mbno...@gmx.com added the comment:

I uninstalled python-2.6.3 before installing python-3.1.2.msi

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8693
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8693] Py_Initialize: can't initialize sys standard streams

2010-05-11 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

This is a duplicate of issue1616979.

--
nosy: +loewis
resolution:  - duplicate
status: open - closed
superseder:  - cp720 encoding map

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8693
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8693] Py_Initialize: can't initialize sys standard streams

2010-05-11 Thread Muhammad Bashir Al-Noimi

Muhammad Bashir Al-Noimi mbno...@gmx.com added the comment:

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.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8693
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8693] Py_Initialize: can't initialize sys standard streams

2010-05-11 Thread Muhammad Bashir Al-Noimi

Changes by Muhammad Bashir Al-Noimi mbno...@gmx.com:


--
status: closed - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8693
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8693] Py_Initialize: can't initialize sys standard streams

2010-05-11 Thread Muhammad Bashir Al-Noimi

Muhammad Bashir Al-Noimi mbno...@gmx.com added the comment:

This is the file I'm adding for removing warning message which is not the 
reason of crashing

--
Added file: http://bugs.python.org/file17303/cp720.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8693
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8693] Py_Initialize: can't initialize sys standard streams

2010-05-11 Thread Muhammad Bashir Al-Noimi

Muhammad Bashir Al-Noimi mbno...@gmx.com added the comment:

humm I re-read issue1616979

I'm confused is it really duplicate issue? if yes I couldn't find the way for 
fixing in issue1616979

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.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8693
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com