Home Download Buy Blog Forum Support

Py_Initialize: can't initialize sys standard streams

Py_Initialize: can't initialize sys standard streams

Postby odinist743 on Wed Aug 03, 2011 8:42 pm

Okay so, specs first
Sublime Text 1.4 running on Windows 7 Professional x64 with standard Python 2.7 (from the python.org installer) installed at C:\Python27

I'm really just trying to learn python, so I downloaded Dive into Python, did the example code and hit F7 (after setting my build system to the default python system)

Code: Select all
Fatal Python error: Py_Initialize: can't initialize sys standard streams
  File "C:\Python27\lib\encodings\__init__.py", line 123
    raise CodecRegistryError, \
                            ^
SyntaxError: invalid syntax


I'm not sure what this is talking about, but it kind of looks like it thinks there is a syntax error in one of the default python scripts... that comes with python. That doesn't really sound plausible, especially since python works just fine in IDLE and the shell on my computer.

Anyone know why this is happening? Did I forget something simple?
Last edited by odinist743 on Wed Aug 03, 2011 11:24 pm, edited 1 time in total.
odinist743
 
Posts: 2
Joined: Wed Aug 03, 2011 8:25 pm

Re: Python errors and strange messages

Postby odinist743 on Wed Aug 03, 2011 11:16 pm

Interestingly enough, I get the exact same error in Notepad++.
Is there some special way I need to start python to get it to work perhaps?
odinist743
 
Posts: 2
Joined: Wed Aug 03, 2011 8:25 pm


Return to Technical Support

Who is online

Users browsing this forum: Alexa [Bot] and 10 guests