Skip to content

Instantly share code, notes, and snippets.

SLE_15_SP4 pyexpat depedency issue

Error

  • Python 3.11’s pyexpat extension was compiled against Expat ≥ 2.6, where the symbol XML_SetReparseDeferralEnabled was first introduced. libexpat.github.io
  • The SLE 15 SP4 build root still ships Expat 2.4.x (see the distro changelog: “Update to 2.4.4 in SLE-15-SP4”). build.opensuse.org
  • At build time the loader finds the older libexpat.so.1, can’t resolve the new symbol, and the very first Python invocation (python3.11 -m pip wheel …) aborts:
ImportError: … pyexpat … undefined symbol: XML_SetReparseDeferralEnabled

Remove -W flag from docs Makefile

Error

[    2s] sphinx-build -b man -W -d build/doctrees   source build/man
[    3s] Running Sphinx v8.2.3
[    3s] WARNING: Calling get_html_theme_path is deprecated. If you are calling it to define html_theme_path, you are safe to remove that code.
[    3s] loading translations [en]... done
[    3s] making output directory... done