pylint crashes on default values of a custom constant type
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pylint (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
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/
Run(
File "/usr/lib/
linter.
File "/usr/lib/
self.
File "/usr/lib/
walker.
File "/usr/lib/
self.
File "/usr/lib/
cb(astng)
File "/usr/lib/
if value.qname() == '__builtin__.set':
File "/usr/lib/
return getattr(
File "/usr/lib/
return _CONST_
KeyError: <class 'gtk._gtk.
I have attached a small test case.
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: pylint 0.26.0-1ubuntu1
ProcVersionSign
Uname: Linux 3.8.0-11-generic x86_64
NonfreeKernelMo
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
PackageArchitec
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: pylint
UpgradeStatus: Upgraded to raring on 2012-12-10 (98 days ago)
Thanks for reporting this issue and help making Ubuntu better.
I get the same error message when running pylint on your example file on Ubuntu Raring.