calibre 7.6.0 / python error
When I want to edit some books, I get the following error. Unfortunately, I don't know how to fix this error. Perhaps someone knows the solution?
TypeError:sequence item 1: expected str instance, bytes found
calibre, version 7.6.0
FEHLER: Unbehandelter Ausnahmefehler: <b>TypeError</b>:sequence item 1: expected str instance, bytes found
calibre 7.6 embedded-python: False
Linux-6.8.0-107045-tuxedo-x86_64-with-glibc2.39 Linux ('64bit', 'ELF')
('Linux', '6.8.0-107045-tuxedo', '#45tux1 SMP PREEMPT_DYNAMIC Thu Sep 12 19:21:40 UTC 2024')
Python 3.12.3
Interface language: de
EXE path: /usr/bin/python3.12
Successfully initialized third party plugins: Find Duplicates (1, 10, 9)
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/__init__.py", line 755, in dispatch
self.func(*args, **kwargs)
File "/usr/lib/calibre/calibre/gui2/tweak_book/job.py", line 84, in job_done
callback(job)
File "/usr/lib/calibre/calibre/gui2/tweak_book/boss.py", line 381, in book_opened
self.current_metadata = self.gui.current_metadata = container.mi
^^^^^^^^^^^^
File "/usr/lib/calibre/calibre/ebooks/oeb/polish/container.py", line 649, in mi
mi = self.serialize_item(self.opf_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/calibre/calibre/ebooks/oeb/polish/container.py", line 1009, in serialize_item
data = re.sub(br'(<[/]{0,1})opf:', r'\1', data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/re/__init__.py", line 186, in sub
return _compile(pattern, flags).sub(repl, string, count)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: sequence item 1: expected str instance, bytes found
Many thanks in advance.
|