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

Cole Robinson crobinso at redhat.com
Wed Feb 16 14:36:16 UTC 2011


On 02/16/2011 08:59 AM, Bruno Lamps wrote:
> The requested output:
> 
> lamps at ubunteira:/opt/virtinst-0.500.5$ sudo python setup.py install --prefix=/usr
> 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/lib/python2.6/site-packages/virtconv
> copying build/lib.linux-x86_64-2.6/virtinst/__init__.py ->
> /usr/lib/python2.6/site-packages/virtinst
> byte-compiling /usr/lib/python2.6/site-packages/virtconv/__init__.py to
> __init__.pyc
> byte-compiling /usr/lib/python2.6/site-packages/virtinst/__init__.py to
> __init__.pyc
> running install_scripts
> changing mode of /usr/bin/virt-install to 755
> changing mode of /usr/bin/virt-image to 755
> changing mode of /usr/bin/virt-convert to 755
> changing mode of /usr/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/share/locale/pl/LC_MESSAGES/
> copying build/po/pt_BR/virtinst.mo -> /usr/share/locale/pt_BR/LC_MESSAGES/
> copying build/po/ja/virtinst.mo -> /usr/share/locale/ja/LC_MESSAGES/
> copying build/po/sr/virtinst.mo -> /usr/share/locale/sr/LC_MESSAGES/
> copying build/po/es/virtinst.mo -> /usr/share/locale/es/LC_MESSAGES/
> copying build/po/uk/virtinst.mo -> /usr/share/locale/uk/LC_MESSAGES/
> copying build/po/sr at latin/virtinst.mo -> /usr/share/locale/sr at latin/LC_MESSAGES/
> copying build/po/nl/virtinst.mo -> /usr/share/locale/nl/LC_MESSAGES/
> copying build/po/ru/virtinst.mo -> /usr/share/locale/ru/LC_MESSAGES/
> copying build/po/zh_CN/virtinst.mo -> /usr/share/locale/zh_CN/LC_MESSAGES/
> copying build/po/it/virtinst.mo -> /usr/share/locale/it/LC_MESSAGES/
> copying build/po/fr/virtinst.mo -> /usr/share/locale/fr/LC_MESSAGES/
> running install_egg_info
> Removing /usr/lib/python2.6/site-packages/virtinst-0.500.5-py2.6.egg-info
> Writing /usr/lib/python2.6/site-packages/virtinst-0.500.5-py2.6.egg-info
> 
> 

Hmm, well strangely it's using site-packages now instead dist-packages.

Seems to be more info here:

https://bugs.launchpad.net/ubuntu/+source/python2.6/+bug/362570

- Cole

> On Tue, Feb 15, 2011 at 5:25 PM, Cole Robinson <crobinso at redhat.com
> <mailto:crobinso at redhat.com>> wrote:
> 
>     On 02/15/2011 03:15 PM, Bruno Lamps wrote:
>     > Hi,
>     >
>     > 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'.
>     >
> 
>     What's the output of 'python setup.py install --prefix=/usr' ?
> 
>     - Cole
> 
>     > The available options are:
>     >
>     > Options for 'install' command:
>     >   --prefix            installation prefix
>     >   --exec-prefix       (Unix only) prefix for platform-specific files
>     >   --home              (Unix only) home directory to install under
>     >   --user              install in user site-package
>     >                       '/home/lamps/.local/lib/python2.6/site-packages'
>     >   --install-base      base installation directory (instead of --prefix or --
>     >                       home)
>     >   --install-platbase  base installation directory for platform-specific
>     files
>     >                       (instead of --exec-prefix or --home)
>     >   --root              install everything relative to this alternate root
>     >                       directory
>     >   --install-purelib   installation directory for pure Python module
>     >                       distributions
>     >   --install-platlib   installation directory for non-pure module
>     distributions
>     >   --install-lib       installation directory for all module distributions
>     >                       (overrides --install-purelib and --install-platlib)
>     >   --install-headers   installation directory for C/C++ headers
>     >   --install-scripts   installation directory for Python scripts
>     >   --install-data      installation directory for data files
>     >   --compile (-c)      compile .py to .pyc [default]
>     >   --no-compile        don't compile .py files
>     >   --optimize (-O)     also compile with optimization: -O1 for "python
>     -O", -O2
>     >                       for "python -OO", and -O0 to disable [default: -O0]
>     >   --force (-f)        force installation (overwrite any existing files)
>     >   --skip-build        skip rebuilding everything (for testing/debugging)
>     >   --record            filename in which to record list of installed files
>     >   --install-layout    installation layout to choose (known values: deb,
>     unix)
>     >
>     > Since 'python -c 'import sys; print sys.path' gives me these directories:
>     >
>     > lamps at ubunteira:/opt/virtinst-0.500.5$ cd /
>     > lamps at ubunteira:/$ python -c 'import sys; print sys.path'
>     > ['', '/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']
>     >
>     > 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.
>     >
>     > I'll reboot the machine, just in case. =]
>     >
>     > On Tue, Feb 15, 2011 at 4:54 PM, Cole Robinson <crobinso at redhat.com
>     <mailto:crobinso at redhat.com>
>     > <mailto:crobinso at redhat.com <mailto:crobinso at redhat.com>>> wrote:
>     >
>     >     On 02/15/2011 02:18 PM, Bruno Lamps wrote:
>     >     > Running from outside the virtinst directory:
>     >     >
>     >     > lamps at ubunteira:/opt/virtinst-0.500.5$ cd /
>     >     > lamps at ubunteira:/$ python -c 'import virtinst; print virtinst'
>     >     > <module 'virtinst' from
>     >     '/usr/lib/pymodules/python2.6/virtinst/__init__.pyc'>
>     >     >
>     >     > 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!
>     >     >
>     >     > It will be necessary to change this path everytime I run
>     virt-manager? Is it
>     >     > possible to make some sort of workaround? =]
>     >
>     >     You should be able to mess with setup.py install arguments to
>     install virtinst
>     >     into /usr/lib/pymodules/python2.6, which is where ubuntu seems to store
>     >     things, or some other place in the default python path.
>     >
>     >     See python -c 'import sys; print sys.path' to see all the place
>     python looks
>     >     for modules on your system.
>     >
>     >     See python setup.py install --help to see available install options.
>     >
>     >     - Cole
>     >
>     >     >
>     >     >
>     >     > On Tue, Feb 15, 2011 at 4:12 PM, Cole Robinson
>     <crobinso at redhat.com <mailto:crobinso at redhat.com>
>     >     <mailto:crobinso at redhat.com <mailto:crobinso at redhat.com>>
>     >     > <mailto:crobinso at redhat.com <mailto:crobinso at redhat.com>
>     <mailto:crobinso at redhat.com <mailto:crobinso at redhat.com>>>> wrote:
>     >     >
>     >     >     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