Bug 513195

Summary: PyKrita build fails with SIP 6.15
Product: [Applications] krita Reporter: Antonio Rojas <arojas>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: REPORTED ---    
Severity: normal CC: marillat, mitya57, pino, rikmills
Priority: NOR    
Version First Reported In: 5.2.14   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Antonio Rojas 2025-12-10 22:14:44 UTC
PyKrita fails to build with sip 6.15 with

sip-generate.py: /build/krita/src/krita-5.2.14/plugins/extensions/pykrita/sip/krita/kritamod.sip: line 1: column 7: there is already a class or namespace in scope called 'Selection'
Comment 1 Pino Toscano 2025-12-12 10:05:42 UTC
Hi Dmitry,

since you have experience with SIP on Debian, would you have any suggestions/hints on this problem? Thanks!
Comment 2 Dmitry Shachnev 2025-12-12 19:29:54 UTC
Hi!

From a quick look, I could not find Krita doing anything obviously wrong.
This error may be an unwanted side effect of optimizations in https://github.com/Python-SIP/sip/pull/87, which touched the code for detecting and reporting clashes, which produces this warning.

I would suggest to report this issue to SIP, either to the mailing list (https://www.riverbankcomputing.com/mailman/listinfo/pyqt) or to GitHub issues (https://github.com/Python-SIP/sip/issues).