I can not import any of the base modules in the lib-dynload directory. They are all there, but I get an error: "ImportError: No module named X"when I try to import them.
"ImportError: No module named X"
I checked my own sys.pathand included in it the directory where all these modules are located, and my PYTHONHOME environment variable is set correctly. I am losing a bit, which can be a problem. Some background information. This is a cross-compilation from a Python 2.6.6 source and installation on a built-in ARM board with Angstrom support.
sys.path
It used to have python, I tried to bake it in the image, but it lacked a lot of material. In the end, I did my best to clear the directory tree from the previous python before loading it onto my crossed compiled version.
A straightforward simple script that just tries to import math: http://pastebin.com/3XgJ3nPR
math
I do not see checks in this trace for file names, such as math.soor mathmodule.so, which may indicate that modules with shared objects are completely disabled - that the version of Python you compiled cannot dynamically load binary modules.
math.so
mathmodule.so
: config.out Python, , Python , , .so:
config.out
.so
checking for dlopen... yes checking DYNLOADFILE... dynload_shlib.o checking MACHDEP_OBJS... MACHDEP_OBJS
-?
Python 2.7.13, , , Python 3, 2. (setup.py) , (sys.builtin_module_names); setup.py ( Makefile) python2.7, (Ubuntu), , , , python ( ), , , .
sys.builtin_module_names
python2.7
( python2.7 → python). , python x86 x64; , ARM, , , -.