Your message dated Thu, 30 Aug 2012 10:49:35 +0200
with message-id 
<cab4xwxw9o8_mmy1xzqcnqn8_6+k3nmq8zdsffwsmwvpqd9t...@mail.gmail.com>
and subject line Re: [Python-apps-team] Bug#591676: pylint: please either 
disable or document dynamic checks
has caused the Debian Bug report #591676,
regarding pylint: please either disable or document dynamic checks
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
591676: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=591676
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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


--- End Message ---
--- Begin Message ---
Hi all,

On Mon, Nov 22, 2010 at 12:30 PM, Emile Anclin <[email protected]> wrote:
> It's not exactly what happens :
>
> 1/ astng parses Python source code
> 2/ if he finds an import, he will in some cases try to parse the module:
>
>    a/ if it is python source, goto 1/
>    b/ else: import the module as 'living object' and try to get
>         some information about the module.
>
> The astng.README states :
>
> "Furthermore, astng builds partial trees by inspecting living objects."
> Maybe we should mention something like this in Pylint doc?
>
> In our case, we have in icu.py:
>>>> from docs import *
> and in docs.py:
>>>> from _icu import *
>
> As Pylint tries to warn about * import, he will also try to find the
> unused imports. Hence astng is going into docs.py, then he finds _icu and
> tries to look what is inside...

Thanks Emile for the explanation; as upstream rejected this report
(that should be fixed in icu), I'm going to close this report too.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--- End Message ---

Reply via email to