sys-boot/woeusb-ng GUI does not work after emerge. ERROR = "ModuleNotFoundError: No module named 'wx'". Only work after emerge dev-python/wxpython.
That's already described as an optfeature. You should see a message telling you to install dev-python/wxpython:4.0 if you want GUI support. * Install additional packages for optional runtime features: * dev-python/wxpython:4.0 for GUI support * sys-boot/grub[grub_platforms_pc] for Legacy PC bootmode support
Would it make sense to add a "gui" USE flag to optionally require wxpython?
I don't think so. We generally don't use USE flags to control optional runtime dependencies. Either add it as an optfeature or make it a mandatory dependency for everyone (and the committer chose the former). We can make it a non-optional dependency if users prefer.
Perhaps it's just terminology, but yes, I would prefet it be called an optfeature controlled by a USE flag. For me, that better tracks why it's installed, so if I uninstall woeusb then wxpython can get depcleaned. I would guess then it would be an RDEPEND, as I understand things. Perhaps this bug can be changed to a wishlist to do that? I guess that is up to the OP and whoever is supporting the package.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=02d263c79f5993d0be50f3fb14c705ccc66cf372 commit 02d263c79f5993d0be50f3fb14c705ccc66cf372 Author: Takuya Wakazono <pastalian46@gmail.com> AuthorDate: 2024-10-01 11:18:00 +0000 Commit: Takuya Wakazono <pastalian46@gmail.com> CommitDate: 2024-10-01 11:18:00 +0000 sys-boot/woeusb-ng: add USE=gui Add a gui USE flag instead of using optfeature for two reasons: - Broken PYTHON_COMPAT (no maintainer, optfeature is easy to miss) - Some desktop profile users consider gui a core feature, and they don't expect the woeusbgui script to be non-functional Closes: https://bugs.gentoo.org/940445 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com> sys-boot/woeusb-ng/woeusb-ng-0.2.12.ebuild | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-)
Thank you.