Package: deluge-common
Version: 2.0.3-3.1
Severity: normal
Dear maintainer,
Running deluge after package update leads to following error traceback:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/twisted/internet/_glibbase.py",
line 333, in _simulate
self.runUntilCurrent()
File "/usr/lib/python3/dist-packages/twisted/internet/base.py", line
913, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line
460, in callback
self._startRunCallbacks(result)
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line
568, in _startRunCallbacks
self._runCallbacks()
--- <exception caught here> ---
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line
654, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/lib/python3/dist-packages/twisted/internet/task.py", line
866, in <lambda>
d.addCallback(lambda ignored: callable(*args, **kw))
File "/usr/lib/python3/dist-packages/deluge/core/torrentmanager.py",
line 239, in start
self.load_state()
File "/usr/lib/python3/dist-packages/deluge/core/torrentmanager.py",
line 832, in load_state
state = self.open_state()
File "/usr/lib/python3/dist-packages/deluge/core/torrentmanager.py",
line 812, in open_state
state = pickle.load(_file)
builtins.UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in
position 17: ordinal not in range(128)
Deluge starts normally, but without any previously added torrents.
Seems like this is known bug:
https://github.com/deluge-torrent/deluge/commit/23b3f144fce3424ae874d54a659cb7b8dd624ade
Passing encoding='utf8' parameter to pickle.load function fixes problem.