Bug 436818

Summary: build from git: error with python-sphinx 4.0 (because sphinx.util.pycompat.htmlscape is removed)
Product: [Frameworks and Libraries] extra-cmake-modules Reporter: desaparecido <luis.davila.pc>
Component: generalAssignee: ecm-bugs-null <ecm-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: asturm, yurii.kolesnykov
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description desaparecido 2021-05-09 11:14:50 UTC
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
Comment 1 Yurii Kolesnykov 2021-05-14 09:19:24 UTC
This is also an issue on macOS Homebrew: https://github.com/Homebrew/homebrew-core/pull/77039
Comment 2 Bug Janitor Service 2021-05-14 18:46:38 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/121
Comment 3 desaparecido 2021-05-17 15:06:13 UTC
solved in upstream, builds fine now, after this commit:

https://github.com/KDE/extra-cmake-modules/commit/001f901ee297bb5346729a02e8920b7528e20717

thanks