vbe0201 / 3DS.py

Python on your Nintendo 3DS
Apache License 2.0
134 stars 7 forks source link

Fatal Python error: Py_Initialize: Unable to get the locale encoding #2

Closed vbe0201 closed 5 years ago

vbe0201 commented 5 years ago

Copying text from inside an emulator is hard, so here's a screenshot. image

Here are the logs Citra provides.

From what I can tell, this line is most likely returning NULL which causes the interpreter to output the Unable to get the locale encoding error. Hence there's an issue with importing the encodings module. It is either just me being dumb and placing the libraries at a wrong location or some filesystem functions might be failing.

OSError: [Error 108] Socket operation on non-socket is a strange one. I have to investigate into this one as I'm not sure what's exactly causing it.

As encodings is the first non-builtin module that gets imported, this might also affect any other modules so just stubbing this out or hacking some solution isn't an option.

vbe0201 commented 5 years ago

This has been resolved in one of the most recent commits. The interpreter starts fine now and runs Python scripts without any issues.