Hi again!

With another PDF it fails with ValueError:

=====
Traceback (most recent call last):
  File "/usr/bin/ebook-convert", line 20, in <module>
    sys.exit(main())
  File "/usr/lib/calibre/calibre/ebooks/conversion/cli.py", line 401, in main
    plumber.run()
  File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 1108, in 
run
    self.oeb = self.input_plugin(stream, self.opts,
  File "/usr/lib/calibre/calibre/customize/conversion.py", line 245, in __call__
    ret = self.convert(stream, options, file_ext,
  File "/usr/lib/calibre/calibre/ebooks/conversion/plugins/pdf_input.py", line 
73, in convert
    opf.render(opffile)
  File "/usr/lib/calibre/calibre/ebooks/metadata/opf2.py", line 1521, in render
    item = E.item(id=unicode_type(ref.id), href=href)
  File "src/lxml/builder.py", line 210, in lxml.builder.ElementMaker.__call__
  File "src/lxml/builder.py", line 195, in 
lxml.builder.ElementMaker.__init__.add_dict
  File "src/lxml/etree.pyx", line 2429, in lxml.etree._Attrib.__setitem__
  File "src/lxml/apihelpers.pxi", line 593, in lxml.etree._setAttributeValue
  File "src/lxml/apihelpers.pxi", line 1540, in lxml.etree._utf8
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes 
or control characters
=====

I am unsure if I can attach this PDF here, but I can send it privately if 
needed.

Thank you!

Best regards,
Nelson

Reply via email to