run.py crashed with UnicodeEncodeError in decode()
Bug #363116 reported by
Cristiano Malibu
This bug affects 8 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SubDownloader |
Expired
|
Undecided
|
Unassigned | ||
subdownloader (Ubuntu) |
Expired
|
Medium
|
Unassigned |
Bug Description
Binary package hint: subdownloader
Trying to download a subtitle in ubuntu 9.04 result in a crash
ProblemType: Crash
Architecture: i386
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/share/
InterpreterPath: /usr/bin/python2.6
NonfreeKernelMo
Package: subdownloader 2.0.9.3-1
PackageArchitec
ProcCmdline: python /usr/bin/
ProcEnviron:
LANG=pt_BR.UTF-8
SHELL=/bin/bash
PythonArgs: ['/usr/
SourcePackage: subdownloader
Title: run.py crashed with UnicodeEncodeError in decode()
Uname: Linux 2.6.28-11-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
tags: | removed: need-duplicate-check |
visibility: | private → public |
Changed in subdownloader (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in subdownloader: | |
milestone: | none → 2.0.17-1 |
Changed in subdownloader (Ubuntu): | |
status: | Triaged → In Progress |
assignee: | nobody → Alessandro Losavio (alo21) |
Changed in subdownloader (Ubuntu): | |
assignee: | Alessandro Losavio (alo21) → nobody |
status: | In Progress → Incomplete |
Changed in subdownloader: | |
milestone: | 2.0.17-1 → none |
status: | New → Incomplete |
To post a comment you must log in.
Hi.
I am also affected by this bug. For the record, I was trying to search for subtitles for a DVD dump (with mplayer -dumpstream etc) from a DVD that I own.
I got some messages on the console:
rbrito@ cruz:~/ Desktop/ torrents$ subdownloader python2. 6/dist- packages/ kaa/metadata/ disc/cdrom. py:37: DeprecationWarning: the md5 module is deprecated; use hashlib instead subdownloader/ gui/main. py", line 913, in onButtonFind SearchVideos( folder_ path) subdownloader/ gui/main. py", line 785, in SearchVideos found,subs_ found = FileScan. ScanFilesFolder s(path, recursively = True,report_ progress = self.progress) subdownloader/ FileManagement/ FileScan. py", line 58, in ScanFilesFolders path,recursivel y = True,report_ progress= report_ progress, progress_ end=progress_ end) subdownloader/ FileManagement/ FileScan. py", line 119, in ScanFolder progress( count,_ ("Parsing sub: %s") % os.path. basename( filepath) .decode( sys.getfilesyst emencoding( ))) python2. 6/encodings/ utf_8.py" , line 16, in decode utf_8_decode( input, errors, True)
/usr/lib/
import md5
[19:19] INFO::metadata # No Type found by Extension (.cue). Trying all parsers.
[19:19] INFO::metadata # Invalid header
[19:19] INFO::metadata # trying mpeg-pes scan
[19:19] INFO::metadata # No Type found by Extension (.cue). Trying all parsers.
[19:19] INFO::metadata # Invalid header
[19:19] INFO::metadata # trying mpeg-pes scan
[19:19] INFO::metadata # No Type found by Extension (.cue). Trying all parsers.
[19:19] INFO::metadata # Invalid header
[19:19] INFO::metadata # trying mpeg-pes scan
[19:19] INFO::metadata # No Type found by Extension (.cue). Trying all parsers.
[19:19] INFO::metadata # Invalid header
[19:19] INFO::metadata # trying mpeg-pes scan
[19:19] INFO::metadata # No Type found by Extension (.cue). Trying all parsers.
[19:19] INFO::metadata # Invalid header
[19:19] INFO::metadata # trying mpeg-pes scan
[19:19] INFO::metadata # No Type found by Extension (.cue). Trying all parsers.
[19:19] INFO::metadata # Invalid header
[19:19] INFO::metadata # trying mpeg-pes scan
[19:19] INFO::metadata # No Type found by Extension (.cue). Trying all parsers.
[19:19] INFO::metadata # Invalid header
[19:19] INFO::metadata # trying mpeg-pes scan
[19:19] INFO::metadata # No Type found by Extension (.cue). Trying all parsers.
[19:19] INFO::metadata # Invalid header
[19:19] INFO::metadata # trying mpeg-pes scan
[19:19] INFO::metadata # No Type found by Extension (.cue). Trying all parsers.
[19:19] INFO::metadata # Invalid header
[19:19] INFO::metadata # trying mpeg-pes scan
[19:19] INFO::metadata # No Type found by Extension (.vob). Trying all parsers.
[19:19] INFO::metadata # Invalid header
[19:19] INFO::metadata # No Type found by Extension (.vob). Trying all parsers.
[19:19] INFO::metadata # Invalid header
Traceback (most recent call last):
File "/usr/share/
self.
File "/usr/share/
videos_
File "/usr/share/
videos_found, subs_found = ScanFolder(
File "/usr/share/
report_
File "/usr/lib/
return codecs.
UnicodeDecodeError: 'utf8' codec can't decode byte 0xa2 in position 2: unexpected code byte
I did have a file that isn't UTF-8-encoded on the directory where the video dump was supplied.
Perhaps the code coul...