Comment 4 for bug 1954889

Revision history for this message
Nathan Lewis (nathan-lewis) wrote :

Hi again.

While the bug fix worked for the given simple sample file, it still fails with a more complex source with the following error:

Traceback (most recent call last):
  File "runpy.py", line 194, in _run_module_as_main
  File "runpy.py", line 87, in _run_code
  File "site.py", line 82, in <module>
  File "site.py", line 77, in main
  File "site.py", line 49, in run_entry_point
  File "calibre\utils\ipc\worker.py", line 216, in main
  File "calibre\gui2\convert\gui_conversion.py", line 41, in gui_convert_override
  File "calibre\gui2\convert\gui_conversion.py", line 28, in gui_convert
  File "calibre\ebooks\conversion\plumber.py", line 1284, in run
  File "calibre\ebooks\conversion\plugins\pdb_output.py", line 61, in convert
  File "calibre\ebooks\pdb\ereader\writer.py", line 43, in write_content
  File "calibre\ebooks\pdb\ereader\writer.py", line 113, in _index_item
  File "re.py", line 210, in sub
TypeError: sequence item 0: expected a bytes-like object, str found

It looks like the same type of problem but elsewhere in the code.