[Python-projects] Pylint failed on checking Python module...
Stojan Jović
stojan.jovic at dmsgroup.rs
Wed Dec 17 10:09:34 CET 2008
Sylvain Thénault wrote:
> 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)
>
>
Thanks very much, I will try with reinstalling astng & common (my
versions are 0.17.2 and 0.31.0, respectively), pylint is up-to-date...
Regards,
Stojan Jović
--
=============================================================================
Computer Science and Informatics
Computing and Control Department
Faculty of Technical Sciences
21000 Novi Sad
Serbia
http://www.ftn.ns.ac.yu
http://www.ftn.ns.ac.yu/english
=============================================================================
More information about the Python-Projects
mailing list