-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module '<namespace package>' has no attribute '<module/pkg in namespace>' #9619
Comments
Interestingly, even though I've started running mypy on all of the projects I maintain, including many importing the |
The I tried using mypy from the latest master branch: there's a different error pointing to the source of the problem:
I traced it back to #9614 (which is related to the issue #6385 you mentioned) It doesn't really solve the original issue though, it reappears when running: |
This is a duplicate of #9393 |
Since my original post, the |
Bug Report
Attempting to run mypy on
jaraco.ui
, I'm getting an error:Here is the pertinent code, namely:
The module
text
is supplied by a separate package jaraco.text. Thejaraco
namespace uses thepkgutil
style namespaces (mostly for historical reasons as the code is Python 3-only now, but could still interact with older builds).This issue is related to #9393, although that issue indicates a different failure mode. Also possibly relevant #6385, #7029.
To Reproduce
Expected Behavior
mypy should recognize working implementations of extant modules and not fail.
Actual Behavior
Error reported above is emitted.
Your Environment
mypy.ini
(and other config files):ignore_missing_imports = True
The text was updated successfully, but these errors were encountered: