Bug 2351388 - quodlibet fails to build with Python 3.14: TWatchedFileLibrary.test_watched_adding: AssertionError: Nothing in library despite watches on
Summary: quodlibet fails to build with Python 3.14: TWatchedFileLibrary.test_watched_a...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: quodlibet
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: hannes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2025-03-11 15:23 UTC by Karolina Surma
Modified: 2025-03-18 12:42 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-03-11 15:59:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2025-03-11 15:23:04 UTC
quodlibet fails to build with Python 3.14.0a5.

ERROR: failed tests/test_library_file.py::TWatchedFileLibrary::test_watched_adding:
	D: [0061.472] SongFileLibrary.__init__: Initializing <class 'quodlibet.library.song.SongFileLibrary'>: None
	D: [0061.472] SongFileLibrary.__init__: Initialised <song.SongFileLibrary object at 0x7fb0253504c0 (quodlibet+library+song+SongFileLibrary at 0x55c21cabf110)>
	W: [0061.557] PluggableOrders.__init__: No plugin manager found
	W: [0061.558] PluggableOrders.__init__: No plugin manager found
	D: [0061.560] qltk.playorder.__compose_order: Updating PlaylistModel order to <In Order>
	D: [0061.563] NullPlayer.go_to: Going to None
	D: [0061.563] PlaylistMux.go_to: Told to go to None
	D: [0061.563] PlaylistModel.go_to: Told to go to None
	D: [0061.651] Query.__init__: Creating query ''
	D: [0061.651] Query.__init__: Creating query ''
	D: [0061.655] qltk.window.__restore_state: Restore state
	D: [0061.655] qltk.window.__restore_position: Restore position
	D: [0061.655] qltk.window.__restore_size: Restore size
	D: [0061.655] SongFileLibrary.__init__: Initializing <class 'quodlibet.library.song.SongFileLibrary'>: None
	D: [0061.655] SongFileLibrary.__init__: Initialised <song.SongFileLibrary object at 0x7fb02513fcc0 (quodlibet+library+song+SongFileLibrary at 0x55c21ca0f750)>
	D: [0061.655] SongFileLibrary.start_watching: Setting up file watches on ['/tmp/QL-TEST-aha9o6jg']...
	D: [0061.657] Query.__init__: Creating query ''
	D: [0061.658] PlaylistModel.set: Filling view model with 0 songs.
	D: [0061.658] SongFileLibrary.rebuild: Rebuilding, force is False
	D: [0061.658] SongFileLibrary.rebuild: Removing 0, changing 0).
	D: [0061.658] SongFileLibrary.monitor_dir: Monitoring /tmp/QL-TEST-aha9o6jg
	D: [0061.659] SongFileLibrary.monitor_dir: Monitoring /tmp/QL-TEST-aha9o6jg/HOME-kkrivej2
	D: [0061.659] SongFileLibrary.monitor_dir: Monitoring /tmp/QL-TEST-aha9o6jg/tmpxxm62afy
	D: [0061.659] SongFileLibrary.monitor_dir: Monitoring /tmp/QL-TEST-aha9o6jg/tmpnprv6ri3
	D: [0061.659] SongFileLibrary.monitor_dir: Monitoring /tmp/QL-TEST-aha9o6jg/tmp9bw_sw_0
	D: [0061.659] SongFileLibrary.monitor_dir: Monitoring /tmp/QL-TEST-aha9o6jg/tmpx_fnaamp
	D: [0061.659] SongFileLibrary.monitor_dir: Monitoring /tmp/QL-TEST-aha9o6jg/tmpqyxfqy__
	D: [0061.659] SongFileLibrary.monitor_dir: Monitoring /tmp/QL-TEST-aha9o6jg/tmpfzp0i58f
	D: [0061.660] SongFileLibrary.monitor_dir: Monitoring /tmp/QL-TEST-aha9o6jg/HOME-kkrivej2/.config
	D: [0061.661] SongFileLibrary.monitor_dir: Monitoring /tmp/QL-TEST-aha9o6jg/HOME-kkrivej2/.config/quodlibet
	D: [0061.661] SongFileLibrary.monitor_dir: Monitoring /tmp/QL-TEST-aha9o6jg/HOME-kkrivej2/.config/quodlibet/lists
	D: [0061.661] SongFileLibrary.monitor_dir: Monitoring /tmp/QL-TEST-aha9o6jg/HOME-kkrivej2/.config/quodlibet/export
	D: [0061.661] SongFileLibrary.monitor_dir: Monitoring /tmp/QL-TEST-aha9o6jg/HOME-kkrivej2/.config/quodlibet/playlists
	D: [0061.661] SongFileLibrary.stop_watching: Removing watches on 0 dirs
	D: [0061.705] PlayQueue._write: Saving play queue after 0.2s
	D: [0061.706] qltk.queue.__destroy: Stopped autosave
	D: [0061.721] SongFileLibrary.stop_watching: Removing watches on 13 dirs


=================================== FAILURES ===================================
___________________ TWatchedFileLibrary.test_watched_adding ____________________
tests/test_library_file.py:213: in test_watched_adding
    assert self.library, f"Nothing in library despite watches on {watch_dirs}"
E   AssertionError: Nothing in library despite watches on dict_keys([PosixPath('/tmp/QL-TEST-aha9o6jg'), PosixPath('/tmp/QL-TEST-aha9o6jg/HOME-kkrivej2'), PosixPath('/tmp/QL-TEST-aha9o6jg/tmpxxm62afy'), PosixPath('/tmp/QL-TEST-aha9o6jg/tmpnprv6ri3'), PosixPath('/tmp/QL-TEST-aha9o6jg/tmp9bw_sw_0'), PosixPath('/tmp/QL-TEST-aha9o6jg/tmpx_fnaamp'), PosixPath('/tmp/QL-TEST-aha9o6jg/tmpqyxfqy__'), PosixPath('/tmp/QL-TEST-aha9o6jg/tmpfzp0i58f'), PosixPath('/tmp/QL-TEST-aha9o6jg/HOME-kkrivej2/.config'), PosixPath('/tmp/QL-TEST-aha9o6jg/HOME-kkrivej2/.config/quodlibet'), PosixPath('/tmp/QL-TEST-aha9o6jg/HOME-kkrivej2/.config/quodlibet/lists'), PosixPath('/tmp/QL-TEST-aha9o6jg/HOME-kkrivej2/.config/quodlibet/export'), PosixPath('/tmp/QL-TEST-aha9o6jg/HOME-kkrivej2/.config/quodlibet/playlists')])
E   assert <song.SongFileLibrary object at 0x7fb02513fcc0 (quodlibet+library+song+SongFileLibrary at 0x55c21ca0f750)>
E    +  where <song.SongFileLibrary object at 0x7fb02513fcc0 (quodlibet+library+song+SongFileLibrary at 0x55c21ca0f750)> = <tests.test_library_file.TWatchedFileLibrary testMethod=test_watched_adding>.library

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/fedora-rawhide-x86_64/08739194-quodlibet/

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

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/

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 Łukasz Patron 2025-03-11 15:59:25 UTC
Can't reproduce, but https://src.fedoraproject.org/rpms/quodlibet/c/5c682e59362b6735ac7d151ec202c8d8c0857189 probably fixes that.

Let me know if it still fails.


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