Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148422 - pylint fails w/ Python 2.5
Summary: pylint fails w/ Python 2.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: python-2.5 148865
  Show dependency tree
 
Reported: 2006-09-20 15:17 UTC by Rob Cakebread (RETIRED)
Modified: 2006-09-26 17:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Cakebread (RETIRED) gentoo-dev 2006-09-20 15:17:36 UTC
Tested with pylint 0.11.0

 $ pylint
Traceback (most recent call last):
  File "/usr/bin/pylint", line 3, in <module>
    from pylint import lint
  File "/usr/lib/python2.5/site-packages/pylint/lint.py", line 33, in <module>
    from pylint.checkers import utils
  File "/usr/lib/python2.5/site-packages/pylint/checkers/__init__.py", line 37, in <module>
    from logilab.astng.utils import ASTWalker
  File "/usr/lib/python2.5/site-packages/logilab/astng/__init__.py", line 182, in <module>
    List._proxied = MANAGER.astng_from_class(list)
  File "/usr/lib/python2.5/site-packages/logilab/astng/manager.py", line 186, in astng_from_class
    modastng = self.astng_from_module_name(modname)
  File "/usr/lib/python2.5/site-packages/logilab/astng/manager.py", line 137, in astng_from_module_name
    return self.astng_from_module(module, modname)
  File "/usr/lib/python2.5/site-packages/logilab/astng/manager.py", line 172, in astng_from_module
    astng = ASTNGBuilder().module_build(module, modname)
  File "/usr/lib/python2.5/site-packages/logilab/astng/builder.py", line 83, in module_build
    node = self.inspect_build(module, modname=modname, path=path)
  File "/usr/lib/python2.5/site-packages/logilab/astng/builder.py", line 97, in inspect_build
    self.object_build(node, module)
  File "/usr/lib/python2.5/site-packages/logilab/astng/builder.py", line 444, in object_build
    imported_member(node, member, name)
  File "/usr/lib/python2.5/site-packages/logilab/astng/builder.py", line 482, in imported_member
    attach_import_node(node, member_module, name)
  File "/usr/lib/python2.5/site-packages/logilab/astng/raw_building.py", line 54, in attach_import_node
    _attach_local_node(node, nodes.From(modname, ( (membername, None), ) ),
TypeError: __init__() takes at least 4 arguments (3 given)
Comment 1 Mike Auty (RETIRED) gentoo-dev 2006-09-23 15:45:49 UTC
A patch has now been submitted (http://lists.logilab.org/pipermail/python-projects/2006-September/000934.html) and so a new version of astng should be out soon (since this is actually an astng issue).

Also new versions of pylint (0.12.0) and logilab-common (0.19.0) are available (see bug 148865).
Comment 2 Marien Zwart (RETIRED) gentoo-dev 2006-09-23 16:56:07 UTC
Taking bug, will bump as soon as that fixed astng comes out (I'm trying to get this fixed, mailing list patch was mine but doesn't quite fix everything).
Comment 3 Mike Auty (RETIRED) gentoo-dev 2006-09-26 11:26:47 UTC
astng-0.16.1 is out now on the logilab website, complete with your patch (thanks!)...  5:)
Comment 4 Marien Zwart (RETIRED) gentoo-dev 2006-09-26 17:10:34 UTC
Should be fixed by the version bumping that just happened. Reopen if it still does not work.