Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950567 - media-sound/picard-2.13.3 - premature deprecation of PyQt5 runtime dependency
Summary: media-sound/picard-2.13.3 - premature deprecation of PyQt5 runtime dependency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Sound Team
URL: https://github.com/metabrainz/picard/...
Whiteboard:
Keywords:
Depends on:
Blocks: 949715
  Show dependency tree
 
Reported: 2025-03-03 23:48 UTC by Scott Furry
Modified: 2025-04-18 22:28 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Furry 2025-03-03 23:48:48 UTC
2.x version package, in its current form, will silently fail every time. When started from command line, package will report failure due to missing PyQt5 runtime dependency. Ebuild is mistakenly declaring PyQt6 as usable on package 2.x series.


Reproducible: Always




Had removed PyQt5 recently as part of depclean, as no package reported as requiring.

However, found media-sound/picard-2.13.3 will repeatedly fail. Execution from command line reported the following error:
-----
$ picard
Traceback (most recent call last):
  File "/usr/bin/picard", line 4, in <module>
    from picard.tagger import main
  File "/usr/lib/python3.13/site-packages/picard/tagger.py", line 63, in <module>
    from PyQt5 import (
    ...<3 lines>...
    )
ModuleNotFoundError: No module named 'PyQt5'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/picard", line 10, in <module>
    crash_handler()
    ~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/picard/__init__.py", line 111, in crash_handler
    from PyQt5.QtCore import (
    ...<3 lines>...
    )
ModuleNotFoundError: No module named 'PyQt5'

-----

Upstream is moving code base to using PyQt6 (see upstream bug PICARD-2331 https://github.com/metabrainz/picard/pull/2154). However, implementation is labelled as intended for 'picard 3.x' release. PyQt6 references only exist in master branch. All picard 2.x branches still rely on PyQt5.

Other distributions still report PyQt5 as a requirement for media-sound/picard-2.13.3.
(debian - https://sources.debian.org/src/picard/2.13.3-1/requirements.txt/;
arch - https://archlinux.org/packages/extra/x86_64/picard/;
fedora(rawhide) - https://packages.fedoraproject.org/pkgs/picard/picard/fedora-rawhide.html#dependencies)

Package utilizing PyQt6 is available only when employing upstream 'master' branch (i.e. using 9999 ebuild).

Usage of PyQt6 on package 2.x series is premature and will fail.
Comment 1 Larry the Git Cow gentoo-dev 2025-04-18 22:28:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=960c56972c394c5b75cbe322b6c21265c7017fb6

commit 960c56972c394c5b75cbe322b6c21265c7017fb6
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2025-04-18 22:27:48 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2025-04-18 22:27:48 +0000

    media-sound/picard: drop 2.13.3
    
    Closes: https://bugs.gentoo.org/950567
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-sound/picard/picard-2.13.3.ebuild | 64 ---------------------------------
 1 file changed, 64 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=302f9a11d4740ada4961cb5fb122fbb26674d8bc

commit 302f9a11d4740ada4961cb5fb122fbb26674d8bc
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2025-04-18 22:25:45 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2025-04-18 22:26:25 +0000

    media-sound/picard: Fix 2.13.3 dependencies (Qt5-based, not Qt6)
    
    Bug: https://bugs.gentoo.org/949715
    Closes: https://bugs.gentoo.org/950567
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-sound/picard/picard-2.13.3-r1.ebuild | 65 ++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)