Page 1 of 1

SyntaxError

Posted: Sun Nov 02, 2008 3:56 pm
by reference2myself
I got some updates the other day on Ubuntu 8.10 and now when I try to start deluge 1.03 or 1.04 I get this.

[INFO ] 10:52:14 main:93 Deluge ui 1.0.4
[DEBUG ] 10:52:14 main:94 options: {'config': None, 'logfile': None, 'ui': None}
[DEBUG ] 10:52:14 main:95 args: []
[DEBUG ] 10:52:14 configmanager:44 ConfigManager started..
[INFO ] 10:52:14 main:98 Starting ui..
[DEBUG ] 10:52:14 ui:44 UI init..
[DEBUG ] 10:52:14 configmanager:88 Getting config 'ui.conf'
[DEBUG ] 10:52:14 config:47 Config created with filename: ui.conf
[DEBUG ] 10:52:14 config:48 Config defaults: {'default_ui': 'gtk'}
[INFO ] 10:52:14 ui:60 Starting GtkUI..
[DEBUG ] 10:52:14 client:54 CoreProxy init..
Traceback (most recent call last):
File "/usr/bin/deluge", line 8, in <module>
load_entry_point('deluge==1.0.4', 'console_scripts', 'deluge')()
File "/var/lib/python-support/python2.5/deluge/main.py", line 99, in start_ui
UI(options, args)
File "/var/lib/python-support/python2.5/deluge/ui/ui.py", line 61, in __init__
from deluge.ui.gtkui.gtkui import GtkUI
File "/var/lib/python-support/python2.5/deluge/ui/gtkui/gtkui.py", line 52, in <module>
from torrentview import TorrentView
File "/var/lib/python-support/python2.5/deluge/ui/gtkui/torrentview.py", line 46, in <module>
import deluge.ui.gtkui.listview as listview
File "/var/lib/python-support/python2.5/deluge/ui/gtkui/listview.py", line 84
SyntaxError: Non-ASCII character '\xe2' in file /var/lib/python-support/python2.5/deluge/ui/gtkui/listview.py on line 84, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

Re: SyntaxError

Posted: Sun Nov 02, 2008 7:31 pm
by danii
that can be fixed by simply adding

Code: Select all

# -*- coding: utf-8 -*-
to the beginning of /var/lib/python-support/python2.5/deluge/ui/gtkui/listview.py

Re: SyntaxError

Posted: Fri Nov 07, 2008 2:54 am
by reference2myself
That fixed everything, thanks.