[Python-projects] Pylint failed on checking Python module...

Sylvain Thénault sylvain.thenault at logilab.fr
Wed Dec 17 07:55:37 CET 2008


Le Thursday 11 December 2008 14:21:32 Stojan Jović, vous avez écrit :
> Here is the error message:
>
> Traceback (most recent call last):
[snip]
> line 229, in getattr
>     raise NotFoundError(name)
> logilab.astng._exceptions.NotFoundError: WindowType
>
> Pylint raised this on something like this in Python code:
>
> ...
> from PyQt4 import QtGui, QtCore
> from PyQt4.QtCore import Qt
>
> class GenericWidget(QtGui.QWidget):
>     def __init__(self, parent=None, title = '', attributes=Qt.Widget):

> Reason of this error is "attributes=Qt.Widget" and
> "attributes=Qt.Window" expressions in given source code, which is
> absolutely regular!?
> Where is the problem?

are you using the latest pylint / logilab-astng versions ? I can't reproduce 
your problem using:

pylint 0.15.2, 
astng 0.17.4, common 0.37.0
Python 2.5.2 (r252:60911, Nov 14 2008, 21:49:10) 

-- 
Sylvain Thénault                               LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian:  http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
Python et calcul scientifique:           http://www.logilab.fr/science


More information about the Python-Projects mailing list