Deluge console add UnicodeDecodeError
Posted: Wed Oct 28, 2015 5:00 am
Sorry to bump this thread but I have the same problem with non-ascii named torrents. I've looked around pretty much found nothing to help me with this. So here I am.
Here some cli logs from my ubuntu thin client box:
locale setup:
My setup is pretty basic. I,ve got a watch folder that deluge scans and add torrents automaticaly. I've bypassed that process to provide you a little deluge-console cli output.
I can't be interely sure that it's my setup and not deluge that in cause but still It seem to be python related (I know its vague) but i can't really get that much further in my debuging steps without some more guidance.
Thank you for your time
p.s. I'll provide any info you are asking me to debug this further
Here some cli logs from my ubuntu thin client box:
Code: Select all
torrent@torrentbox:~$ deluge-console add /mnt/samba/library/Torrent/sickbeard-torrents/Les.Pires.Chauffards.Québécois.S01E09.FRENCH.720p.WEBRiP.H264.AAC-LCDS.mp4.torrent
'ascii' codec can't decode byte 0xc3 in position 78: ordinal not in range(128)
[ERROR ] 00:30:15 main:347 'ascii' codec can't decode byte 0xc3 in position 78: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/deluge/ui/console/main.py", line 344, in do_command
ret = self._commands[cmd].handle(*args, **options.__dict__)
File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/add.py", line 82, in handle
self.console.write("{!error!}%s doesn't exist!" % arg)
File "/usr/lib/python2.7/dist-packages/deluge/ui/console/main.py", line 292, in write
print colors.strip_colors(line.encode("utf-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 78: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/deluge/ui/console/main.py", line 344, in do_command
ret = self._commands[cmd].handle(*args, **options.__dict__)
File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/add.py", line 82, in handle
self.console.write("%s doesn't exist!" % arg)
File "/usr/lib/python2.7/dist-packages/deluge/ui/console/main.py", line 292, in write
print colors.strip_colors(line.encode("utf-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 78: ordinal not in range(128)
Code: Select all
torrent@torrentbox:~$ locale
LANG=en_CA.UTF-8
LANGUAGE=en_CA:en
LC_CTYPE="en_CA.UTF-8"
LC_NUMERIC="en_CA.UTF-8"
LC_TIME="en_CA.UTF-8"
LC_COLLATE="en_CA.UTF-8"
LC_MONETARY="en_CA.UTF-8"
LC_MESSAGES="en_CA.UTF-8"
LC_PAPER="en_CA.UTF-8"
LC_NAME="en_CA.UTF-8"
LC_ADDRESS="en_CA.UTF-8"
LC_TELEPHONE="en_CA.UTF-8"
LC_MEASUREMENT="en_CA.UTF-8"
LC_IDENTIFICATION="en_CA.UTF-8"
LC_ALL=en_CA.UTF-8
I can't be interely sure that it's my setup and not deluge that in cause but still It seem to be python related (I know its vague) but i can't really get that much further in my debuging steps without some more guidance.
Thank you for your time
p.s. I'll provide any info you are asking me to debug this further