-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Can not find compiled (pyd) module #8033
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
Comments
Mypy doesn't support any binary/compiled Python formats ( |
OK! I tried
|
The stubgen error is not releated pyd files -- can you create a new issue? |
I'm sorry for disturbing but I can't understand whether
|
Sorry for disturbing. If you are still waiting for an answer to this problem, the short answer I think is yes. But you may need to alter the command a bit. |
Hello,
I have the following directory structure:
|--
my_libs/
|--
qgis/
|--
core/
| |--
__init__.py
|--
_core.pyd
My
mypy_path
is set with a config file to themy_libs
directory.In the
qgis.__init__
module there is afrom qgis._core import *
statement.In my python test code I have:
The mypy output is:
On the first line mypy can't find the module, but on the second line the module is found, it's the attribute which is not found.
Because mypy can't find the
_core
module, it can't find theQgsAction
attribute in thecore
module because the latter imports_core
.If mypy was able to find
qgis._core
there would be no error.I don't understand why mypy can find
qgis
module whereas_core
is not found, since they are in the same source folder.Thanks !
The text was updated successfully, but these errors were encountered: