Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#79452 - [calibre] html5-parser and lxml are using different versions of libxml2
Attached to Project:
Arch Linux
Opened by Andrew Martens (mrtilo) - Wednesday, 23 August 2023, 09:44 GMT
Last edited by Christian Heusel (gromit) - Wednesday, 23 August 2023, 11:47 GMT
Opened by Andrew Martens (mrtilo) - Wednesday, 23 August 2023, 09:44 GMT
Last edited by Christian Heusel (gromit) - Wednesday, 23 August 2023, 11:47 GMT
|
DetailsDescription:
ebook-viewer is crashing with the following error: ``` ❯ ebook-viewer "MYFILE.epub" Traceback (most recent call last): File "/usr/bin/ebook-viewer", line 21, in <module> sys.exit(ebook_viewer()) ^^^^^^^^^^^^^^ File "/usr/lib/calibre/calibre/gui_launch.py", line 102, in wrapper return func(*a, **kw) ^^^^^^^^^^^^^^ File "/usr/lib/calibre/calibre/gui_launch.py", line 117, in ebook_viewer from calibre.gui2.viewer.main import main File "/usr/lib/calibre/calibre/gui2/viewer/main.py", line 15, in <module> from calibre.gui2.viewer.ui import EbookViewer, is_float File "/usr/lib/calibre/calibre/gui2/viewer/ui.py", line 29, in <module> from calibre.gui2.viewer.annotations import ( File "/usr/lib/calibre/calibre/gui2/viewer/annotations.py", line 11, in <module> from calibre.gui2.viewer.convert_book import update_book File "/usr/lib/calibre/calibre/gui2/viewer/convert_book.py", line 16, in <module> from calibre.srv.render_book import RENDER_VERSION File "/usr/lib/calibre/calibre/srv/render_book.py", line 25, in <module> from calibre.ebooks.oeb.polish.container import Container as ContainerBase File "/usr/lib/calibre/calibre/ebooks/oeb/polish/container.py", line 42, in <module> from calibre.ebooks.oeb.polish.parsing import parse as parse_html_tweak File "/usr/lib/calibre/calibre/ebooks/oeb/polish/parsing.py", line 10, in <module> import html5_parser File "/usr/lib/python3.11/site-packages/html5_parser/__init__.py", line 31, in <module> raise RuntimeError( RuntimeError: html5-parser and lxml are using different versions of libxml2. This happens commonly when using pip installed versions of lxml. Use pip install --no-binary lxml lxml instead. libxml2 versions: html5-parser: (2, 11, 5) != lxml: (2, 10, 3) ``` Perhaps python-lxml must be updated? Additional info: * package version(s): 6.25.0-1 |
This task depends upon
Closed by Christian Heusel (gromit)
Wednesday, 23 August 2023, 11:47 GMT
Reason for closing: Not a bug
Additional comments about closing: See comments
Wednesday, 23 August 2023, 11:47 GMT
Reason for closing: Not a bug
Additional comments about closing: See comments
calibre 6.25.0-1
python-lxml 4.9.2-3
python-html5-parser 0.4.11-1
Are you sure that you didnt pip install something at some point?
You could check like so (in a python shell) what is actually imported:
```
>>> import html5_parser
>>> print(html5_parser.__path__)
['/usr/lib/python3.11/site-packages/html5_parser']
>>> import lxml
>>> print(lxml.__path__)
['/usr/lib/python3.11/site-packages/lxml']
```
Note that I am using testing repos, but I didnt see that any of the packages here are in a testing repo.