[issue40350] modulefinder chokes on numpy - dereferencing None in spec.loader

Cajetan Rodrigues report at bugs.python.org
Tue May 5 04:47:08 EDT 2020


Cajetan Rodrigues <caje731 at gmail.com> added the comment:

Turns out using _PKG_DIRECTORY as a type for namespace packages ended up making `_find_module` try to search for an __init__.py within them, since it had no understanding of the diff. between a namespace package and a regular one (the lack of __init__.py), and caused it to break.

I've raised a PR with a new type _NSP_DIRECTORY for namespace-directories.

----------

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


More information about the Python-bugs-list mailing list