12:36:05 [INFO ][deluge.core.torrentmanager :806 ] Loading
torrent state: /home/raduetsya/.config/deluge/state/torrents.state
12:36:05 [ERROR ][deluge.component :132 ] [Failure
instance: Traceback: <class 'UnicodeDecodeError'>: 'ascii' codec can't
decode byte 0xd0 in pos
...
}}}
After the workaround below, all the torrents are back.
{{{
--- torrentmanager.py.bak 2019-07-07 14:40:56.551872384 +0700
+++ torrentmanager.py 2019-07-07 14:26:52.176421350 +0700
@@ -809,7 +809,7 @@
try:
with open(filepath, 'rb') as _file:
- state = pickle.load(_file)
+ state = pickle.load(_file, encoding='latin1')
except (IOError, EOFError, pickle.UnpicklingError) as ex:
message = 'Unable to load {}: {}'.format(filepath, ex)
log.error(message)
}}}
Client: 2.0.3
libtorrent: 1.1.12.0
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3285>
Deluge <https://deluge-torrent.org/>
Deluge Project
Comment (by youngian):
I had the same issue as the OP. Same client versions, Arch Linux, Python
3.7.3. Can confirm that the included patch resolves the issue.
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3285#comment:1>
* cc: ian@… (added)
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3285#comment:2>
Comment (by Olivier):
In my case, it needed to be
{{{
state = pickle.load(_file, encoding='utf-8')
}}}
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3285#comment:3>
Comment (by yangsheng6810):
I can confirm the patch by @Olivier. Arch Linux, python 3.7.3, deluge
2.0.3-1.
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3285#comment:4>
Comment (by Phidica):
I also confirm the patch by @Olivier, preferring the 'utf-8' encoding.
Upgrading from Fedora 30 deluge-1.3.15-12 to Fedora 31 deluge-2.0.3-5.
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3285#comment:5>
Comment (by jools772):
Why is python 3.7 using ascii encoding?
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3285#comment:6>