SyntaxError

General support for problems installing or using Deluge
Post Reply
reference2myself
New User
New User
Posts: 8
Joined: Sat Dec 15, 2007 5:01 pm

SyntaxError

Post 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
danii
Seeder
Seeder
Posts: 123
Joined: Tue Oct 23, 2007 10:29 pm
Location: Braga, Portugal

Re: SyntaxError

Post 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
reference2myself
New User
New User
Posts: 8
Joined: Sat Dec 15, 2007 5:01 pm

Re: SyntaxError

Post by reference2myself »

That fixed everything, thanks.
Post Reply