-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Crash 'AssignAttr' object has no attribute 'qname'
#5717
Comments
I can reproduce the crash consistently after installing the dependencies with the This is the call being visited that causes this crash: https://github.com/openedx/license-manager/blob/master/license_manager/apps/api/tests/test_tasks.py
The specific call being visited is The problem node comes from the
The attribute with no This gets inferred in the context of I don't have the availability to self-assign but if nobody else is taking this on I'll keep plugging away at it. It will probably become an Astroid issue down the road. |
'AssignAttr' object has no attribute 'qname'
(if possible, be more specific about what made pylint crash)'AssignAttr' object has no attribute 'qname'
Thank you so much for picking this up, I'm glad you were able to reproduce the issue! |
Adding Off topic: |
We could advertise the existence of pylint-django and prospector which are two major libs building on top of pylint. (Although it's impossible to automate the label creation, it's set once) |
I meant the issue template which is given to users when pylint crashes 😉 Perhaps we could explore using a regex on the last line of the stacktrace and seeing if it includes |
This PR attempts to fix a root cause of all these issues got merged recently: pylint-dev/pylint-django#350 I'll test shortly if this change closes these issues--I have a bit of confusion around when pylint-django gets used so I want to make sure. If I can get it going, upgrading |
Hey @iloveagent57, Try upgrading your version of I'll close this issue in a few days unless there issue keeps resurfacing on your end. |
Resolved by the merged pylint-django issue: pylint-dev/pylint-django#349 Please open a new issue if this reemerges after upgrading |
@areveny Sorry, I was messing up issues and reports. The comment I referred to in pylint-dev/astroid#1374 (comment) was indeed fixed. However, has the above actually been fixed? This is a |
Ah! I'm actually even more confident about this one.
Furthermore I have been able to reproduce here (turns out I didn't delete my environment yet) and I can comment the new code in and out to reintroduce/fix the crash above. |
Perfect! Thanks for looking into this :) |
Bug description
I've seen this bug at various times over the past year or so, but I can't deterministically re-produce it. The failure this time was when linting the file: https://github.com/openedx/license-manager/blob/aed/fix-lint/license_manager/apps/api/tests/test_tasks.py
Configuration
Command used
Pylint output
Expected behavior
That there is no
AssignAttr
exceptionPylint version
OS / Environment
Running in a Docker container based on
ubuntu:bionic
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
Additional dependencies
amqp==2.6.1
analytics-python==1.4.0
asgiref==3.4.1
astroid==2.9.3
attrs==21.4.0
backoff==1.10.0
billiard==3.6.4.0
boto3==1.20.37
botocore==1.23.37
celery==4.4.7
certifi==2021.10.8
cffi==1.15.0
charset-normalizer==2.0.10
click==7.1.2
click-log==0.3.2
code-annotations==1.2.0
confluent-kafka==1.8.2
coreapi==2.3.3
coreschema==0.0.4
coverage==6.2
cryptography==36.0.1
ddt==1.4.4
defusedxml==0.7.1
diff-cover==4.0.0
Django==3.2.11
django-cors-headers==3.11.0
django-crum==0.7.9
django-debug-toolbar==3.2.4
django-durationwidget==1.0.5
django-dynamic-fixture==3.1.2
django-extensions==3.1.5
django-filter==21.1
django-model-utils==4.2.0
django-ses==2.3.1
django-simple-history==3.0.0
django-waffle==2.3.0
djangorestframework==3.13.1
djangorestframework-csv==2.1.1
drf-jwt==1.19.2
drf-nested-routers==0.93.4
drf-yasg==1.20.0
edx-api-doc-tools==1.5.0
edx-auth-backends==4.0.1
edx-braze-client==0.1.0
edx-celeryutils==1.1.1
edx-django-utils==4.4.1
edx-drf-extensions==8.0.1
edx-i18n-tools==0.8.1
edx-lint==5.2.1
edx-opaque-keys==2.2.2
edx-rbac==1.5.1
edx-rest-api-client==5.4.1
edx-toggles==4.2.0
factory-boy==3.2.1
Faker==11.3.0
fastavro==1.4.9
freezegun==1.1.0
future==0.18.2
gunicorn==20.1.0
idna==3.3
inflect==5.3.0
inflection==0.5.1
iniconfig==1.1.1
isort==5.10.1
itypes==1.2.0
Jinja2==3.0.3
jinja2-pluralize==0.3.0
jmespath==0.10.0
jsonfield==3.1.0
kombu==4.6.11
lazy-object-proxy==1.7.1
MarkupSafe==2.0.1
mccabe==0.6.1
monotonic==1.6
mysqlclient==2.1.0
newrelic==7.2.4.171
oauthlib==3.1.1
packaging==21.3
path==16.3.0
pathlib2==2.3.6
pbr==5.8.0
pep517==0.12.0
pip-tools==6.4.0
platformdirs==2.4.1
pluggy==1.0.0
polib==1.1.1
psutil==5.9.0
py==1.11.0
pycodestyle==2.8.0
pycparser==2.21
pycryptodomex==3.12.0
pydocstyle==6.1.1
Pygments==2.11.2
pyjwkest==1.4.2
PyJWT==2.3.0
pylint==2.12.2
pylint-celery==0.3
pylint-django==2.5.0
pylint-plugin-utils==0.7
pymongo==4.0.1
pyparsing==3.0.6
pytest==6.2.5
pytest-cov==3.0.0
pytest-django==4.5.2
python-dateutil==2.8.2
python-slugify==5.0.2
python3-openid==3.2.0
pytz==2021.3
pywatchman==1.4.1
PyYAML==6.0
redis==3.5.3
requests==2.27.1
requests-oauthlib==1.3.0
ruamel.yaml==0.17.20
ruamel.yaml.clib==0.2.6
rules==3.1
s3transfer==0.5.0
semantic-version==2.8.5
simplejson==3.17.6
six==1.16.0
slumber==0.7.1
snowballstemmer==2.2.0
social-auth-app-django==5.0.0
social-auth-core==4.2.0
sqlparse==0.4.2
stevedore==3.5.0
text-unidecode==1.3
toml==0.10.2
tomli==2.0.0
typing_extensions==4.0.1
unicodecsv==0.14.1
uritemplate==4.1.1
urllib3==1.26.8
vine==1.3.0
wrapt==1.11.2
zipp==3.7.0
The text was updated successfully, but these errors were encountered: