-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Unable to import 'distutils.util' #2955
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
Looks like this might be a duplicate of #73... |
If it is, it has been fixed 21 days ago in pylint-dev/astroid#672 and might be available in the next release. |
OK, just checked out the master branch and ran Looks like the reason for the errors is the same as for #73, but it was not fixed by said pull request :( |
I'm having the same issue with |
Thanks for confirming it's not working for you, we'll check why is that. |
I can't reproduce this.
I have no custom config set on pylint and I'm running it on a file containing from distutils.util import strtobool If you look at the fix in pylint-dev/astroid#672, is the condition that was added getting triggered? Are you able to find why not? |
Found it, actually using this unpublished version of astroid containing the fix helps :) |
There are quite a few related issues (e.g. #1691), but none mention this particular issue. Somehow
distutils.util
cannot be processed by pylint.Steps to reproduce
distutils.util
pylint
Current behavior
Pylint produces two errors for the import statement:
Expected behavior
None of the above error messages
pylint --version output
The text was updated successfully, but these errors were encountered: