Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
Closed
Description
Bug report
If you statically link a namespaced extension (such asnumpy.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 theBultinImporter.find_spec
method which causes it to returnNone
. 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