Skip to content

UnicodeDecodeError at <frozen codecs>:325: decode(): 'utf-8' codec can't decode byte 0x89 in posi tion 119: invalid start byte #654

@olafhering

Description

@olafhering

This happens with 0.10.0, while reading damaged CD#3.

With Python 3.6 on openSUSE Leap 15.3 the process of extracting gets past the point of the "release selection", and starts to very slowly extract the readable tracks.

With Python 3.13 on openSUSE Tumbleweed the code fails to handle obtained data, like this:

+ whipper -e success cd rip --prompt --max-retries 2 --output-directory ~/Music/ --keep-going
INFO:whipper.command.cd:using configured read offset 6
INFO:whipper.command.cd:checking device /dev/sr0
Reading TOC   0 %^MReading TOC   7 %^MReading TOC  15 %^MReading TOC  23 %^MReading TOC  30 %^MReading TOC  38 %^MReading TOC  46 %^MReading TOC  53 %^MReading TOC  61 %^MReading TOC  69 %^MReading TOC  76 %^MReading TOC  84 %^MReading TOC  92 %^MReading TOC 100 %^M                 ^MReading TOC 100 %^MTraceback (most recent call last):
Traceback (most recent call last):
  File "/usr/lib64/python3.13/site-packages/whipper/extern/task/task.py", line 523, in c
    callable_task(*args, **kwargs)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/site-packages/whipper/program/cdrdao.py", line 115, in _read
    self._done()
    ~~~~~~~~~~^^
  File "/usr/lib64/python3.13/site-packages/whipper/program/cdrdao.py", line 153, in _done
    self.toc.parse()
    ~~~~~~~~~~~~~~^^
  File "/usr/lib64/python3.13/site-packages/whipper/image/toc.py", line 203, in parse
    content = f.readlines()
  File "<frozen codecs>", line 325, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 119: invalid start byte
CRITICAL:whipper.command.main:exception UnicodeDecodeError at <frozen codecs>:325: decode(): 'utf-8' codec can't decode byte 0x89 in posi
tion 119: invalid start byte
Traceback (most recent call last):
  File "/usr/lib64/python3.13/site-packages/whipper/extern/task/task.py", line 523, in c
    callable_task(*args, **kwargs)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/site-packages/whipper/program/cdrdao.py", line 115, in _read
    self._done()
    ~~~~~~~~~~^^
  File "/usr/lib64/python3.13/site-packages/whipper/program/cdrdao.py", line 153, in _done
    self.toc.parse()
    ~~~~~~~~~~~~~~^^
  File "/usr/lib64/python3.13/site-packages/whipper/image/toc.py", line 203, in parse
    content = f.readlines()
  File "<frozen codecs>", line 325, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 119: invalid start byte

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions