[Bug 81262] favicon-extension broken by invalid character in python source

Christof Krüger ubuntu at pop2wap.net
Wed Jan 24 11:31:24 UTC 2007


Public bug reported:

Binary package hint: epiphany-extensions

When starting epiphany-browser with the favicon-extension the extension
does not load with the following error message on the console:

----------
  File "/usr/lib/epiphany/2.17/extensions/favicon.py", line 3
SyntaxError: Non-ASCII character '\xc2' in file /usr/lib/epiphany/2.17/extensions/favicon.py on line 3, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

** (epiphany:23249): WARNING **: Could not initialize Python module 'favicon'
----------

It's the copyright character in the GPL note at the beginning of the file that is causing this error.
The solution is trivial: either replace the copyright-character by "(c)" or add the line

# -*- coding: utf-8 -*-

right after the shebang.

** Affects: epiphany-extensions (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
favicon-extension broken by invalid character in python source
https://launchpad.net/bugs/81262




More information about the desktop-bugs mailing list