[issue16467] frozen importlib required for extending Python interpreter not public
Amaury Forgeot d'Arc
report at bugs.python.org
Tue Nov 13 21:09:05 CET 2012
Amaury Forgeot d'Arc added the comment:
I tried to remove all references to "#include importlib.h" and _Py_M__importlib, and added the lines in _AddBaseModules():
self.AddAlias("_frozen_importlib", "importlib._bootstrap")
self.IncludeModule("_frozen_importlib")
Even if it's not optimal (the content importlib.h is recomputed by cx_Freeze), it's much better... The resulting binary I made fails with:
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'
But it's probably because my Python3 is not "installed" properly.
----------
nosy: +amaury.forgeotdarc
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16467>
_______________________________________
More information about the Python-bugs-list
mailing list