Missing dependency in Ubuntu xen-utils packages

I noticed in testing some of the xm subcommands that I was getting errors. I found that these errors disappeared upon installing the python-xml package which provided the missing python modules needed by xm. I've reported the bug and hope to see it fixed promptly. In the meantime, make sure you install python-xml on any system running Xen. Who knows what other problems might result from this package being absent.

https://bugs.launchpad.net/ubuntu/+source/xen-3.1/+bug/174048

missing dependency: python-xml

Running the command: xm new testdom.cfg

Results in the following:

Unexpected error: 

Please report to xen-devel@lists.xensource.com
Traceback (most recent call last):
  File "/usr/sbin/xm", line 10, in 
    main.main(sys.argv)
  File "/usr/lib/python2.5/site-packages/xen/xm/main.py", line 2453, in main
    _, rc = _run_cmd(cmd, cmd_name, args)
  File "/usr/lib/python2.5/site-packages/xen/xm/main.py", line 2477, in _run_cmd
    return True, cmd(args)
  File "", line 1, in 
  File "/usr/lib/python2.5/site-packages/xen/xm/main.py", line 1265, in xm_impor
    cmd = __import__(command, globals(), locals(), 'xen.xm')
  File "/usr/lib/python2.5/site-packages/xen/xm/new.py", line 26, in 
    from xen.xm.xenapi_create import *
  File "/usr/lib/python2.5/site-packages/xen/xm/xenapi_create.py", line 23, in <
    from xml.parsers.xmlproc import xmlproc, xmlval, xmldtd
ImportError: No module named xmlproc

To fix I ran: sudo apt-get install python-xml

The command worked fine after that. So it appears that some xm commands depend on the python-xml package being installed. Seems like it would make sense to make it a dependency. It might help reduce the number of bugs being reported.

https://bugs.launchpad.net/ubuntu/+source/xen-3.1/+bug/174048

Creative Commons License Except where otherwise noted, content on this site is licensed under a Creative Commons by-nc-sa 3.0 License