Package: pylint
Version: 0.21.1-1
Severity: normal

$ echo 'import icu' > test.py
$ pylint test.py No config file found, using default configuration
************* Module test
C:  1: Missing docstring
Traceback (most recent call last):
  File "/usr/bin/pylint", line 4, in <module>
    lint.Run(sys.argv[1:])
  File "/usr/lib/pymodules/python2.6/pylint/lint.py", line 856, in __init__
    linter.check(args)
  File "/usr/lib/pymodules/python2.6/pylint/lint.py", line 488, in check
    self.check_astng_module(astng, walker, rawcheckers)
  File "/usr/lib/pymodules/python2.6/pylint/lint.py", line 563, in 
check_astng_module
    walker.walk(astng)
  File "/usr/lib/pymodules/python2.6/pylint/utils.py", line 516, in walk
    self.walk(child)
  File "/usr/lib/pymodules/python2.6/pylint/utils.py", line 513, in walk
    cb(astng)
  File "/usr/lib/pymodules/python2.6/pylint/checkers/imports.py", line 224, in 
visit_import
    importedmodnode = self.get_imported_module(modnode, node, name)
  File "/usr/lib/pymodules/python2.6/pylint/checkers/imports.py", line 260, in 
get_imported_module
    return importnode.do_import_module(modname)
  File "/usr/lib/pymodules/python2.6/logilab/astng/mixins.py", line 147, in 
do_import_module
    return mymodule.import_module(modname, level=level)
  File "/usr/lib/pymodules/python2.6/logilab/astng/scoped_nodes.py", line 355, 
in import_module
    return MANAGER.astng_from_module_name(absmodname)
  File "/usr/lib/pymodules/python2.6/logilab/astng/manager.py", line 183, in 
astng_from_module_name
    return self.astng_from_file(filepath, modname, fallback=False)
  File "/usr/lib/pymodules/python2.6/logilab/astng/manager.py", line 140, in 
astng_from_file
    return ASTNGBuilder(self).file_build(filepath, modname)
  File "/usr/lib/pymodules/python2.6/logilab/astng/builder.py", line 135, in 
file_build
    node = self.string_build(data, modname, path)
  File "/usr/lib/pymodules/python2.6/logilab/astng/builder.py", line 145, in 
string_build
    return self.ast_build(parse(data + '\n'), modname, path)
  File "/usr/lib/pymodules/python2.6/logilab/astng/builder.py", line 158, in 
ast_build
    newnode = self.rebuilder.build(node, modname, node_file)
  File "/usr/lib/pymodules/python2.6/logilab/astng/rebuilder.py", line 112, in 
build
    self._add_from_names_to_locals(from_node, delayed=True)
  File "/usr/lib/pymodules/python2.6/logilab/astng/rebuilder.py", line 211, in 
_add_from_names_to_locals
    imported = node.root().import_module(node.modname)
  File "/usr/lib/pymodules/python2.6/logilab/astng/scoped_nodes.py", line 355, 
in import_module
    return MANAGER.astng_from_module_name(absmodname)
  File "/usr/lib/pymodules/python2.6/logilab/astng/manager.py", line 183, in 
astng_from_module_name
    return self.astng_from_file(filepath, modname, fallback=False)
  FNameError: name 'BreakIterator' is not definedile 
"/usr/lib/pymodules/python2.6/logilab/astng/manager.py", line 140, in 
astng_from_file
    return ASTNGBuilder(self).file_build(filepath, modname)
  File "/usr/lib/pymodules/python2.6/logilab/astng/builder.py", line 135, in 
file_build
    node = self.string_build(data, modname, path)
  File "/usr/lib/pymodules/python2.6/logilab/astng/builder.py", line 145, in 
string_build
    return self.ast_build(parse(data + '\n'), modname, path)
  File "/usr/lib/pymodules/python2.6/logilab/astng/builder.py", line 158, in 
ast_build
    newnode = self.rebuilder.build(node, modname, node_file)
  File "/usr/lib/pymodules/python2.6/logilab/astng/rebuilder.py", line 112, in 
build
    self._add_from_names_to_locals(from_node, delayed=True)
  File "/usr/lib/pymodules/python2.6/logilab/astng/rebuilder.py", line 211, in 
_add_from_names_to_locals
    imported = node.root().import_module(node.modname)
  File "/usr/lib/pymodules/python2.6/logilab/astng/scoped_nodes.py", line 355, 
in import_module
    return MANAGER.astng_from_module_name(absmodname)
  File "/usr/lib/pymodules/python2.6/logilab/astng/manager.py", line 176, in 
astng_from_module_name
    module = load_module_from_name(modname)
  File "/usr/lib/pymodules/python2.6/logilab/common/modutils.py", line 113, in 
load_module_from_name
    return load_module_from_modpath(dotted_name.split('.'), path, use_sys)
  File "/usr/lib/pymodules/python2.6/logilab/common/modutils.py", line 153, in 
load_module_from_modpath
    module = load_module(curname, mp_file, mp_filename, mp_desc)
  File "/usr/lib/pymodules/python2.6/icu.py", line 37, in <module>
    from docs import *
  File "/usr/lib/pymodules/python2.6/docs.py", line 27, in <module>
    _install__doc__(BreakIterator, '''
NameError: name 'BreakIterator' is not defined


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pylint depends on:
ii  python                        2.6.5-11   interactive high-level object-orie
ii  python-logilab-astng          0.20.1-1   rebuild a new abstract syntax tree
ii python-logilab-common 0.50.3-1 useful miscellaneous modules used ii python-support 1.0.9 automated rebuilding support for P

Versions of packages pylint recommends:
pn  python-tk                     <none>     (no description available)

pylint suggests no packages.

-- no debconf information

--
Jakub Wilk

Attachment: signature.asc
Description: Digital signature

Reply via email to