Fatal Python error: Py_Initialize: can't initialize sys standard streams

Terry Reedy tjreedy at udel.edu
Sat Jun 15 23:09:41 EDT 2013


On 6/15/2013 8:03 PM, MRAB wrote:
> On 15/06/2013 23:10, alex23 wrote:
\__init__.py", line 123
>>> raise CodecRegistryError,\
>>> ^
>>> SyntaxError: invalid syntax
>>
> To me that traceback looks like it's Python 3 trying to run code written
> for Python 2.

If that is the case, the ^ should be under the ',' (and perhaps it once 
was ;-). If really at the beginning of the line, then the error must be 
on the previous line. Even then, the examples I have tried point to the 
'e' or 'raise'. Take a look in the file.

-- 
Terry Jan Reedy




More information about the Python-list mailing list