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

STINNER Victor report at bugs.python.org
Fri Jul 6 03:27:31 EDT 2018


STINNER Victor <vstinner at redhat.com> 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 how to do that.

The encodings and codecs modules are not built-in, but _codecs is built-in:

>>> import encodings, codecs, _codecs
>>> encodings
<module 'encodings' from '/usr/lib64/python3.6/encodings/__init__.py'>
>>> codecs
<module 'codecs' from '/usr/lib64/python3.6/codecs.py'>
>>> _codecs
<module '_codecs' (built-in)>

I suggest to close this issue as "not a bug". You should ask on a Python mailing list or forum to get help how to build a standalone Python.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34057>
_______________________________________


More information about the Python-bugs-list mailing list