[Python-apps-team] Bug#591676: Bug#591676: pylint: crashes on modules importing icu: NameError: name 'BreakIterator' is not defined

Sandro Tosi morph at debian.org
Tue Nov 16 00:49:55 UTC 2010


Hi Jakub,

On Wed, Aug 4, 2010 at 15:32, Jakub Wilk <jwilk at debian.org> wrote:
> 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/docs.py", line 27, in <module>
>    _install__doc__(BreakIterator, '''
> NameError: name 'BreakIterator' is not defined

pylint upstream identified the problem in:

$ python -c "from _icu import *"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  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

(and don't want to invest further energy on it, understandably). Do
you think it's ok to reassign this ticket to python-pyicu? AFAICS _icu
should be a private module, but it prevents 'icu' to be "linted".

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





More information about the Python-apps-team mailing list