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: RESOLVED UPSTREAM    
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).
Comment 3 Antonio Rojas 2025-12-19 22:43:40 UTC
Fixed in sip
Comment 4 Pino Toscano 2025-12-20 14:07:02 UTC
(In reply to Antonio Rojas from comment #3)
> Fixed in sip

Links/references, please.
Comment 5 Dmitry Shachnev 2025-12-20 14:41:21 UTC
(In reply to Pino Toscano from comment #4)
> Links/references, please.

https://github.com/Python-SIP/sip/issues/99

Phil promised to release version 6.15.1 after he gets confirmation that the fix works. I hope it will happen soon, after that I will upload it to Debian.