Yocto Meta Virtualization
 help / color / mirror / Atom feed
* [scarthgap][PATCH] virt-manager: update RDEPENDS
@ 2025-07-24  5:50 zachary.zet.li.chua
  2025-07-31 17:44 ` [meta-virtualization] " Bruce Ashfield
  0 siblings, 1 reply; 2+ messages in thread
From: zachary.zet.li.chua @ 2025-07-24  5:50 UTC (permalink / raw)
  To: meta-virtualization

From: "Chua, Zachary Zet Li" <zachary.zet.li.chua@intel.com>

Update RDEPENDS to fix following errors when run virt-manager:

|   File "/usr/share/virt-manager/virtManager/virtmanager.py", line 13, in <module>
|     import gi
| ModuleNotFoundError: No module named 'gi'

|   File "/usr/lib/python3.12/site-packages/gi/__init__.py", line 122, in require_version
|     raise ValueError('Namespace %s not available' % namespace)
| ValueError: Namespace LibvirtGLib not available

|   File "/usr/share/virt-manager/virtinst/xmlapi.py", line 7, in <module>
|     import libxml2
| ModuleNotFoundError: No module named 'libxml2'

|   File "/usr/share/virt-manager/virtinst/install/urlfetcher.py", line 16, in <module>
|      import requests
| ModuleNotFoundError: No module named 'requests'

Update RDEPENDS for package virt-manager-install which are required by
command virt-install. For example, the error is as follows when missing
virsh:

  Error launching ['virsh', '--connect', 'qemu:///system', 'console',
    'myvm']: [Errno 2] No such file or directory

Commits are taken from 'master' branch:
- 032415ef6b7d48ca34bb1d23cb8c194a38e0c369
- 238020e42060764e7d2aadbb43a12792ed8b7e27

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Chua, Zachary Zet Li <zachary.zet.li.chua@intel.com>
---
 .../virt-manager/virt-manager_4.1.0.bb           | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/recipes-extended/virt-manager/virt-manager_4.1.0.bb b/recipes-extended/virt-manager/virt-manager_4.1.0.bb
index a2395012..d752fd2b 100644
--- a/recipes-extended/virt-manager/virt-manager_4.1.0.bb
+++ b/recipes-extended/virt-manager/virt-manager_4.1.0.bb
@@ -28,8 +28,20 @@ RDEPENDS:${PN}-common += " \
   libosinfo \
 "
 
-RDEPENDS:${PN} = "${PN}-common"
-RDEPENDS:${PN}-install = "${PN}-common"
+RDEPENDS:${PN} = " \
+  ${PN}-common \
+  libvirt-glib \
+  libxml2-python \
+  python3-pygobject \
+  python3-requests \
+"
+RDEPENDS:${PN}-install = " \
+  ${PN}-common \
+  libvirt-virsh \
+  libxml2-python \
+  python3-pygobject \
+  python3-requests \
+"
 
 SETUPTOOLS_INSTALL_ARGS += "${PACKAGECONFIG_CONFARGS}"
 
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-07-31 17:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-24  5:50 [scarthgap][PATCH] virt-manager: update RDEPENDS zachary.zet.li.chua
2025-07-31 17:44 ` [meta-virtualization] " Bruce Ashfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox