Skip to content
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

write"from PyQt5.QtWidgets import QApplication" error #2089

Closed
xdbcb8 opened this issue Jul 4, 2018 · 2 comments
Closed

write"from PyQt5.QtWidgets import QApplication" error #2089

xdbcb8 opened this issue Jul 4, 2018 · 2 comments
Labels
area-linting bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@xdbcb8
Copy link

xdbcb8 commented Jul 4, 2018

Issue Type: Bug

When I use the vscode programming code, write" from PyQt5.QtWidgets import QApplication", the following error is indicated: "[pylint] E0611: No name 'QApplication' in module 'PyQt5.QtWidgets' ", but my program can be executed normally. What is the problem with this? Thanks!

I am using the Python language, the extension used is Python ms-python.python

Extension version: 2018.6.0
VS Code version: Code 1.24.1 (24f62626b222e9a8313213fb64b10d741a326288, 2018-06-13T17:51:32.889Z)
OS version: Windows_NT x64 6.1.7601

System Info
Item Value
CPUs Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz (4 x 3292)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
video_decode: enabled
video_encode: enabled
vpx_decode: unavailable_software
webgl: enabled
webgl2: enabled
Memory (System) 3.95GB (0.99GB free)
Process Argv C:\Program Files\Microsoft VS Code\Code.exe
Screen Reader no
VM 50%
@d3r3kk
Copy link

d3r3kk commented Jul 4, 2018

Thanks for the report! From some searching on the web, this could be caused by a combination of QT5 and pylint.

Could you please try the solution suggested here. You can either create the .pylintrc file as suggested, or perhaps in your workspace settings for vscode, set the property for pylint args:

"python.linting.pylintArgs": [
        "--extension-pkg-whitelist=PyQt5"
    ]

...and let us know how that works?

Thanks.

@d3r3kk d3r3kk added bug Issue identified by VS Code Team member as probable bug area-linting info-needed Issue requires more information from poster labels Jul 4, 2018
@brettcannon
Copy link
Member

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-linting bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants