Closed
Description
Bug report
If you statically link a namespaced extension (such as numpy.core._multiarray_umath
) and add it to the inittab, it will not get loaded properly. In this case, the path to the extension is passed to the BultinImporter.find_spec
method which causes it to return None
. The path is a pointer to the namespace of the extension.
One possible fix would be to check for a .
in the name of the extension being loaded. If it contains that, consider it to be a fully-qualified import path and check to see if that fully-qualified name is in the builtins list before moving on to other checks.
Your environment
- CPython 3.10 (although I believe it's the same in newer versions)
- Linux x86 and Wasm