<div dir="ltr"><div><span style="font-family:trebuchet ms,sans-serif">I was able to fix this problem by deleting the folder /usr/share/virt-manager and then reinstalling virt-manager. Now I am able to launch virt-manager and work with it.</span></div><div><span style="font-family:trebuchet ms,sans-serif"><br></span></div><div><span style="font-family:trebuchet ms,sans-serif">Thanks for help</span><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 6, 2019 at 11:11 AM Aravind Kamble <<a href="mailto:arvind.kamble@gmail.com">arvind.kamble@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><span style="font-family:trebuchet ms,sans-serif">Hi Pavel,</span></div><div><span style="font-family:trebuchet ms,sans-serif"><br></span></div><div><span style="font-family:trebuchet ms,sans-serif">Thanks for the help. I re-installed virt-manager just as you suggested. It got installed. But when I try to launch it I am getting following error</span></div><div><span style="font-family:trebuchet ms,sans-serif"><br></span></div><div><span style="font-family:trebuchet ms,sans-serif">Error starting Virtual Machine Manager: cannot import name vmmDetails<br><br><span style="font-family:monospace">Traceback (most recent call last):<br>  File "/usr/share/virt-manager/virt-manager", line 291, in <module><br>    main()<br>  File "/usr/share/virt-manager/virt-</span></span></div><div><span style="font-family:trebuchet ms,sans-serif"><span style="font-family:monospace">manager", line 239, in main<br>    from virtManager.engine import vmmEngine<br>  File "/usr/share/virt-manager/virtManager/engine.py", line 41, in <module><br>    from .details import vmmDetails<br>ImportError: cannot import name vmmDetails</span></span></div><div><span style="font-family:trebuchet ms,sans-serif"><br></span></div><div><span style="font-family:trebuchet ms,sans-serif">Can you please help me fixing this?</span></div><div><span style="font-family:trebuchet ms,sans-serif"><br></span></div><div><span style="font-family:trebuchet ms,sans-serif"><br></span></div><div><span style="font-family:trebuchet ms,sans-serif">Thanks,</span></div><div><span style="font-family:trebuchet ms,sans-serif">Aravind</span><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 5, 2019 at 7:18 PM Pavel Hrdina <<a href="mailto:phrdina@redhat.com" target="_blank">phrdina@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Sep 05, 2019 at 04:53:23PM +0530, Aravind Kamble wrote:<br>
> Hi All,<br>
<br>
Hi,<br>
<br>
>  I am a new user of virt-manager. I installed Virtual Machine Manager<br>
> (1.5.0-1.el7)on CentOS 7 machine. I was able to launch the UI and work with<br>
> it properly.<br>
>  I saw latest version of virt-manager 2.2.1 on the site<br>
> <a href="https://virt-manager.org/" rel="noreferrer" target="_blank">https://virt-manager.org/</a> . I tried to install it by downloading from<br>
> <a href="https://virt-manager.org/download/sources/virt-manager/virt-manager-2.2.1.tar.gz" rel="noreferrer" target="_blank">https://virt-manager.org/download/sources/virt-manager/virt-manager-2.2.1.tar.gz</a><br>
>  I unzipped the file and executed the command "python3.6 setup.py install".<br>
> It tried installing but exited out after printing the message "running<br>
> install_egg_info". Please find the full output attached with this mail.<br>
<br>
My first future advice would be never install software into your OS in<br>
any way than distribution packager, in CentOS case yum/rpm.  It is not<br>
trivial to remove all the files installed by make install or setup.py<br>
install as the files are not tracked by anything.<br>
<br>
>  After this when I tried to launch Virtual Machine Manager from<br>
> Applications->System Tools-->Virtual Machine Manager, I don't see it<br>
> launched.<br>
>  If I try to launch it via command line I get the following<br>
> <br>
> <br>
> [root@Mordor aravind]# virt-manager<br>
> Traceback (most recent call last):<br>
>   File "/usr/share/virt-manager/virt-manager", line 19, in <module><br>
>     from virtinst import BuildConfig<br>
>   File "/usr/share/virt-manager/virtinst/__init__.py", line 42, in <module><br>
>     _set_libvirt_error_handler()<br>
>   File "/usr/share/virt-manager/virtinst/__init__.py", line 32, in<br>
> _set_libvirt_error_handler<br>
>     import libvirt<br>
> ModuleNotFoundError: No module named 'libvirt'<br>
> <br>
> <br>
> I do have libvirt installed.<br>
<br>
This means that there is missing python libvirt module.  There is only<br>
libvirt-python package which provides only python 2.7 files and I<br>
checked that there is no libvirt-python3.6 nor python3.6-libvirt in EPEL<br>
so you would have to build it by yourself.<br>
<br>
virt-manager-1.5.0 is python 2 only and since virt-manager-2.0 we<br>
switched to python3 only.<br>
<br>
> [root@Mordor aravind]# rpm -qa | grep libvirt<br>
> libvirt-daemon-driver-storage-gluster-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-daemon-config-network-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-daemon-driver-nodedev-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-gobject-1.0.0-1.el7.x86_64<br>
> libvirt-daemon-driver-qemu-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-client-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-glib-1.0.0-1.el7.x86_64<br>
> libvirt-daemon-driver-storage-core-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-gconfig-1.0.0-1.el7.x86_64<br>
> libvirt-daemon-driver-lxc-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-daemon-driver-storage-disk-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-daemon-driver-secret-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-daemon-driver-storage-mpath-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-daemon-kvm-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-daemon-driver-nwfilter-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-daemon-driver-storage-iscsi-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-bash-completion-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-daemon-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-daemon-config-nwfilter-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-daemon-driver-storage-scsi-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-daemon-driver-interface-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-python-4.5.0-1.el7.x86_64<br>
> libvirt-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-daemon-driver-network-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-daemon-driver-storage-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-libs-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-daemon-driver-storage-logical-4.5.0-10.el7_6.12.x86_64<br>
> libvirt-daemon-driver-storage-rbd-4.5.0-10.el7_6.12.x86_64<br>
> <br>
> Please help me restoring the working version of Virtual Machine or making<br>
> this new version work.<br>
<br>
To make the new virt-manager work you would have to build libvirt-python<br>
bindings for python3.6 by yourself and install it into your system which<br>
I would not recommend.<br>
<br>
To fix your old virt-manager you can try:<br>
<br>
    yum reinstall virt-install virt-manager virt-manager-common<br>
<br>
which should replace all required files to fix the distribution version.<br>
<br>
Pavel<br>
</blockquote></div>
</blockquote></div>