Running from outside the virtinst directory: <br><br>lamps@ubunteira:/opt/virtinst-0.500.5$ cd /<br>lamps@ubunteira:/$ python -c 'import virtinst; print virtinst'<br><module 'virtinst' from '/usr/lib/pymodules/python2.6/virtinst/__init__.pyc'><br>

<br>Running python setup.py install --prefix=/usr and trying to launch virt-manager resulted in the same error message, but using "PYTHONPATH=..." to launch virt-manager works! Thanks!<br><br>It will be necessary to change this path everytime I run virt-manager? Is it possible to make some sort of workaround? =]<br>

<br><br><div class="gmail_quote">On Tue, Feb 15, 2011 at 4:12 PM, Cole Robinson <span dir="ltr"><<a href="mailto:crobinso@redhat.com">crobinso@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div><div></div><div class="h5">On 02/15/2011 01:59 PM, Bruno Lamps wrote:<br>
> Hi,<br>
><br>
> There's a thread with this same title, in this list, from august 2010. Link:<br>
> <a href="https://www.redhat.com/archives/virt-tools-list/2010-August/msg00075.html" target="_blank">https://www.redhat.com/archives/virt-tools-list/2010-August/msg00075.html</a><br>
><br>
> I got this same problem. I'm running Ubuntu 10.04 x64. I made some tests with<br>
> virt-manager 0.8.2, installed from ubuntu repositories, and then downloaded<br>
> the newest virt-manager and virt-inst from virt-manager website. Compiled both<br>
> sources as usual (opening INSTALL and following the instructions), but got<br>
> that error when trying to launch virt-manager:<br>
><br>
>     Erro ao iniciar o Gerenciador de Máquina Virtual: virtinst version 0.500.1<br>
>     is too old.<br>
><br>
>     virt-manager requires the python-virtinst library version 0.500.5 or<br>
>     greater. This can be downloaded at:<br>
><br>
>     <a href="http://virt-manager.org/download.html" target="_blank">http://virt-manager.org/download.html</a><br>
><br>
>     Traceback (most recent call last):<br>
>       File "/usr/local/share/virt-manager/virt-manager.py", line 455, in <module><br>
>         main()<br>
>       File "/usr/local/share/virt-manager/virt-manager.py", line 370, in main<br>
>         "\n\n" + msg)<br>
>     RuntimeError: virtinst version 0.500.1 is too old.<br>
><br>
>     virt-manager requires the python-virtinst library version 0.500.5 or<br>
>     greater. This can be downloaded at:<br>
><br>
>     <a href="http://virt-manager.org/download.html" target="_blank">http://virt-manager.org/download.html</a><br>
><br>
><br>
> The output of<br>
><br>
> python -c 'import virtinst; print virtinst'<br>
><br>
> command is:<br>
><br>
> lamps@ubunteira:/opt/virtinst-0.500.5$ python -c 'import virtinst; print virtinst'<br>
> <module 'virtinst' from 'virtinst/__init__.py'><br>
><br>
<br>
</div></div>Please show the output of that command when run from outside the virtinst<br>
directory.<br>
<div><div></div><div class="h5"><br>
> and the output for<br>
><br>
> sudo python setup.py install<br>
><br>
> is:<br>
><br>
> lamps@ubunteira:/opt/virtinst-0.500.5$ sudo python setup.py install<br>
> [sudo] password for lamps:<br>
> running install<br>
> running build<br>
> Building build/po/ja/virtinst.mo from ja.po<br>
> Building build/po/it/virtinst.mo from it.po<br>
> Building build/po/nl/virtinst.mo from nl.po<br>
> Building build/po/ru/virtinst.mo from ru.po<br>
> Building build/po/sr@latin/virtinst.mo from sr@latin.po<br>
> Building build/po/es/virtinst.mo from es.po<br>
> Building build/po/zh_CN/virtinst.mo from zh_CN.po<br>
> Building build/po/sr/virtinst.mo from sr.po<br>
> Building build/po/uk/virtinst.mo from uk.po<br>
> Building build/po/fr/virtinst.mo from fr.po<br>
> Building build/po/pt_BR/virtinst.mo from pt_BR.po<br>
> Building build/po/pl/virtinst.mo from pl.po<br>
> running build_py<br>
> package init file 'virtconv/parsers/__init__.py' not found (or not a regular file)<br>
> package init file 'virtconv/parsers/__init__.py' not found (or not a regular file)<br>
> running build_scripts<br>
> running install_lib<br>
> copying build/lib.linux-x86_64-2.6/virtconv/__init__.py -><br>
> /usr/local/lib/python2.6/dist-packages/virtconv<br>
> copying build/lib.linux-x86_64-2.6/virtinst/__init__.py -><br>
> /usr/local/lib/python2.6/dist-packages/virtinst<br>
> byte-compiling /usr/local/lib/python2.6/dist-packages/virtconv/__init__.py to<br>
> __init__.pyc<br>
> byte-compiling /usr/local/lib/python2.6/dist-packages/virtinst/__init__.py to<br>
> __init__.pyc<br>
> running install_scripts<br>
> changing mode of /usr/local/bin/virt-install to 755<br>
> changing mode of /usr/local/bin/virt-image to 755<br>
> changing mode of /usr/local/bin/virt-convert to 755<br>
> changing mode of /usr/local/bin/virt-clone to 755<br>
> running install_data<br>
> Installing build/po/pl/virtinst.mo to share/locale/pl/LC_MESSAGES/<br>
> Installing build/po/pt_BR/virtinst.mo to share/locale/pt_BR/LC_MESSAGES/<br>
> Installing build/po/ja/virtinst.mo to share/locale/ja/LC_MESSAGES/<br>
> Installing build/po/sr/virtinst.mo to share/locale/sr/LC_MESSAGES/<br>
> Installing build/po/es/virtinst.mo to share/locale/es/LC_MESSAGES/<br>
> Installing build/po/uk/virtinst.mo to share/locale/uk/LC_MESSAGES/<br>
> Installing build/po/sr@latin/virtinst.mo to share/locale/sr@latin/LC_MESSAGES/<br>
> Installing build/po/nl/virtinst.mo to share/locale/nl/LC_MESSAGES/<br>
> Installing build/po/ru/virtinst.mo to share/locale/ru/LC_MESSAGES/<br>
> Installing build/po/zh_CN/virtinst.mo to share/locale/zh_CN/LC_MESSAGES/<br>
> Installing build/po/it/virtinst.mo to share/locale/it/LC_MESSAGES/<br>
> Installing build/po/fr/virtinst.mo to share/locale/fr/LC_MESSAGES/<br>
> copying build/po/pl/virtinst.mo -> /usr/local/share/locale/pl/LC_MESSAGES/<br>
> copying build/po/pt_BR/virtinst.mo -> /usr/local/share/locale/pt_BR/LC_MESSAGES/<br>
> copying build/po/ja/virtinst.mo -> /usr/local/share/locale/ja/LC_MESSAGES/<br>
> copying build/po/sr/virtinst.mo -> /usr/local/share/locale/sr/LC_MESSAGES/<br>
> copying build/po/es/virtinst.mo -> /usr/local/share/locale/es/LC_MESSAGES/<br>
> copying build/po/uk/virtinst.mo -> /usr/local/share/locale/uk/LC_MESSAGES/<br>
> copying build/po/sr@latin/virtinst.mo -><br>
> /usr/local/share/locale/sr@latin/LC_MESSAGES/<br>
> copying build/po/nl/virtinst.mo -> /usr/local/share/locale/nl/LC_MESSAGES/<br>
> copying build/po/ru/virtinst.mo -> /usr/local/share/locale/ru/LC_MESSAGES/<br>
> copying build/po/zh_CN/virtinst.mo -> /usr/local/share/locale/zh_CN/LC_MESSAGES/<br>
> copying build/po/it/virtinst.mo -> /usr/local/share/locale/it/LC_MESSAGES/<br>
> copying build/po/fr/virtinst.mo -> /usr/local/share/locale/fr/LC_MESSAGES/<br>
> running install_egg_info<br>
> Removing /usr/local/lib/python2.6/dist-packages/virtinst-0.500.5.egg-info<br>
> Writing /usr/local/lib/python2.6/dist-packages/virtinst-0.500.5.egg-info<br>
><br>
><br>
> Does anybody have some hint about fixing this?<br>
><br>
> Thanks in advance ;D<br>
<br>
</div></div>My guess is that /usr/local/lib/python2.6/dist-packages is not in the default<br>
PYTHONPATH.<br>
<br>
You can either run virt-manager like<br>
'PYTHONPATH=/usr/local/lib/python2.6/dist-packages virt-manager', or reinstall<br>
python-virtinst with<br>
<br>
python setup.py install --prefix=/usr<br>
<font color="#888888"><br>
- Cole<br>
<br>
<br>
</font></blockquote></div><br>