run.py crashed with UnicodeEncodeError in decode()

Bug #363116 reported by Cristiano Malibu
48
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/subdownloader/run.py
InterpreterPath: /usr/bin/python2.6
NonfreeKernelModules: nvidia
Package: subdownloader 2.0.9.3-1
PackageArchitecture: all
ProcCmdline: python /usr/bin/subdownloader
ProcEnviron:
 LANG=pt_BR.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/subdownloader']
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

Revision history for this message
Cristiano Malibu (maliba) wrote :
tags: removed: need-duplicate-check
visibility: private → public
Changed in subdownloader (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Rogério Theodoro de Brito (rbrito) wrote :
Download full text (3.3 KiB)

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
/usr/lib/python2.6/dist-packages/kaa/metadata/disc/cdrom.py:37: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  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/subdownloader/gui/main.py", line 913, in onButtonFind
    self.SearchVideos(folder_path)
  File "/usr/share/subdownloader/gui/main.py", line 785, in SearchVideos
    videos_found,subs_found = FileScan.ScanFilesFolders(path,recursively = True,report_progress = self.progress)
  File "/usr/share/subdownloader/FileManagement/FileScan.py", line 58, in ScanFilesFolders
    videos_found, subs_found = ScanFolder(path,recursively = True,report_progress=report_progress, progress_end=progress_end)
  File "/usr/share/subdownloader/FileManagement/FileScan.py", line 119, in ScanFolder
    report_progress(count,_("Parsing sub: %s") % os.path.basename(filepath).decode(sys.getfilesystemencoding()))
  File "/usr/lib/python2.6/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
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...

Read more...

Revision history for this message
Csipak Attila (corphicks) wrote :

Ubuntu 12.04 beta2 + subdownloader 2.0.14 still produces the error

Revision history for this message
Alessandro Losavio (alo21) wrote :

could you tell the exact name of your cdrom and the path, please?

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
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for subdownloader (Ubuntu) because there has been no activity for 60 days.]

Changed in subdownloader (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for SubDownloader because there has been no activity for 60 days.]

Changed in subdownloader:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.