[Python-apps-team] Bug#533282: Bug#533282: pylint: AttributeError on program invocation

Helmut Grohne helmut at subdivi.de
Tue Jun 16 09:38:18 UTC 2009


Hi Sandro,

On Tue, Jun 16, 2009 at 11:14:12AM +0200, Sandro Tosi wrote:
> could you please run this command and report the output:
> 
> $ ls -l /usr/lib/pymodules/python2.5/pylint
> total 88
> drwxr-xr-x 2 root root  4096 2009-06-16 10:51 checkers
> lrwxrwxrwx 1 root root    49 2009-06-16 10:51 config.py ->
> /usr/share/python-support/pylint/pylint/config.py
> -rw-r--r-- 1 root root  4961 2009-06-16 10:51 config.pyc
> lrwxrwxrwx 1 root root    50 2009-06-16 10:51 epylint.py ->
> /usr/share/python-support/pylint/pylint/epylint.py
> -rw-r--r-- 1 root root   952 2009-06-16 10:51 epylint.pyc
> lrwxrwxrwx 1 root root    46 2009-06-16 10:51 gui.py ->
> /usr/share/python-support/pylint/pylint/gui.py
> -rw-r--r-- 1 root root  3645 2009-06-16 10:51 gui.pyc
> lrwxrwxrwx 1 root root    51 2009-06-16 10:51 __init__.py ->
> /usr/share/python-support/pylint/pylint/__init__.py
> -rw-r--r-- 1 root root   266 2009-06-16 10:51 __init__.pyc
> lrwxrwxrwx 1 root root    53 2009-06-16 10:51 interfaces.py ->
> /usr/share/python-support/pylint/pylint/interfaces.py
> -rw-r--r-- 1 root root  3979 2009-06-16 10:51 interfaces.pyc
> lrwxrwxrwx 1 root root    47 2009-06-16 10:51 lint.py ->
> /usr/share/python-support/pylint/pylint/lint.py
> -rw-r--r-- 1 root root 32373 2009-06-16 10:51 lint.pyc
> lrwxrwxrwx 1 root root    54 2009-06-16 10:51 __pkginfo__.py ->
> /usr/share/python-support/pylint/pylint/__pkginfo__.py
> -rw-r--r-- 1 root root  2202 2009-06-16 10:51 __pkginfo__.pyc
> drwxr-xr-x 2 root root  4096 2009-06-16 10:51 pyreverse
> drwxr-xr-x 2 root root  4096 2009-06-16 10:51 reporters
> lrwxrwxrwx 1 root root    48 2009-06-16 10:51 utils.py ->
> /usr/share/python-support/pylint/pylint/utils.py
> -rw-r--r-- 1 root root 16283 2009-06-16 10:51 utils.pyc

No changes apart from ordering and timestamps.

> and
> 
> $ ls /usr/lib/pymodules/python2.5/logilab/astng/ -l
> total 344
> lrwxrwxrwx 1 root root    71 2009-06-16 10:51 builder.py ->
> /usr/share/python-support/python-logilab-astng/logilab/astng/builder.py
> -rw-r--r-- 1 root root  7908 2009-06-16 10:51 builder.pyc
> lrwxrwxrwx 1 root root    75 2009-06-16 10:51 _exceptions.py ->
> /usr/share/python-support/python-logilab-astng/logilab/astng/_exceptions.py
> -rw-r--r-- 1 root root  2912 2009-06-16 10:51 _exceptions.pyc
> lrwxrwxrwx 1 root root    73 2009-06-16 10:51 inference.py ->
> /usr/share/python-support/python-logilab-astng/logilab/astng/inference.py
> -rw-r--r-- 1 root root 13681 2009-06-16 10:51 inference.pyc
> lrwxrwxrwx 1 root root    72 2009-06-16 10:51 infutils.py ->
> /usr/share/python-support/python-logilab-astng/logilab/astng/infutils.py
> -rw-r--r-- 1 root root 13603 2009-06-16 10:51 infutils.pyc
> lrwxrwxrwx 1 root root    72 2009-06-16 10:51 __init__.py ->
> /usr/share/python-support/python-logilab-astng/logilab/astng/__init__.py
> -rw-r--r-- 1 root root  1954 2009-06-16 10:51 __init__.pyc
> lrwxrwxrwx 1 root root    73 2009-06-16 10:51 inspector.py ->
> /usr/share/python-support/python-logilab-astng/logilab/astng/inspector.py
> -rw-r--r-- 1 root root  8959 2009-06-16 10:51 inspector.pyc
> lrwxrwxrwx 1 root root    70 2009-06-16 10:51 lookup.py ->
> /usr/share/python-support/python-logilab-astng/logilab/astng/lookup.py
> -rw-r--r-- 1 root root  6222 2009-06-16 10:51 lookup.pyc
> lrwxrwxrwx 1 root root    71 2009-06-16 10:51 manager.py ->
> /usr/share/python-support/python-logilab-astng/logilab/astng/manager.py
> -rw-r--r-- 1 root root 15229 2009-06-16 10:51 manager.pyc
> lrwxrwxrwx 1 root root    79 2009-06-16 10:51 nodes_as_string.py ->
> /usr/share/python-support/python-logilab-astng/logilab/astng/nodes_as_string.py
> -rw-r--r-- 1 root root 20264 2009-06-16 10:51 nodes_as_string.pyc
> lrwxrwxrwx 1 root root    74 2009-06-16 10:51 _nodes_ast.py ->
> /usr/share/python-support/python-logilab-astng/logilab/astng/_nodes_ast.py
> -rw-r--r-- 1 root root 14617 2009-06-16 10:51 _nodes_ast.pyc
> lrwxrwxrwx 1 root root    79 2009-06-16 10:51 _nodes_compiler.py ->
> /usr/share/python-support/python-logilab-astng/logilab/astng/_nodes_compiler.py
> -rw-r--r-- 1 root root 27622 2009-06-16 10:51 _nodes_compiler.pyc
> lrwxrwxrwx 1 root root    69 2009-06-16 10:51 nodes.py ->
> /usr/share/python-support/python-logilab-astng/logilab/astng/nodes.py
> -rw-r--r-- 1 root root 20063 2009-06-16 10:51 nodes.pyc
> lrwxrwxrwx 1 root root    84 2009-06-16 10:51 patchcomptransformer.py
> -> /usr/share/python-support/python-logilab-astng/logilab/astng/patchcomptransformer.py
> -rw-r--r-- 1 root root  5697 2009-06-16 10:51 patchcomptransformer.pyc
> lrwxrwxrwx 1 root root    75 2009-06-16 10:51 __pkginfo__.py ->
> /usr/share/python-support/python-logilab-astng/logilab/astng/__pkginfo__.py
> -rw-r--r-- 1 root root  1751 2009-06-16 10:51 __pkginfo__.pyc
> lrwxrwxrwx 1 root root    73 2009-06-16 10:51 protocols.py ->
> /usr/share/python-support/python-logilab-astng/logilab/astng/protocols.py
> -rw-r--r-- 1 root root 13923 2009-06-16 10:51 protocols.pyc
> lrwxrwxrwx 1 root root    76 2009-06-16 10:51 raw_building.py ->
> /usr/share/python-support/python-logilab-astng/logilab/astng/raw_building.py
> -rw-r--r-- 1 root root  7296 2009-06-16 10:51 raw_building.pyc
> lrwxrwxrwx 1 root root    73 2009-06-16 10:51 rebuilder.py ->
> /usr/share/python-support/python-logilab-astng/logilab/astng/rebuilder.py
> -rw-r--r-- 1 root root 11555 2009-06-16 10:51 rebuilder.pyc
> lrwxrwxrwx 1 root root    76 2009-06-16 10:51 scoped_nodes.py ->
> /usr/share/python-support/python-logilab-astng/logilab/astng/scoped_nodes.py
> -rw-r--r-- 1 root root 29630 2009-06-16 10:51 scoped_nodes.pyc
> lrwxrwxrwx 1 root root    69 2009-06-16 10:51 utils.py ->
> /usr/share/python-support/python-logilab-astng/logilab/astng/utils.py
> -rw-r--r-- 1 root root 18135 2009-06-16 10:51 utils.pyc

No changes apart from order and timestamps.

Also note that I run debsums daily and it did not report anything in
conjunction with python.

> probably something left from when we used python-central and now we've
> moved to python-support.
> 
> If you run
> 
> $ sudo pycentral pkgremove python-logilab-astng
> 
> and reinstall python-logilab-astng does it help?

No change here.

I'd also like to note that I cannot pydoc logilab.astng:

$ pydoc logilab.astng
$ pydoc logilab.astng
Traceback (most recent call last):
  File "/usr/bin/pydoc", line 5, in <module>
    pydoc.cli()
  File "/usr/lib/python2.5/pydoc.py", line 2226, in cli
    help.help(arg)
  File "/usr/lib/python2.5/pydoc.py", line 1689, in help
    elif request: doc(request, 'Help on %s:')
  File "/usr/lib/python2.5/pydoc.py", line 1482, in doc
    pager(title % desc + '\n\n' + text.document(object, name))
  File "/usr/lib/python2.5/pydoc.py", line 324, in document
    if inspect.ismodule(object): return self.docmodule(*args)
  File "/usr/lib/python2.5/pydoc.py", line 1071, in docmodule
    inspect.getclasstree(classlist, 1), name)]
  File "/usr/lib/python2.5/inspect.py", line 656, in getclasstree
    for parent in c.__bases__:
TypeError: 'Yes' object is not iterable
$

Helmut





More information about the Python-apps-team mailing list