Public bug reported:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/ebooklib/utils.py", line 28, in
parse_string
tree = etree.parse(io.BytesIO(s.encode('utf-8')))
File "src/lxml/etree.pyx", line 3424, in lxml.etree.parse
File "src/lxml/parser.pxi", line 1857, in lxml.etree._parseDocument
File "src/lxml/parser.pxi", line 1877, in lxml.etree._parseMemoryDocument
File "src/lxml/parser.pxi", line 1765, in lxml.etree._parseDoc
File "src/lxml/parser.pxi", line 1127, in lxml.etree._BaseParser._parseDoc
File "src/lxml/parser.pxi", line 601, in
lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 711, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 651, in lxml.etree._raiseParseError
File "<string>", line 0
lxml.etree.XMLSyntaxError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./novel2epub.py", line 162, in <module>
book.write(filename)
File "/home/gatoloko/Proyectos/Novel2Epub/libs/gs_epub.py", line 104, in
write
epub.write_epub(filename, self.book, {})
File "/usr/lib/python3/dist-packages/ebooklib/epub.py", line 1163, in
write_epub
epub.write()
File "/usr/lib/python3/dist-packages/ebooklib/epub.py", line 857, in write
self._write_items()
File "/usr/lib/python3/dist-packages/ebooklib/epub.py", line 848, in
_write_items
self.out.writestr('%s/%s' % (self.book.FOLDER_NAME, item.file_name),
item.get_content())
File "/usr/lib/python3/dist-packages/ebooklib/epub.py", line 298, in
get_content
tree = parse_string(super(EpubCoverHtml, self).get_content())
File "/usr/lib/python3/dist-packages/ebooklib/utils.py", line 30, in
parse_string
tree = etree.parse(io.BytesIO(s))
TypeError: a bytes-like object is required, not 'str'
While there are workaround for this specific bug, the package should be fixed.
This is a very very old bug, that was fixed upstream in 2016
(https://github.com/aerkalov/ebooklib/issues/92), but the packaged
release is even older.
The current package in ubuntu/debian is for release 0.15 from back in
2014, and has many bugs that have been fixed upstream.
There have been new releases in 2017, 2018 and 2019.
Can we get an update for this?
ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: python3-ebooklib 0.15~ds0-1
ProcVersionSignature: Ubuntu 4.19.0-13.14-generic 4.19.20
Uname: Linux 4.19.0-13-generic x86_64
ApportVersion: 2.20.10-0ubuntu21
Architecture: amd64
CurrentDesktop: XFCE
Date: Fri Feb 22 02:02:14 2019
InstallationDate: Installed on 2018-03-11 (347 days ago)
InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180306)
PackageArchitecture: all
SourcePackage: python-ebooklib
UpgradeStatus: Upgraded to disco on 2019-02-14 (7 days ago)
modified.conffile..etc.default.apport: [modified]
mtime.conffile..etc.default.apport: 2019-01-03T17:24:51.074493
** Affects: python-ebooklib (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug disco
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1817234
Title:
The "python3-ebooklib" package is outdated
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-ebooklib/+bug/1817234/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs