|
|
Thread Tools | Search this Thread |
12-26-2022, 11:19 AM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jul 2020
Device: Kindle Reader
|
TypeError: can only concatenate str (not "bytes") to str when using extraCss and TOC
When I call
Code:
ebook-convert tmp.md tmp.pdf --extra-css tmp.css --pdf-add-toc --level1-toc "//h:h1" Code:
# Headline Text Code:
Traceback (most recent call last): File "runpy.py", line 196, in _run_module_as_main File "runpy.py", line 86, in _run_code File "site.py", line 47, in <module> File "site.py", line 43, in main File "calibre/ebooks/conversion/cli.py", line 419, in main File "calibre/ebooks/conversion/plumber.py", line 1281, in run File "calibre/ebooks/conversion/plugins/pdf_output.py", line 183, in convert File "calibre/ebooks/conversion/plugins/pdf_output.py", line 249, in convert_text File "calibre/ebooks/pdf/html_writer.py", line 1163, in convert File "calibre/ebooks/pdf/html_writer.py", line 757, in add_pagenum_toc TypeError: can only concatenate str (not "bytes") to str My Calibre version is 6.10, system ist Ubuntu 22.4, fresh install. What can I do to use extra css and a TOC together? |
12-26-2022, 11:13 PM | #2 |
creator of calibre
Posts: 44,566
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
Advert | |
|
Tags |
css, ebook-convert, pdf, toc |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Can't use string pattern on bytes like object" on Sigil 0.8.7 | hantsaniala | Sigil | 5 | 02-22-2019 10:36 AM |
Help with error: TypeError: cannot concatenate 'str' and 'int' objects | Talayero | Devices | 3 | 01-24-2013 11:28 PM |
Touch Nook STR stuck on "Rooted Forever" screen | rosy621 | Nook Developer's Corner | 18 | 01-29-2012 07:16 AM |
Touch Does Nook STR have something like "hand tool" for reading PDFs? | AEA64 | Barnes & Noble NOOK | 6 | 12-24-2011 08:14 AM |
Touch How good is the "rooted" Nook STR at reading "technical" PDFs? | ibex333 | Nook Developer's Corner | 15 | 11-20-2011 12:16 AM |