On Tue, Jun 16, 2009 at 10:59, Helmut Grohne<hel...@subdivi.de> wrote: > Hi Sandro, > > tahnks for your very quick reply!
you're welcome :) > On Tue, Jun 16, 2009 at 10:53:55AM +0200, Sandro Tosi wrote: >> On Tue, Jun 16, 2009 at 10:22, Helmut Grohne<hel...@subdivi.de> wrote: >> > >> > $ pylint test.py >> > Traceback (most recent call last): >> > File "/usr/bin/pylint", line 3, in <module> >> > from pylint import lint >> > File "/usr/lib/pymodules/python2.5/pylint/lint.py", line 31, in <module> >> > from pylint.checkers import utils >> > File "/usr/lib/pymodules/python2.5/pylint/checkers/utils.py", line 29, in >> > <module> >> > FOR_NODE_TYPES = (astng.For, astng.Comprehension) >> > AttributeError: 'module' object has no attribute 'Comprehension' >> > $ >> >> could you please attach the test.py (or a minimal subset of it able to >> replicate the bug) since I tried pylint here on some source code and >> it works. > > I did not include the file, because it did not appear to depend on the > file. Actually this error occurs during loading of pylint, so an empty > file and even no file at all will produce this error. I start to think > that this may be due to some sort of brokenness of my system. > Reinstalling pylint did however not help. Nor did reinstalling > python-logilab-astng. 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 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 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? Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org