Hi,<br><br>I know that you already showed to me what I should do now and that I should be able to walk with my own legs, but I don't know what argument I should use in 'python setup.py install'. <br><br>The available options are: <br>
<br>Options for 'install' command:<br> --prefix installation prefix<br> --exec-prefix (Unix only) prefix for platform-specific files<br> --home (Unix only) home directory to install under<br>
--user install in user site-package<br> '/home/lamps/.local/lib/python2.6/site-packages'<br> --install-base base installation directory (instead of --prefix or --<br> home)<br>
--install-platbase base installation directory for platform-specific files<br> (instead of --exec-prefix or --home)<br> --root install everything relative to this alternate root<br> directory<br>
--install-purelib installation directory for pure Python module<br> distributions<br> --install-platlib installation directory for non-pure module distributions<br> --install-lib installation directory for all module distributions<br>
(overrides --install-purelib and --install-platlib)<br> --install-headers installation directory for C/C++ headers<br> --install-scripts installation directory for Python scripts<br> --install-data installation directory for data files<br>
--compile (-c) compile .py to .pyc [default]<br> --no-compile don't compile .py files<br> --optimize (-O) also compile with optimization: -O1 for "python -O", -O2<br> for "python -OO", and -O0 to disable [default: -O0]<br>
--force (-f) force installation (overwrite any existing files)<br> --skip-build skip rebuilding everything (for testing/debugging)<br> --record filename in which to record list of installed files<br>
--install-layout installation layout to choose (known values: deb, unix)<br><br>Since 'python -c 'import sys; print sys.path' gives me these directories: <br><br>lamps@ubunteira:/opt/virtinst-0.500.5$ cd /<br>
lamps@ubunteira:/$ python -c 'import sys; print sys.path'<br>['', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/local/lib/python2.6/dist-packages']<br>
<br>I tried installing with sudo python setup.py install -f --home /usr/lib/pymodules/python2.6, and also setting this --home parameter to /usr/lib/python2.6, installation runs OK, but virt-manager still not launching. <br>
<br>I'll reboot the machine, just in case. =]<br><br><div class="gmail_quote">On Tue, Feb 15, 2011 at 4:54 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 class="im">On 02/15/2011 02:18 PM, Bruno Lamps wrote:<br>
> 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<br>
> virt-manager resulted in the same error message, but using "PYTHONPATH=..." to<br>
> launch virt-manager works! Thanks!<br>
><br>
> It will be necessary to change this path everytime I run virt-manager? Is it<br>
> possible to make some sort of workaround? =]<br>
<br>
</div>You should be able to mess with setup.py install arguments to install virtinst<br>
into /usr/lib/pymodules/python2.6, which is where ubuntu seems to store<br>
things, or some other place in the default python path.<br>
<br>
See python -c 'import sys; print sys.path' to see all the place python looks<br>
for modules on your system.<br>
<br>
See python setup.py install --help to see available install options.<br>
<font color="#888888"><br>
- Cole<br>
</font><div class="im"><br>
><br>
><br>
> On Tue, Feb 15, 2011 at 4:12 PM, Cole Robinson <<a href="mailto:crobinso@redhat.com">crobinso@redhat.com</a><br>
</div><div><div></div><div class="h5">> <mailto:<a href="mailto:crobinso@redhat.com">crobinso@redhat.com</a>>> wrote:<br>
><br>
> 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<br>
> 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.<br>
> 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<br>
> 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<br>
> <module><br>
> > main()<br>
> > File "/usr/local/share/virt-manager/virt-manager.py", line 370, in<br>
> 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<br>
> virtinst'<br>
> > <module 'virtinst' from 'virtinst/__init__.py'><br>
> ><br>
><br>
> Please show the output of that command when run from outside the virtinst<br>
> directory.<br>
><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<br>
> regular file)<br>
> > package init file 'virtconv/parsers/__init__.py' not found (or not a<br>
> 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<br>
> /usr/local/lib/python2.6/dist-packages/virtconv/__init__.py to<br>
> > __init__.pyc<br>
> > byte-compiling<br>
> /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<br>
> 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 -><br>
> /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 -><br>
> /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>
> 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>
><br>
> - Cole<br>
><br>
><br>
><br>
<br>
</div></div></blockquote></div><br>