[Python-projects] lint.py

Huurne, Maarten ter maarten.ter.huurne at philips.com
Fri Mar 20 16:26:44 CET 2009


“lint.py 0.9.0” is either an ancient version of pylint, or a different package using the same file name.

Please try this and see if it turns up any surprises:

$ python
Python 2.5.2 (r252:60911, Oct  5 2008, 19:29:17)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pylint import lint
>>> lint.__file__
'/usr/lib/python2.5/site-packages/pylint/lint.pyc'
>>> lint.version
'0.16.0'
>>>

Bye,
                        Maarten

From: python-projects-bounces at lists.logilab.org [mailto:python-projects-bounces at lists.logilab.org] On Behalf Of Colin J. Williams
Sent: 2009 Mar 20 3:27 PM
To: python-projects at logilab.org
Subject: [Python-projects] lint.py


On Thu, Mar 19, 2009 at 04:04:51PM -0400, Colin J. Williams wrote:

> I have downloaded PyLint and, when running it, I get the following traceback:

> ...

> Could you please tell me where I should report such problems?





Please use python-projects at logilab.org<mailto:python-projects at logilab.org>



and paste the output of `pylint --version`



--

Nicolas Chauvat



logilab.fr - services en informatique scientifique et gestion de connaissances






________________________________




Nicholas,



Thanks for the above pointer.  Here is the output, using PyScripter.



Please let me know if I can provide any further information.



Colin W.





*** Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32. ***



Command Line : --version

No config file found, using default configuration

lint.py 0.9.0,

astng 0.17.4, common 0.21.2

Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)]

Exit code:  0

>>>

Command Line : lint.py

No config file found, using default configuration

************* Module lint

W: 51: Redefining built-in 'enumerate'

Traceback (most recent call last):

  File "<string>", line 244, in run_nodebug

  File "C:\Python25\Lib\site-packages\pylint\lint.py", line 811, in <module>

    Run(sys.argv[1:])

  File "C:\Python25\Lib\site-packages\pylint\lint.py", line 773, in __init__

    linter.check(args)

  File "C:\Python25\Lib\site-packages\pylint\lint.py", line 435, in check

    self.check_file(filepath, modname, checkers)

  File "C:\Python25\Lib\site-packages\pylint\lint.py", line 449, in check_file

    astng = self._check_file(filepath, modname, checkers)

  File "C:\Python25\Lib\site-packages\pylint\lint.py", line 473, in _check_file

    self.check_astng_module(astng, checkers)

  File "C:\Python25\Lib\site-packages\pylint\lint.py", line 518, in check_astng_module

    if implements(checker, IASTNGChecker)])

  File "C:\Python25\Lib\site-packages\pylint\lint.py", line 534, in astng_events

    self.astng_events(child, checkers, _reversed_checkers)

  File "C:\Python25\Lib\site-packages\pylint\lint.py", line 534, in astng_events

    self.astng_events(child, checkers, _reversed_checkers)

  File "C:\Python25\Lib\site-packages\pylint\lint.py", line 531, in astng_events

    checker.visit(astng)

  File "C:\Python25\Lib\site-packages\logilab\astng\utils.py", line 85, in visit

    method(node)

  File "C:\Python25\Lib\site-packages\pylint\checkers\variables.py", line 291, in visit_import

    module = node.infer(name_parts[0], asname=False).next()

  File "C:\Python25\Lib\site-packages\logilab\astng\inference.py", line 42, in wrapped

    context.push(node)

AttributeError: 'str' object has no attribute 'push'

>>>

________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.logilab.org/pipermail/python-projects/attachments/20090320/c9ee7d02/attachment.htm>


More information about the Python-Projects mailing list