problem with pylint + PyQt4

Vito De Tullio zak.mc.kraken at libero.it
Sat May 30 02:38:46 EDT 2009


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?

-- 
By ZeD




More information about the Python-list mailing list