- Python 3.11’s
pyexpat
extension was compiled against Expat ≥ 2.6, where the symbolXML_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