Bug 2440690 - python-exiv2 fails to build with Python 3.15: error: ‘PyWeakref_GetObject’ was not declared in this scope; did you mean ‘PyWeakref_GetRef’?
Summary: python-exiv2 fails to build with Python 3.15: error: ‘PyWeakref_GetObject’ wa...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-exiv2
Version: 45
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ankur Sinha (FranciscoD)
QA Contact:
URL:
Whiteboard:
: 2485861 (view as bug list)
Depends On:
Blocks: PYTHON3.15 F45FTBFS F45FailsToInstall F46FTBFS, RAWHIDEFTBFS F46FailsToInstall, RAWHIDEFailsToInstall
TreeView+ depends on / blocked
 
Reported: 2026-02-18 16:49 UTC by Karolina Surma
Modified: 2026-08-27 00:54 UTC (History)
4 users (show)

Fixed In Version: python-exiv2-0.19.0-2.fc46 python-exiv2-0.19.0-2.fc45 python-exiv2-0.19.0-2.fc44
Clone Of:
Environment:
Last Closed: 2026-08-18 09:53:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github jim-easterbrook python-exiv2 issues 64 0 None open Build failures on python 3.15 2026-06-19 23:56:30 UTC

Description Karolina Surma 2026-02-18 16:49:46 UTC
python-exiv2 fails to build with Python 3.15.0a6.

  src/swig-0_28_7/xmp_wrap.cxx: In function ‘void _process_list(PyObject*, bool, Exiv2::XmpData::iterator*, Exiv2::XmpData::iterator*)’:
  src/swig-0_28_7/xmp_wrap.cxx:5790:18: error: ‘PyWeakref_GetObject’ was not declared in this scope; did you mean ‘PyWeakref_GetRef’?
   5790 |         py_ptr = PyWeakref_GetObject(PyList_GetItem(list, idx-1));
        |                  ^~~~~~~~~~~~~~~~~~~
        |                  PyWeakref_GetRef

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/10144583-python-exiv2/

For all our attempts to build python-exiv2 with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/python-exiv2/

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.15:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
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 Karolina Surma 2026-06-06 18:22:39 UTC
*** Bug 2485861 has been marked as a duplicate of this bug. ***

Comment 2 Fedora Fails To Install 2026-06-14 08:30:38 UTC
Hello,

Please note that this comment was generated automatically by https://forge.fedoraproject.org/releng/tooling/src/branch/main/release-process/bug-filing/follow-policy/follow_policy.py
If you feel that this output has mistakes, please open an issue at https://forge.fedoraproject.org/releng/tickets/issues

This package fails to install and maintainers are advised to take one of the following actions:

 - Fix this bug and close this bugzilla once the update makes it to the repository.
   (The same script that posted this comment will eventually close this bugzilla
   when the fixed package reaches the repository, so you don't have to worry about it.)

or

 - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet.

or

 - Orphan the package if you no longer plan to maintain it.


If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue.
This package may be orphaned in 7+ weeks.
This is the first reminder (step 3) from the policy.

Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug.

Comment 3 Ankur Sinha (FranciscoD) 2026-06-19 23:56:31 UTC
Reported upstream. Waiting on a fix.

Comment 4 Aoife Moloney 2026-08-17 14:13:19 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.

Comment 5 Fedora Update System 2026-08-18 09:50:36 UTC
FEDORA-2026-8d63fe765a (python-exiv2-0.19.0-2.fc46) has been submitted as an update to Fedora 46.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-8d63fe765a

Comment 6 Fedora Update System 2026-08-18 09:53:25 UTC
FEDORA-2026-8d63fe765a (python-exiv2-0.19.0-2.fc46) has been pushed to the Fedora 46 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Fedora Update System 2026-08-18 10:29:49 UTC
FEDORA-2026-92b6af1453 (python-exiv2-0.19.0-2.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-92b6af1453

Comment 8 Fedora Update System 2026-08-18 10:32:24 UTC
FEDORA-2026-92b6af1453 (python-exiv2-0.19.0-2.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2026-08-18 13:10:12 UTC
FEDORA-2026-d7d2263e24 (python-exiv2-0.19.0-2.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-d7d2263e24

Comment 10 Fedora Update System 2026-08-19 01:39:49 UTC
FEDORA-2026-d7d2263e24 has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-d7d2263e24`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-d7d2263e24

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

Comment 11 Fedora Update System 2026-08-27 00:54:41 UTC
FEDORA-2026-d7d2263e24 (python-exiv2-0.19.0-2.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.