[Python-projects] pylint crashers - AttributeError: fromlineno
Sylvain Thénault
sylvain.thenault at logilab.fr
Wed Nov 15 19:47:08 CET 2006
On Tuesday 31 October à 15:46, Heikki Toivonen wrote:
> I'm trying to upgrade to pylint 0.12.1 (and astng 0.16.1, common 0.19.2)
> but it seems this version (combination) is unable to analyze the files I
> am interested in without crashing. --version gives:
>
> lint.py 0.12.1,
> astng 0.16.1, common 0.19.2
> Python 2.4.3 (#1, Oct 31 2006, 12:46:44)
> [GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)]
>
> I am currently using pylint 0.11.0, astng 0.16.0, and common 0.15.0, but
> would like to upgrade so that I could move onto Python 2.5.
>
> Here's the error I get with one specific file (happens with some others
> as well with slightly different stacks, but they all end in that
> AttributeError):
>
> $ ./release/RunPython tools/lint.py tools.pygettext
> No config file found, using default configuration
> ************* Module tools.pygettext
> E: 1: Wrong encoding specified (utf-8)
> W:526: FIXME: currently this option has no effect at all.
> C: 1: Missing docstring
> Traceback (most recent call last):
> File "tools/lint.py", line 49, in ?
> lint.Run(sys.argv[1:])
[snip]
> File
> "/home/heikki/workspace/chandler/release/lib/python2.4/site-packages/logilab/astng/__init__.py",
> line 194, in Const___getattr__
> raise AttributeError(name)
> AttributeError: fromlineno
>
> You can either download prebuilt binaries of Chandler
> (http://builds.osafoundation.org/ - grab a continuous build for latest
> code) or use svn and build whatever parts you want yourself
> (http://wiki.osafoundation.org/bin/view/Projects/BuildingChandler).
>
> Any ideas?
not right now but I've added it to the tracker and will check it asap
--
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