Bug 2379002

Summary: python-pyglet: FTBFS in Fedora Rawhide: AttributeError: module 'gi' has no attribute 'require_version'
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-pygletAssignee: Petr Viktorin <encukou>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: encukou, orion, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/python-pyglet
Whiteboard:
Fixed In Version: python-pyglet-2.0.10-8.fc44 python-pyglet-2.0.10-8.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-08-23 02:14:25 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: 2339432, 2373702    

Description Miro Hrončok 2025-07-09 12:47:14 UTC
Description of problem:
Package python-pyglet fails to build from source in Fedora Rawhide.


==================================== ERRORS ====================================
______________ ERROR collecting tests/unit/media/test_listener.py ______________
tests/unit/media/test_listener.py:7: in <module>
    from pyglet.media.drivers import pulse
pyglet/media/__init__.py:83: in <module>
    _add_default_codecs()
pyglet/media/codecs/__init__.py:53: in add_default_codecs
    from . import gstreamer
pyglet/media/codecs/gstreamer.py:16: in <module>
    gi.require_version('Gst', '1.0')
E   AttributeError: module 'gi' has no attribute 'require_version'


Version-Release number of selected component (if applicable):
2.0.10-5.fc43

Steps to Reproduce:
fedpkg build --scratch

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/python-pyglet

Comment 1 Fedora Update System 2025-08-23 02:09:56 UTC
FEDORA-2025-3570d2c7ad (python-pyglet-2.0.10-8.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-3570d2c7ad

Comment 2 Fedora Update System 2025-08-23 02:13:51 UTC
FEDORA-2025-4c630aaafb (python-pyglet-2.0.10-8.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-4c630aaafb

Comment 3 Fedora Update System 2025-08-23 02:14:25 UTC
FEDORA-2025-3570d2c7ad (python-pyglet-2.0.10-8.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fedora Update System 2025-08-23 02:17:25 UTC
FEDORA-2025-4c630aaafb (python-pyglet-2.0.10-8.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.