problem with pylint + PyQt4

V

Vito De Tullio

I'm having probles using pylint on a PyQt4 application.

$ cat TEST_pylint.py
import PyQt4.QtCore
from PyQt4.QtGui import QApplication

$ python TEST_pylint.py # no import errors

$ pylint --disable-msg=C0103 --disable-msg=C0111 --disable-msg=W0611 \
TEST_pylint.py
************* Module TEST_pylint
E: 1: No name 'QtCore' in module 'PyQt4'
E: 2: No name 'QtGui' in module 'PyQt4'
[...cut...]

$ pylint --version
pylint 0.15.0,
astng 0.17.3, common 0.35.0
Python 2.6 (r26:66714, Feb 3 2009, 20:52:03)
[GCC 4.3.2 [gcc-4_3-branch revision 141291]]

$ rpm -q python-qt4
python-qt4-4.5.snapshot.20090507-9.3

why pylint can't find the PyQt4 submodules?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top