SUMMARY sphinx.util.pycompat.htmlscape was deprecated before python-sphinx 4.0 and removed with this 4.0 version STEPS TO REPRODUCE 1. build with before python-sphinx 4.0 is ok 2. build with python-sphinx error 3. OBSERVED RESULT Extension error: Could not import extension ecm (exception: cannot import name 'htmlescape' from 'sphinx.util.pycompat' (/usr/lib/python3.9/site-packages/sphinx/util/pycompat.py)) EXPECTED RESULT SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION
This is also an issue on macOS Homebrew: https://github.com/Homebrew/homebrew-core/pull/77039
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/121
solved in upstream, builds fine now, after this commit: https://github.com/KDE/extra-cmake-modules/commit/001f901ee297bb5346729a02e8920b7528e20717 thanks