Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 931957 - net-analyzer/nagstamon-3.14.0 fails at run time
Summary: net-analyzer/nagstamon-3.14.0 fails at run time
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Hans de Graaff
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-15 17:35 UTC by Zentoo
Modified: 2024-05-19 07:16 UTC (History)
1 user (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 Zentoo 2024-05-15 17:35:07 UTC
net-analyzer/nagstamon/nagstamon-3.14.0 fails at run time if dev-python/PyQt5[gui,multimedia,svg,widgets] exists and dev-python/PyQt6 exists without appropriate USE flags.

Reproducible: Always

Steps to Reproduce:
launch nagstamon

Actual Results:  
$ nagstamon
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.11/nagstamon", line 45, in <module>
    from Nagstamon.QUI import (APP,
  File "/usr/lib/python3.11/site-packages/Nagstamon/QUI/__init__.py", line 35, in <module>
    from .qt import *
  File "/usr/lib/python3.11/site-packages/Nagstamon/QUI/qt.py", line 209, in <module>
    from PyQt6.QtMultimedia import QAudioOutput, \
ModuleNotFoundError: No module named 'PyQt6.QtMultimedia'

Expected Results:  
nagstamon lauched and no error related to PyQt6.QtMultimedia

dev-python/PyQt6 dbus gui -multimedia network opengl printsupport sql ssl svg webchannel widgets xml 

dev-python/PyQt5 dbus declarative gui multimedia network opengl printsupport ssl svg webchannel widgets

Solved by adding multimedia USE flag to dev-python/PyQt6 but portage doesn't have anticipated the issue because it have matched the USE flags of dev-python/PyQt5 while dev-python/PyQt6 ones didn't matched:

    || (
       dev-python/PyQt6[gui,multimedia,svg,widgets,${PYTHON_USEDEP}]
       dev-python/PyQt5[gui,multimedia,svg,widgets,${PYTHON_USEDEP}]
       )
Comment 1 Hans de Graaff gentoo-dev Security 2024-05-19 05:53:13 UTC
Other qt packages use a qt6 USE flag to make it explicit if you want to use Qt6 or Qt5, that would avoid this issue. I'll have a look at it.
Comment 2 Larry the Git Cow gentoo-dev 2024-05-19 07:16:14 UTC
The bug has been closed via the following commit(s):

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

commit e277a262ecb32e193bce510ec4f0b89a1f2154bb
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2024-05-19 07:14:51 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2024-05-19 07:16:03 +0000

    net-analyzer/nagstamon: use qt6 USE flag
    
    This also drops x86 since that does not have PyQt6 keyworded.
    
    Closes: https://bugs.gentoo.org/931957
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 net-analyzer/nagstamon/nagstamon-3.14.0-r1.ebuild | 72 +++++++++++++++++++++++
 1 file changed, 72 insertions(+)