http://bugzilla.novell.com/show_bug.cgi?id=555993#c0 Summary: Pylint doesn't work with imports (AttributeError: 'Import' object has no attribute 'do_import_module') Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: i686 OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: nogu.dev@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; ja; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4 Pylint raises AttributeError when I run it on a Python script with imports $ cat test.py #!/usr/bin/env python import sys $ pylint test.py /usr/lib/python2.6/site-packages/pylint/lint.py:314: DeprecationWarning: use lgc.optik_ext.check_csv value = check_csv(None, opt_name, value) 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/python2.6/site-packages/pylint/lint.py", line 884, in __init__ linter.check(args) File "/usr/lib/python2.6/site-packages/pylint/lint.py", line 501, in check self.check_astng_module(astng, checkers) File "/usr/lib/python2.6/site-packages/pylint/lint.py", line 578, in check_astng_module if implements(checker, IASTNGChecker)]) File "/usr/lib/python2.6/site-packages/pylint/lint.py", line 595, in astng_events self.astng_events(child, checkers, _reversed_checkers) File "/usr/lib/python2.6/site-packages/pylint/lint.py", line 592, in astng_events checker.visit(astng) File "/usr/lib/python2.6/site-packages/logilab/astng/utils.py", line 320, in visit method(node) File "/usr/lib/python2.6/site-packages/pylint/checkers/imports.py", line 224, in visit_import importedmodnode = self.get_imported_module(modnode, node, name) File "/usr/lib/python2.6/site-packages/pylint/checkers/imports.py", line 260, in get_imported_module return importnode.do_import_module(modname) AttributeError: 'Import' object has no attribute 'do_import_module' $ rpm -qf /usr/lib/python2.6/site-packages/pylint/checkers/imports.py python-pylint-0.18.1-2.1.noarch $ rpm -q python-pylint python-logilab-astng python-logilab-common python-pylint-0.18.1-2.1.noarch python-logilab-astng-0.19.0-2.1.noarch python-logilab-common-0.45.1-1.1.1.noarch Reproducible: Always Steps to Reproduce: 1. Create a Python script which uses imports 2. Run Pylint on it -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.