Bug 2367738

Summary: mopidy fails to build with Python 3.14: RuntimeError: unable to get value
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: mopidyAssignee: Tobias <t-fedora>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fti-bugs, ksurma, mhroncok, t-fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2322407, 2339432, 2339435, 2371748    

Description Karolina Surma 2025-05-21 07:36:42 UTC
mopidy fails to build with Python 3.14.0b1.

The test run fails with multiple errors:

___________________ ERROR collecting tests/test_commands.py ____________________
tests/test_commands.py:8: in <module>
    from mopidy import commands
../BUILDROOT/usr/lib/python3.14/site-packages/mopidy/commands.py:24: in <module>
    from mopidy.audio import Audio, AudioProxy
../BUILDROOT/usr/lib/python3.14/site-packages/mopidy/audio/__init__.py:3: in <module>
    from .actor import Audio, AudioProxy
../BUILDROOT/usr/lib/python3.14/site-packages/mopidy/audio/actor.py:13: in <module>
    from mopidy.audio import tags as tags_lib
../BUILDROOT/usr/lib/python3.14/site-packages/mopidy/audio/tags.py:7: in <module>
    from mopidy.internal.gi import GLib, Gst
../BUILDROOT/usr/lib/python3.14/site-packages/mopidy/internal/gi.py:28: in <module>
    from gi.repository import GLib, GObject, Gst, GstPbutils
<frozen importlib._bootstrap>:1371: in _find_and_load
    ???
<frozen importlib._bootstrap>:1342: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:924: in _load_unlocked
    ???
<frozen importlib._bootstrap>:816: in module_from_spec
    ???
/usr/lib64/python3.14/site-packages/gi/importer.py:147: in create_module
    dynamic_module = load_overrides(introspection_module)
/usr/lib64/python3.14/site-packages/gi/overrides/__init__.py:98: in load_overrides
    override_mod = importlib.import_module(override_package_name)
/usr/lib64/python3.14/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
/usr/lib64/python3.14/site-packages/gi/overrides/Gst.py:798: in <module>
    real_functions = [o for o in inspect.getmembers(Gst) if isinstance(o[1], type(Gst.init))]
/usr/lib64/python3.14/inspect.py:522: in getmembers
    return _getmembers(object, predicate, getattr)
/usr/lib64/python3.14/inspect.py:500: in _getmembers
    value = getter(object, key)
/usr/lib64/python3.14/site-packages/gi/module.py:204: in __getattr__
    wrapper = info.get_value()
E   RuntimeError: unable to get value

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14-b1/fedora-rawhide-x86_64/09068878-mopidy/

For all our attempts to build mopidy with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/package/mopidy/

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

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
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 2025-06-11 15:54:24 UTC
*** Bug 2371747 has been marked as a duplicate of this bug. ***