-
Notifications
You must be signed in to change notification settings - Fork 117
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
Error when using Astroid 2.1.0 #201
Comments
This was in the compatability layer here for a while, might be worth revisiting the decision to remove it @atodorov ? Thanks for the report and PR @clintonb ! I will merge this for now but since every CI setup has different dependency settings I think we might need to, in the long term, have more of those compat fudges. |
@carlio I think when I deleted the compatibility layer I replaced the imports with their to-be-deprecated counter parts instead of the new ones. Not sure if we want this compatibility layer back or not. Also in the referenced PR I see a failure in Travis, maybe caused by other changes in pylint itself. Will look at them tomorrow. |
Just so it's very explicitly placed here, you can fix this by setting |
Pinning astroid==2.0.4 and pylint==2.1.1 should fix this. @atodorov The PR is failing as the new pylint API seems to have removed a visit that pylint-django augments : pylint-dev/pylint@41d47dd#diff-58c6e1eef6e54ed1b2900be32164f516L77 I will put the compat layer back as there are too many combinations of dependencies of pylint-django dependencies and build system configurations to be too rigid with how pylint-django works. I know it's a bit ugly but it prevents builds from breaking for people often and gives us time to do a new release without always having bug reports from disgruntled users! |
Just uploaded 2.0.4 which will fix this. |
YES has been replaced with Uninferable. YES has been an alias to Uninferable for some time, and was recently removed. Closes #201
This bugs has been register on Debian Sid https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=917717 |
Sorry for that I'm late on the release process of the Debian package. I'll update it today to latest version that already fixes this without pinning the astroid version. |
I get the following error when running
pylint
for a fresh install:The offending code is at
https://github.com/PyCQA/pylint-django/blob/2ef61325fa2f0ca291099a599c197f79f01c5bb1/pylint_django/utils.py#L4
Astroid 2.1.0 was released a couple hours ago.
Given this project's dependency on Astroid, should it be listed in
setup.py
? That dependency needs to be limited to 2.0.4 for the time being.The text was updated successfully, but these errors were encountered: