Public bug reported:

I'm getting the following exception when running pylint on my code:

Traceback (most recent call last):
  File "/usr/bin/pylint", line 3, in <module>
    run_pylint()
  File "/usr/lib/python2.7/dist-packages/pylint/__init__.py", line 21, in 
run_pylint
    Run(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/pylint/lint.py", line 929, in __init__
    linter.check(args)
  File "/usr/lib/python2.7/dist-packages/pylint/lint.py", line 542, in check
    self.check_astng_module(astng, walker, rawcheckers)
  File "/usr/lib/python2.7/dist-packages/pylint/lint.py", line 615, in 
check_astng_module
    walker.walk(astng)
  File "/usr/lib/python2.7/dist-packages/pylint/utils.py", line 556, in walk
    self.walk(child)
  File "/usr/lib/python2.7/dist-packages/pylint/utils.py", line 553, in walk
    cb(astng)
  File "/usr/lib/python2.7/dist-packages/pylint/checkers/base.py", line 452, in 
visit_function
    if value.qname() == '__builtin__.set':
  File "/usr/lib/python2.7/dist-packages/logilab/astng/bases.py", line 51, in 
__getattr__
    return getattr(self._proxied, name)
  File "/usr/lib/python2.7/dist-packages/logilab/astng/raw_building.py", line 
340, in _set_proxied
    return _CONST_PROXY[const.value.__class__]
KeyError: <class 'gtk._gtk.ButtonsType'>

I have attached a small test case.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: pylint 0.26.0-1ubuntu1
ProcVersionSignature: Ubuntu 3.8.0-11.20-generic 3.8.2
Uname: Linux 3.8.0-11-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.9-0ubuntu2
Architecture: amd64
Date: Tue Mar 19 14:53:27 2013
InstallationDate: Installed on 2010-10-11 (890 days ago)
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: pylint
UpgradeStatus: Upgraded to raring on 2012-12-10 (98 days ago)

** Affects: pylint (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug raring

** Attachment added: "test.py"
   https://bugs.launchpad.net/bugs/1157395/+attachment/3583880/+files/test.py

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1157395

Title:
  pylint crashes on default values of a custom constant type

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pylint/+bug/1157395/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to