Use /usr/bin/python instead of python in /usr/bin/virt-manager

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I installed virt-manager on ubuntu. However, I have a custom python installed.

The original content of /usr/bin/virt-manager is the following.

exec python "/usr/share/virt-manager/virt-manager.py" "$@"

But it uses my customized python which does not have libvirt module
and I get the following error.

Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-manager.py", line 399, in <module>
    main()
  File "/usr/share/virt-manager/virt-manager.py", line 256, in main
    from virtManager import cli
  File "/usr/share/virt-manager/virtManager/cli.py", line 29, in <module>
    import libvirt
ImportError: No module named libvirt


I change it to the following and got the problem fixed.

exec /usr/bin/python "/usr/share/virt-manager/virt-manager.py" "$@"

Is it a bug of virt-manager? Should it be fixed? Thanks.

-- 
Regards,
Peng

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux