[issue34057] Py_Initialize aborts when using static Python version. Windows

2018-07-07 Thread Nick Coghlan
Nick Coghlan added the comment: encodings is only the *first* unfrozen Python module that we load - once you get past that, then you'll find that we also load os.py and various other things. cx_freeze is an illustrative example to look at in that regard, as it preconfigures the interpreter

[issue34057] Py_Initialize aborts when using static Python version. Windows

2018-07-07 Thread Nick Coghlan
Change by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34057] Py_Initialize aborts when using static Python version. Windows

2018-07-06 Thread Alberto
Alberto added the comment: Hey Victor, I've spent another number of hours debugging the problem and trying to avoid encodings to be loaded but I've had no luck since initfsencoding is necesary for init_sys_streams to work and that's an important function that sets stdin, stout and sterr.

[issue34057] Py_Initialize aborts when using static Python version. Windows

2018-07-06 Thread Alberto
Alberto added the comment: Hi, First of all thank you for your answer. If every module can't be statically compiled within a library, what is the point of having instructions to compile python statically in the build instructions? Can I modify the code to make it completely statically? Thank

[issue34057] Py_Initialize aborts when using static Python version. Windows

2018-07-06 Thread STINNER Victor
STINNER Victor added the comment: > Why is Python looking for external modules when it is a statically linked > library and encodings should be built-in? Hi, this is not a bug. Python needs its standard library. You might want to put the whole stdlib into a single ZIP, but I don't recall

[issue34057] Py_Initialize aborts when using static Python version. Windows

2018-07-05 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34057] Py_Initialize aborts when using static Python version. Windows

2018-07-05 Thread Alberto
New submission from Alberto : Hi, I've followed the build instructions to get a statically linked Python library in windows. The compilation works great and I get a big fat statically linked .lib file. When I use it and in my code I call Py_Initialize() the program aborts and I get this