-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
astroid 2.4 / pylint 2.5: astroid error when using PyQt/Qt's QApplication #772
Labels
Comments
The-Compiler
added a commit
to qutebrowser/qutebrowser
that referenced
this issue
Apr 27, 2020
Blacklists pylint/astroid upgrades for now, because of: pylint-dev/astroid#772
PCManticore
added a commit
that referenced
this issue
Apr 28, 2020
…`` attribute PyQT does something special with their objects and retrieving some of them (such as `__all__`) at runtime results in a RuntimeError. This patch simply swallows all the exceptions that accessing `__all__` might raise. Close #772
PCManticore
added a commit
that referenced
this issue
Apr 28, 2020
…`` attribute PyQT does something special with their objects and retrieving some of them (such as `__all__`) at runtime results in a RuntimeError. This patch simply swallows all the exceptions that accessing `__all__` might raise. Close #772
PCManticore
added a commit
that referenced
this issue
Apr 28, 2020
…`` attribute PyQT does something special with their objects and retrieving some of them (such as `__all__`) at runtime results in a RuntimeError. This patch simply swallows all the exceptions that accessing `__all__` might raise. Close #772
Addressed by #776, will release it in the following days along with other urgent patches. |
PCManticore
added a commit
that referenced
this issue
Apr 28, 2020
…`` attribute PyQT does something special with their objects and retrieving some of them (such as `__all__`) at runtime results in a RuntimeError. This patch simply swallows all the exceptions that accessing `__all__` might raise. Close #772
Awesome, thank you! 👍 |
17 tasks
The-Compiler
added a commit
to qutebrowser/qutebrowser
that referenced
this issue
Dec 2, 2021
We pinned pylint to < 2.5 due to this issue: pylint-dev/astroid#772 ...but then for some reaosn never unpinned it after the issue was fixed.
mkonig
pushed a commit
to mkonig/qutebrowser
that referenced
this issue
Dec 7, 2021
We pinned pylint to < 2.5 due to this issue: pylint-dev/astroid#772 ...but then for some reaosn never unpinned it after the issue was fixed.
twigleingrid
pushed a commit
to twigleingrid/qutebrowser
that referenced
this issue
May 13, 2022
We pinned pylint to < 2.5 due to this issue: pylint-dev/astroid#772 ...but then for some reaosn never unpinned it after the issue was fixed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
pip install -U pip
(especially with a virtualenv, so that a manylinux2014 wheel is found for PyQt rather than pip trying to build from sources)pip install pylint PyQt5
pylint --extension-pkg-whitelist=PyQt5 keytester.py
over this file:(a pretty standard PyQt set-up)
Current behavior
Astroid fails with:
That exception is coming from PyQt and usually happens when Qt already deleted an object in C++, but something still holds a Python reference to it. Not sure how that can even happen with a
QApplication
object, though.Expected behavior
pylint works successfully, other than the
missing-module-docstring
andinvalid-name
errors - this was the case with pylint 2.4.4 and astroid 2.3.3.python -c "from astroid import __pkginfo__; print(__pkginfo__.version)"
output2.4.0 (and pylint 2.5.0)
The text was updated successfully, but these errors were encountered: