Public bug reported:

Doing apt-get install python-lxml solves the issue, however xen-tools
package does not depend on python-lxml.

I'm using Ubuntu Precise Pangolin 12.04, package version is 4.2.1-1
amd64.

Here is copy and paste of terminal session:
(I added some comments with #, those are not part of the session, I've added 
them now for the bug report)

# I try to run xm new <configfile.cfg>

09:53|matias@matias-desktop:~/Descargas/xen_vms$ sudo xm new ubuntu1204.cfg
Unexpected error: <type 'exceptions.ImportError'>

Please report to xen-de...@lists.xensource.com
Traceback (most recent call last):
  File "/usr/lib/xen-4.1/bin/xm", line 8, in <module>
    main.main(sys.argv)
  File "/usr/lib/xen-4.1/bin/../lib/python/xen/xm/main.py", line 3983, in main
    _, rc = _run_cmd(cmd, cmd_name, args)
  File "/usr/lib/xen-4.1/bin/../lib/python/xen/xm/main.py", line 4007, in 
_run_cmd
    return True, cmd(args)
  File "<string>", line 1, in <lambda>
  File "/usr/lib/xen-4.1/bin/../lib/python/xen/xm/main.py", line 1518, in 
xm_importcommand
    cmd = __import__(command, globals(), locals(), 'xen.xm')
  File "/usr/lib/xen-4.1/bin/../lib/python/xen/xm/new.py", line 26, in <module>
    from xen.xm.xenapi_create import *
  File "/usr/lib/xen-4.1/bin/../lib/python/xen/xm/xenapi_create.py", line 24, 
in <module>
    from lxml import etree
ImportError: No module named lxml

# So, this is really Python complaining about missing lxml module

# I check for xen-tools updates...

09:57|matias@matias-desktop:~/Descargas/xen_vms/ubuntu1204$ sudo apt-get 
install xen-tools 
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias       
Leyendo la información de estado... Hecho
xen-tools ya está en su versión más reciente.
0 actualizados, 0 se instalarán, 0 para eliminar y 14 no actualizados.

# I decide to install python-lxml...

09:58|matias@matias-desktop:~/Descargas/xen_vms/ubuntu1204$ sudo apt-get 
install python-lxml
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias       
Leyendo la información de estado... Hecho
Paquetes sugeridos:
  python-lxml-dbg
Se instalarán los siguientes paquetes NUEVOS:
  python-lxml
0 actualizados, 1 se instalarán, 0 para eliminar y 14 no actualizados.
Necesito descargar 662 kB de archivos.
Se utilizarán 2.202 kB de espacio de disco adicional después de esta operación.
Des:1 http://ar.archive.ubuntu.com/ubuntu/ precise/main python-lxml amd64 
2.3.2-1 [662 kB]
Descargados 662 kB en 27seg. (23,7 kB/s)                                        
                                                                      
Seleccionando paquete python-lxml previamente no seleccionado
(Leyendo la base de datos ... 235463 ficheros o directorios instalados 
actualmente.)
Desempaquetando python-lxml (de .../python-lxml_2.3.2-1_amd64.deb) ...
Configurando python-lxml (2.3.2-1) ...

# Now I run xm again...

10:00|matias@matias-desktop:~/Descargas/xen_vms/ubuntu1204$ sudo xm new 
ubuntu1204.cfg
Using config file "./ubuntu1204.cfg".

# And succeeded

10:00|matias@matias-desktop:~/Descargas/xen_vms/ubuntu1204$

I've checked package dependencies for xen-tools too:

Depends: debootstrap | cdebootstrap, perl-modules, libtext-template-
perl, libconfig-inifiles-perl, libfile-slurp-perl

** Affects: xen-tools (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: dependency lxml package python xen-tools xm

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1018494

Title:
  xm crashes because of missing python lxml module

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xen-tools/+bug/1018494/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to