Ask Your Question
1

pylint with python_qt_bindings

asked 2017-11-17 02:01:46 -0500

fexner gravatar image

Hi there,

I was starting to use pylint to check all my python files for common errors and for continuous integration purposes. However, pylint does not like the python_qt_bindings module, it complains about not finding names in modules.

I have:

from python_qt_binding.QtCore import Qt, Signal

which gives

[no-name-in-module] No name 'QtCore' in module 'python_qt_binding' [E0611] (E)

The code itself runs absolutely fine and also when manually invoking the above line in a pythonshell everything runs as expected, it's just pylint complaining.

python_qt_binding promotes all the submodules by adding them to sys.modules[__name__] which at first seems fine, as well.

Does anyone have a workaround for this? I am unsure which is the side causing the problem - pylint not recognizing the submodules or python_qt_binding not promoting the submodules good enough.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-02-11 09:44:04 -0500

bionade24 gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

3 followers

Stats

Asked: 2017-11-17 02:01:46 -0500

Seen: 78 times

Last updated: Feb 11