UnicodeDecodeError: 'utf8' codec can't decode bytes

Bug #329818 reported by Marco Rodrigues
2
Affects Status Importance Assigned to Milestone
Entertainer Media Center
Triaged
Low
Unassigned

Bug Description

The current version on repository give me this error:

TESTCASE:
1- Run entertainer
2- Don't touch it and wait... after some time this traceback comes (it comes from backend while scanning?)

$ entertainer
Entertainer backend starting...
Exception in thread IndexerThread:
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.5/site-packages/entertainerlib/backend/components/mediacache/indexer_thread.py", line 68, in run
    cache.addDirectory(element)
  File "/usr/lib/python2.5/site-packages/entertainerlib/backend/components/mediacache/music_cache.py", line 129, in addDirectory
    self.addFile(os.path.join(root, name))
  File "/usr/lib/python2.5/site-packages/entertainerlib/backend/components/mediacache/music_cache.py", line 65, in addFile
    filename = filename.encode('utf8')
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 56-58: invalid data

Linux Distribution: Ubuntu Intrepid
Processor (32/64-bit): 32-bit
Python Version: 2.5.2

Revision history for this message
Paul Hummer (rockstar) wrote :

This has to do with your specific environment. Entertainer needs to deal with it better, yes, but I don't think we can cover all the encodings. Maybe we should just standardize on unicode for everything.

Changed in entertainer:
importance: Undecided → Low
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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