xm crashes because of missing python lxml module

Bug #1018494 reported by Matías Moreno
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xen (Debian)
Fix Released
Unknown
xen (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

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 <email address hidden>
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

Revision history for this message
Axel Beckert (xtaran) wrote :

Not a problem of xen-tools but xen itself

affects: xen-tools (Ubuntu) → xen (Ubuntu)
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Please reply if this issue still exists.

Changed in xen (Ubuntu):
status: New → Incomplete
Changed in xen (Debian):
status: Unknown → Won't Fix
Changed in xen (Debian):
status: Won't Fix → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.