Sublime Forum

Py_Initialize: can't initialize sys standard streams

#1

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)

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?

0 Likes

#2

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?

0 Likes