UnicodeEncodeError: 'utf-8' codec can't encode characters in position 6-7: surrogates not allowed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Invalid
|
Undecided
|
Unassigned | ||
calibre (Debian) |
New
|
Undecided
|
Unassigned |
Bug Description
While trying to convert a PDF to MOBI I am seeing this:
$ ebook-convert itil-etc.pdf itil-etc.mobi
1% Convertendo entrada para HTML...
InputFormatPlugin: PDF Input running
on /home/naoliv/
pdftohtml log:
Syntax Error: Expected the optional content group list, but wasn't able to find it, or it isn't an Array
Page-1
Page-2
Page-3
(...)
Page-171
Syntax Error: Expected the optional content group list, but wasn't able to find it, or it isn't an Array
Syntax Error: Expected the optional content group list, but wasn't able to find it, or it isn't an Array
Syntax Error: Expected the optional content group list, but wasn't able to find it, or it isn't an Array
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/usr/lib/
plumber.run()
File "/usr/lib/
self.oeb = self.input_
File "/usr/lib/
ret = self.convert(
File "/usr/lib/
opf.
File "/usr/lib/
item = E.item(
File "src/lxml/
File "src/lxml/
File "src/lxml/
File "src/lxml/
File "src/lxml/
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 6-7: surrogates not allowed
Calibre is Debian's 4.99.4+
"calibre --version" gives calibre 4.99.5
Python 2.7.18 and 3.8.3 are installed (I don't know if it's using 2 or 3)
locale has:
LANG=pt_BR.UTF-8
LANGUAGE=
LC_CTYPE=
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
Do you need any more info, please?
I do not provide support for people using distro provided packages. If you are using a distro provided package, uninstall it and install the official calibre binary from https:/ /calibre- ebook.com/ download_ linux and if you can reproduce the bug with that, re-open the ticket. Of course, if you are already using the official binary, apologies and feel free to re-open the ticket immediately :)
status invalid