Summary: | app-emulation/virt-manager-2.0.0 - Traceback (most recent call last): File "/usr/share/virt-manager/virt-manager", line 16, in <module> import gi ImportError: No module named 'gi' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Liam Dennehy <liam> |
Component: | Current packages | Assignee: | Virtualization Team <virtualization> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | chrootsu, luca.chiampo |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge --info
emerge --info |
Description
Liam Dennehy
2019-01-30 12:02:54 UTC
Created attachment 563260 [details]
emerge --info
Why do I look, search and poke, give up and decide it's time to file a bug... Only to then do a fraction of the effort and find the cause? virt-manager-2.0.0 has USE flag python_single_target_python3_6, while system (eselect) is set to python3.4 - noticed when dumping files for pygobject package only listing 3.6 gi module. "/usr/bin/python3.6 /usr/share/virt-manager/virt-manager" succeeds. - Is it useful for a package to explicitly USE python3.6, but the launch script still uses "/usr/bin/env python3" so could incorrectly match the system setting? - Should the launch script not explicitly invoke the python version it was built for, instead of forcing the user to make a system-wide choice towards that version? I have the same problem. Created attachment 563768 [details]
emerge --info
Confirmed that calling python3.6 manually per Liam works as a workaround on my affected machine. Same problem for me. Also for me after @world update Also for me "/usr/bin/python3.6 /usr/share/virt-manager/virt-manager" succeeds. I have this issue with a separately installed Anaconda instance that is picked up by the `#/usr/bin/env python3` shebang used in all virt-manager scripts. Is there a policy somewhere on how the shebang for scripts should look like in Gentoo? The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3060d4866a3dca772688ecd150aae9c23b73b5d0 commit 3060d4866a3dca772688ecd150aae9c23b73b5d0 Author: Matthias Maier <tamiko@gentoo.org> AuthorDate: 2019-07-01 16:49:31 +0000 Commit: Matthias Maier <tamiko@gentoo.org> CommitDate: 2019-07-01 16:59:26 +0000 app-emulation/virt-manager: fix shebang Closes: https://bugs.gentoo.org/676902 Package-Manager: Portage-2.3.68, Repoman-2.3.16 Signed-off-by: Matthias Maier <tamiko@gentoo.org> app-emulation/virt-manager/virt-manager-2.2.0.ebuild | 3 ++- app-emulation/virt-manager/virt-manager-9999.ebuild | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) |