[Python-modules-team] Bug#595912: python-support: Compilation problems of __init__.py with encodings utf8 and utf-8

Josselin Mouette joss at debian.org
Tue Sep 7 13:12:28 UTC 2010


retitle 595912 python-docutils: byte-compilation errors
reassign 595912 python-docutils
thanks

Le mardi 07 septembre 2010 à 11:08 +0200, Marc-Jano Knopp a écrit :
> Whenever I install or upgrade packages (aptitude install ...), this happens:
> 
> --------- snip ---------
> Processing triggers for python-support ...
> Compiling /usr/lib/pymodules/python2.5/docutils/writers/latex2e/__init__.py ...
>   File "/usr/lib/pymodules/python2.5/docutils/writers/latex2e/__init__.py", line 0
> SyntaxError: ('unknown encoding: utf8', ('/usr/lib/pymodules/python2.5/docutils/writers/latex2e/__init__.py', 0, 0, None))
> 
> Compiling /usr/lib/pymodules/python2.5/docutils/writers/manpage.py ...
> Sorry: LookupError: ("no codec search functions registered: can't find encoding",)
> --------- snip ---------

Either way this is a bug in the package shipping those files.

> Interestingly enough, aptitude's exit code is 0.

It’s because such errors are ignored by python-support.

Cheers,
-- 
 .''`.
: :' :     “You would need to ask a lawyer if you don't know
`. `'       that a handshake of course makes a valid contract.”
  `-        --  J???rg Schilling




More information about the Python-modules-team mailing list