-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
False positive no-name-in-module
when importing from from ccxt.base.errors
even when using the ignored-modules
option
#8148
Comments
Could you upgrade to at least 2.15.10 (better yet 2.16.0b1) and confirm the issue still exists, please ? |
Tried with
and also with pylint 2.16.0b1 and I still get the same issue. |
no-name-in-module
no-name-in-module
when importing from from ccxt.base.errors
Thank you ! I can reproduce, and |
no-name-in-module
when importing from from ccxt.base.errors
no-name-in-module
when importing from from ccxt.base.errors
even when using the ignored-modules
option
@Pierre-Sassoulas is the fix here:
|
Yes, I think 2/ is the one to prioritize as it's going to be useful for everyone and not just ccxt users. But if we manage find the root cause of 1/ it's going to be generic too. |
There is a non-ccxt root cause. This issue can be reproduced with the following dir structure:
pkg_mod_imports/init.py should have :
and pkg_mod_imports/base/errors.py
in a test.py module add
And then running
It's coming from the fact that |
Bug description
Simply importing exceptions from the
ccxt
library is giving this error. Here's an example of how we import them:Pycharm can find the exception classes just fine. I know they exist. It could have something to do with how the library is using
__all__
, but I don't know too much about how that works to draw that conclusion.Also, note that we're using version 1.95.1 of
ccxt
. We use it in some critical paths, so we can't update it to the latest version quite yet.The configuration written below is what I've tried, but it seems based on googling that that doesn't stop all errors from being ignored regarding those modules. So I'm still getting the issue.
Configuration
Command used
Pylint output
Expected behavior
No error to be reported
Pylint version
OS / Environment
Intel based 2019 Mac Book Pro. Mac OS 13.1 (Ventura). Fish shell.
Additional dependencies
ccxt==1.95.1
The text was updated successfully, but these errors were encountered: