Skip to content

community/py3-rdflib: add py3-html5lib to depends

mio requested to merge mio/aports:py3-rdflib into master

Fix ModuleNotFoundError when importing rdflib, found during a rebuild of zeitgeist on a 3.21 builder. The configure script in zeitgeist failed to detect rdflib during dependency check due to the python import rdflib command used in the check returning the error below, leading to build failure. Confirmed adding html5lib fixes compilation for zeitgeist.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.12/site-packages/rdflib/__init__.py", line 168, in <module>
    from rdflib.graph import ConjunctiveGraph, Dataset, Graph
  File "/usr/lib/python3.12/site-packages/rdflib/graph.py", line 283, in <module>
    import rdflib.namespace as namespace  # noqa: F401 # This is here because it is used in a docstring.
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/rdflib/namespace/__init__.py", line 83, in <module>
    from rdflib.term import URIRef, Variable, _is_valid_uri
  File "/usr/lib/python3.12/site-packages/rdflib/term.py", line 68, in <module>
    import html5lib
ModuleNotFoundError: No module named 'html5lib'

Merge request reports

Loading