[Python-apps-team] Bug#546522: pylint: false positive on E0611

Yann Dirson ydirson at altern.org
Sun Sep 13 19:52:15 UTC 2009


Package: pylint
Version: 0.18.0-1
Severity: normal

The following relative import fails with
E0611:  1: No name 'GUI' in module ''

======== foo/__init__.py
class GUI(object):
      pass
======== foo/bar.py
from . import GUI
========

Python2.5 has no trouble doing the import.

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

Kernel: Linux 2.6.28.10-smp-smp-00002-g0fee61b (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=french (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages pylint depends on:
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-logilab-astng          0.19.0-2   extend Python's abstract syntax tr
ii  python-logilab-common         0.39.0-1   useful miscellaneous modules used 
ii  python-support                1.0.3      automated rebuilding support for P

Versions of packages pylint recommends:
ii  python-tk                     2.5.2-1.1  Tkinter - Writing Tk applications 

pylint suggests no packages.

-- no debconf information





More information about the Python-apps-team mailing list