-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
'No name 'QtWidgets' in module 'PyQt5' and 'Unable to import 'PyQt5.QtWidgets' errors in vscode #3729
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
I can't reproduce this issue. Are you sure that the message is coming from pylint and not PyLance or some other part of vscode? |
I found the same problem. This problema was solved just with a Virtualenv. |
Had the same problem with |
|
I had this exact issue migrating to PyQt6, except it was manifesting in my linting github workflows. Your solution worked but Installing xorg and it's dependencies slows the workflow down significantly so I investigated and discovered you could run |
Hello I am following the suggestion in the link below, about posting new issues for specifics modules in this case PyQt5
#1524 (comment)
Steps to reproduce
I imported the following classes from PyQt5 in order to build a Message Box:
Also I have the following setting in my settings.json:
Thanks to this some error messages stopped showing but I still get the following errors in the problems tabs of vscode:
Current behavior
'No name 'QtWidgets' in module 'PyQt5'
'Unable to import 'PyQt5.QtWidgets'
'No name 'QtGui' in module 'PyQt5'
'Unable to import 'PyQt5.QtGui'
Expected behavior
No errors of this kind
pylint --version output
pylint 2.5.3 with Python 3.7.3 using the anaconda distributor
The text was updated successfully, but these errors were encountered: