[virt-tools-list] No module named repository

Cole Robinson crobinso at redhat.com
Mon Apr 20 18:59:30 UTC 2015


On 04/20/2015 02:43 PM, Mani Devarajan wrote:
> Hello all,
>  I am trying to use virt-manager 1.1.0 with ubuntu 14.04. The apt-repo based
> virt-manager doesnt support port-group. So i need to use virt-manager 1.1.0.
> After install i am hitting the following error.
> I tried almost all the packages recommended for this problem, but still no
> luck. Any suggestions on this issue would be of great help. 
> 
> /usr/local/share/virt-manager/virt-install 
> 
> Traceback (most recent call last):
> 
>   File "/usr/local/share/virt-manager/virt-install", line 29, in <module>
> 
>     import virtinst
> 
>   File "/usr/local/share/virt-manager/virtinst/__init__.py", line 70, in <module>
> 
>     from virtinst.distroinstaller import DistroInstaller
> 
>   File "/usr/local/share/virt-manager/virtinst/distroinstaller.py", line 32,
> in <module>
> 
>     from virtinst import urlfetcher
> 
>   File "/usr/local/share/virt-manager/virtinst/urlfetcher.py", line 35, in
> <module>
> 
>     from virtinst import osdict
> 
>   File "/usr/local/share/virt-manager/virtinst/osdict.py", line 25, in <module>
> 
>     from gi.repository import Libosinfo as libosinfo
> 
> ImportError: No module named repository
> 

On fedora the package is called pygobjec3-base that provides
/usr/lib64/python2.7/site-packages/gi/repository . Not sure if that's the path
on ubuntu either, but if it is, maybe you can pass that to apt and it will
install what you need

- Cole




More information about the virt-tools-list mailing list