Non-ASCII character produces SyntaxError in __init__.py

Bug #1217965 reported by Tankypon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
quickly-lens-templates (Ubuntu)
New
Undecided
Unassigned

Bug Description

Recently I try the Wikipedia Lens tutorial but during the tutorial, I got an error after running the lens:
"Traceback (most recent call last):
  File "bin/wikipedia", line 30, in <module>
    from wikipedia import WikipediaLens
  File "/home/user/wikipedia/wikipedia/__init__.py", line 41
SyntaxError: Non-ASCII character '\xc3' in file /home/user/wikipedia/wikipedia/__init__.py on line 41, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details"

The workaround is to place at the beginning of __init__.py file the line: "# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-" which is incorporated automatically in the others files when we create a unity-lens project with quickly but not in init file..

Can you correct this mistake for the init file at the creation of unity-lens project?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.