Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301329 - dev-python/pylint-0.19.0: crashes with AttributeError
Summary: dev-python/pylint-0.19.0: crashes with AttributeError
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:
 
Reported: 2010-01-18 00:06 UTC by Sebastian Pipping
Modified: 2010-01-18 18:24 UTC (History)
0 users

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 Sebastian Pipping gentoo-dev 2010-01-18 00:06:40 UTC
# pylint --disable-msg-cat=CR --disable-msg=W0613 layman/overlays/source.py
No config file found, using default configuration
************* Module layman.overlays.source
W: 64:OverlaySource.supported: Dangerous default value [] as argument
W: 94:OverlaySource.is_supported: Catch "Exception"
W: 94:OverlaySource.is_supported: Unused variable 'error'
Traceback (most recent call last):
  File "/usr/bin/pylint-2.6", line 4, in <module>
    lint.Run(sys.argv[1:])
  File "/usr/lib/python2.6/site-packages/pylint/lint.py", line 891, in __init__
    linter.check(args)
  File "/usr/lib/python2.6/site-packages/pylint/lint.py", line 502, in check
    self.check_astng_module(astng, checkers)
  File "/usr/lib/python2.6/site-packages/pylint/lint.py", line 579, in check_astng_module
    if implements(checker, IASTNGChecker)])
  File "/usr/lib/python2.6/site-packages/pylint/lint.py", line 596, in astng_events
    self.astng_events(child, checkers, _reversed_checkers)
  File "/usr/lib/python2.6/site-packages/pylint/lint.py", line 596, in astng_events
    self.astng_events(child, checkers, _reversed_checkers)
  File "/usr/lib/python2.6/site-packages/pylint/lint.py", line 596, in astng_events
    self.astng_events(child, checkers, _reversed_checkers)
  File "/usr/lib/python2.6/site-packages/pylint/lint.py", line 596, in astng_events
    self.astng_events(child, checkers, _reversed_checkers)
  File "/usr/lib/python2.6/site-packages/pylint/lint.py", line 596, in astng_events
    self.astng_events(child, checkers, _reversed_checkers)
  File "/usr/lib/python2.6/site-packages/pylint/lint.py", line 596, in astng_events
    self.astng_events(child, checkers, _reversed_checkers)
  File "/usr/lib/python2.6/site-packages/pylint/lint.py", line 596, in astng_events
    self.astng_events(child, checkers, _reversed_checkers)
  File "/usr/lib/python2.6/site-packages/pylint/lint.py", line 593, in astng_events
    checker.visit(astng)
  File "/usr/lib/python2.6/site-packages/logilab/astng/utils.py", line 320, in visit
    method(node)
  File "/usr/lib/python2.6/site-packages/pylint/checkers/typecheck.py", line 190, in visit_getattr
    args=(owner.display_type(), name,
AttributeError: 'ClassDef' object has no attribute 'display_type'

==========
Checked file <layman/overlays/source.py> can be found here:
http://layman.git.sourceforge.net/git/gitweb.cgi?p=layman/layman;a=blob;f=layman/overlays/source.py;h=0dc1ba225e9e43e76d81a8eaf8a6d5b2da590c4d;hb=35b801214aabd8d4a06bcd501a21601827ea2256
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-18 17:11:43 UTC
I can't reproduce this problem.
Which versions of dev-python/logilab-common and dev-python/astng do you use?
Comment 2 Sebastian Pipping gentoo-dev 2010-01-18 17:22:51 UTC
dev-python/logilab-common-0.46.0
dev-python/astng-0.19.1
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-18 17:25:28 UTC
Can you reproduce this problem with dev-python/astng-0.19.3?
Comment 4 Sebastian Pipping gentoo-dev 2010-01-18 17:34:08 UTC
After emerging dev-python/astng-0.19.3 the very same case no longer crashes.
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-18 18:24:40 UTC
I have updated dependencies.