Bug 2278646

Summary: krita fails to build with Python 3.13: error: ‘Py_SetPath’ was not declared in this scope; did you mean ‘Py_GetPath’
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: kritaAssignee: Neal Gompa <ngompa13>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fedora, kde-sig, ksurma, mhroncok, ngompa13, rdieter
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: krita-5.2.3-1.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-09-15 00:14:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2260875, 2244836, 2295696    

Description Karolina Surma 2024-05-02 14:35:50 UTC
krita fails to build with Python 3.13.0a6.

/builddir/build/BUILD/krita-5.2.2/plugins/extensions/pykrita/plugin/utilities.cpp: In static member function ‘static bool PyKrita::Python::setPath(const QStringList&)’:
/builddir/build/BUILD/krita-5.2.2/plugins/extensions/pykrita/plugin/utilities.cpp:423:9: error: ‘Py_SetPath’ was not declared in this scope; did you mean ‘Py_GetPath’?
  423 |         Py_SetPath(joinedPathsWChars.data());
      |         ^~~~~~~~~~
      |         Py_GetPath

https://docs.python.org/3.13/whatsnew/3.13.html

For the build logs, see:
https://download.copr.fedorainfracloud.org/results/@python/python3.13/fedora-rawhide-x86_64/07387823-krita/

For all our attempts to build python-qcustomplot-pyqt with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/krita/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Fedora Admin user for bugzilla script actions 2024-09-03 14:12:49 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 2 Fedora Admin user for bugzilla script actions 2024-09-04 01:45:24 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 3 Karolina Surma 2024-09-04 14:35:01 UTC
This package has failed to build with Python 3.13 so far. Fedora 41 is already in the Beta Freeze phase. What's your plan going forward? Will the package be fixed in time for the Final Freeze of Fedora 41 (planned on Oct 15th 2024)?
If you don't plan or can't fix the package before Fedora 41 goes into the Final Freeze phase, please retire the package. You can unretire it anytime during the Fedora 41 lifecycle - doing this now will simply ensure that we don't release Fedora with a broken package. Thank you!

Comment 4 Cristian Le 2024-09-11 14:45:34 UTC
There is a PR open: https://src.fedoraproject.org/rpms/krita/pull-request/14. Not sure why it didn't get merged before exiv2 was updated even.

Comment 5 Fedora Update System 2024-09-12 08:50:30 UTC
FEDORA-2024-2bdbc51459 (krita-5.2.3-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-2bdbc51459

Comment 6 Fedora Update System 2024-09-13 04:28:26 UTC
FEDORA-2024-2bdbc51459 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-2bdbc51459`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-2bdbc51459

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2024-09-15 00:14:46 UTC
FEDORA-2024-2bdbc51459 (krita-5.2.3-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Red Hat Bugzilla 2025-01-14 04:25:03 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days