[virt-tools-list] virt-manager reporting wrong virtinst version and refuse to start

Cole Robinson crobinso at redhat.com
Tue Feb 15 19:12:52 UTC 2011


On 02/15/2011 01:59 PM, Bruno Lamps wrote:
> Hi,
> 
> There's a thread with this same title, in this list, from august 2010. Link:
> https://www.redhat.com/archives/virt-tools-list/2010-August/msg00075.html
> 
> I got this same problem. I'm running Ubuntu 10.04 x64. I made some tests with
> virt-manager 0.8.2, installed from ubuntu repositories, and then downloaded
> the newest virt-manager and virt-inst from virt-manager website. Compiled both
> sources as usual (opening INSTALL and following the instructions), but got
> that error when trying to launch virt-manager:
> 
>     Erro ao iniciar o Gerenciador de Máquina Virtual: virtinst version 0.500.1
>     is too old.
> 
>     virt-manager requires the python-virtinst library version 0.500.5 or
>     greater. This can be downloaded at:
> 
>     http://virt-manager.org/download.html
> 
>     Traceback (most recent call last):
>       File "/usr/local/share/virt-manager/virt-manager.py", line 455, in <module>
>         main()
>       File "/usr/local/share/virt-manager/virt-manager.py", line 370, in main
>         "\n\n" + msg)
>     RuntimeError: virtinst version 0.500.1 is too old.
> 
>     virt-manager requires the python-virtinst library version 0.500.5 or
>     greater. This can be downloaded at:
> 
>     http://virt-manager.org/download.html
> 
> 
> The output of
> 
> python -c 'import virtinst; print virtinst'
> 
> command is:
> 
> lamps at ubunteira:/opt/virtinst-0.500.5$ python -c 'import virtinst; print virtinst'
> <module 'virtinst' from 'virtinst/__init__.py'>
> 

Please show the output of that command when run from outside the virtinst
directory.

> and the output for
> 
> sudo python setup.py install
> 
> is:
> 
> lamps at ubunteira:/opt/virtinst-0.500.5$ sudo python setup.py install
> [sudo] password for lamps:
> running install
> running build
> Building build/po/ja/virtinst.mo from ja.po
> Building build/po/it/virtinst.mo from it.po
> Building build/po/nl/virtinst.mo from nl.po
> Building build/po/ru/virtinst.mo from ru.po
> Building build/po/sr at latin/virtinst.mo from sr at latin.po
> Building build/po/es/virtinst.mo from es.po
> Building build/po/zh_CN/virtinst.mo from zh_CN.po
> Building build/po/sr/virtinst.mo from sr.po
> Building build/po/uk/virtinst.mo from uk.po
> Building build/po/fr/virtinst.mo from fr.po
> Building build/po/pt_BR/virtinst.mo from pt_BR.po
> Building build/po/pl/virtinst.mo from pl.po
> running build_py
> package init file 'virtconv/parsers/__init__.py' not found (or not a regular file)
> package init file 'virtconv/parsers/__init__.py' not found (or not a regular file)
> running build_scripts
> running install_lib
> copying build/lib.linux-x86_64-2.6/virtconv/__init__.py ->
> /usr/local/lib/python2.6/dist-packages/virtconv
> copying build/lib.linux-x86_64-2.6/virtinst/__init__.py ->
> /usr/local/lib/python2.6/dist-packages/virtinst
> byte-compiling /usr/local/lib/python2.6/dist-packages/virtconv/__init__.py to
> __init__.pyc
> byte-compiling /usr/local/lib/python2.6/dist-packages/virtinst/__init__.py to
> __init__.pyc
> running install_scripts
> changing mode of /usr/local/bin/virt-install to 755
> changing mode of /usr/local/bin/virt-image to 755
> changing mode of /usr/local/bin/virt-convert to 755
> changing mode of /usr/local/bin/virt-clone to 755
> running install_data
> Installing build/po/pl/virtinst.mo to share/locale/pl/LC_MESSAGES/
> Installing build/po/pt_BR/virtinst.mo to share/locale/pt_BR/LC_MESSAGES/
> Installing build/po/ja/virtinst.mo to share/locale/ja/LC_MESSAGES/
> Installing build/po/sr/virtinst.mo to share/locale/sr/LC_MESSAGES/
> Installing build/po/es/virtinst.mo to share/locale/es/LC_MESSAGES/
> Installing build/po/uk/virtinst.mo to share/locale/uk/LC_MESSAGES/
> Installing build/po/sr at latin/virtinst.mo to share/locale/sr at latin/LC_MESSAGES/
> Installing build/po/nl/virtinst.mo to share/locale/nl/LC_MESSAGES/
> Installing build/po/ru/virtinst.mo to share/locale/ru/LC_MESSAGES/
> Installing build/po/zh_CN/virtinst.mo to share/locale/zh_CN/LC_MESSAGES/
> Installing build/po/it/virtinst.mo to share/locale/it/LC_MESSAGES/
> Installing build/po/fr/virtinst.mo to share/locale/fr/LC_MESSAGES/
> copying build/po/pl/virtinst.mo -> /usr/local/share/locale/pl/LC_MESSAGES/
> copying build/po/pt_BR/virtinst.mo -> /usr/local/share/locale/pt_BR/LC_MESSAGES/
> copying build/po/ja/virtinst.mo -> /usr/local/share/locale/ja/LC_MESSAGES/
> copying build/po/sr/virtinst.mo -> /usr/local/share/locale/sr/LC_MESSAGES/
> copying build/po/es/virtinst.mo -> /usr/local/share/locale/es/LC_MESSAGES/
> copying build/po/uk/virtinst.mo -> /usr/local/share/locale/uk/LC_MESSAGES/
> copying build/po/sr at latin/virtinst.mo ->
> /usr/local/share/locale/sr at latin/LC_MESSAGES/
> copying build/po/nl/virtinst.mo -> /usr/local/share/locale/nl/LC_MESSAGES/
> copying build/po/ru/virtinst.mo -> /usr/local/share/locale/ru/LC_MESSAGES/
> copying build/po/zh_CN/virtinst.mo -> /usr/local/share/locale/zh_CN/LC_MESSAGES/
> copying build/po/it/virtinst.mo -> /usr/local/share/locale/it/LC_MESSAGES/
> copying build/po/fr/virtinst.mo -> /usr/local/share/locale/fr/LC_MESSAGES/
> running install_egg_info
> Removing /usr/local/lib/python2.6/dist-packages/virtinst-0.500.5.egg-info
> Writing /usr/local/lib/python2.6/dist-packages/virtinst-0.500.5.egg-info
> 
> 
> Does anybody have some hint about fixing this?
> 
> Thanks in advance ;D

My guess is that /usr/local/lib/python2.6/dist-packages is not in the default
PYTHONPATH.

You can either run virt-manager like
'PYTHONPATH=/usr/local/lib/python2.6/dist-packages virt-manager', or reinstall
python-virtinst with

python setup.py install --prefix=/usr

- Cole





More information about the virt-tools-list mailing list