#3246: rencode.loads() error
----------------------+------------------------------------
Reporter: pjlbyrne | Owner:
Type: bug | Status: new
Priority: major | Milestone: needs verified
Component: Unknown | Version: other (please specify)
Keywords: |
----------------------+------------------------------------
Built deluge from develop on archlinux. Install and start the daemon with
systemctl. Start deluge-console. The local daemon is not shown as
contactable.
The log shows:
14:47:38.112 [WARNING ][deluge.transfer :136 ] Failed to decompress (25
bytes) and load serialized data with rencode: loads() got an unexpected
keyword argument 'decode_utf8'
Running 'python2', importing rencode and calling loads() manually it does
accept the 'decode_utf8' keyword.
If I use inspect in transfer.py to show in the log the function signature
for loads() it says:
ArgSpec(args=['x'], varargs=None, keywords=None, defaults=None)
which does not match the behavior in the interactive session ie no
'decode_utf8' keyword param.
There is a bug against rencode on github which appears to be the same
issue:
https://github.com/aresch/rencode/issues/15
I note that the call to rencode.dumps() in transfer_message() in
transfer.py does not do any utf8 encoding, so I tried just removing the
'decode_utf8=True' arg, but I get:
9:29:29.127 [INFO ][deluge.core.rpcserver :171 ] Deluge Client
connection made from: 127.0.0.1:54980
19:29:29.155 [INFO ][deluge.core.rpcserver :197 ] Deluge client
disconnected: Connection to the other side was lost in a non-clean
fashion: Connection lost.
I may be unable to access the internet in the next week (China!).
Apologies for any delay in responding to updates on this.
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3246>
Deluge <http://deluge-torrent.org/>
Deluge Project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/deluge-dev.
For more options, visit https://groups.google.com/d/optout.