This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-users] xen new throws python error

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] xen new throws python error
From: Daniel Kao <dkao@xxxxxxxxxxxx>
Date: Tue, 01 Apr 2008 18:15:13 -0700
Delivery-date: Tue, 01 Apr 2008 18:15:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <VA.000030ea.534690bc@xxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <VA.000030ea.534690bc@xxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird (Windows/20080213)

I believe the package is called "PyXML" from the CentOS repositories which contains xmlproc. So either PyXML.x86_64 or PyXML.i386. I have version 0.8.4-4 installed for Xen 3.2 under CentOS 5.1 x86_64.

Good luck!


Kai Schaetzl wrote:
I upgraded the xen packages on CentOS 5.1 with the Xen 3.2 packages from www.xen.org and seem to hit a few bugs in the python code of the tools. For instance, "xm new" creates the following error:

Unexpected error: exceptions.ImportError

Please report to xen-devel@xxxxxxxxxxxxxxxxxxx
Traceback (most recent call last):
  File "/usr/sbin/xm", line 10, in ?
File "/usr/lib/python2.4/site-packages/xen/xm/main.py", line 2531, in main
    _, rc = _run_cmd(cmd, cmd_name, args)
File "/usr/lib/python2.4/site-packages/xen/xm/main.py", line 2555, in _run_cmd
    return True, cmd(args)
  File "<string>", line 1, in <lambda>
File "/usr/lib/python2.4/site-packages/xen/xm/main.py", line 1308, in xm_importcommand
    cmd = __import__(command, globals(), locals(), 'xen.xm')
  File "/usr/lib/python2.4/site-packages/xen/xm/new.py", line 26, in ?
    from xen.xm.xenapi_create import *
File "/usr/lib/python2.4/site-packages/xen/xm/xenapi_create.py", line 23, in ?
    from xml.parsers.xmlproc import xmlproc, xmlval, xmldtd
ImportError: No module named xmlproc

I see that others had the same problem on other platforms in the past and where advised to install "python-xml" or such. However, there is no "python-xml" for CentOS and other users on the same platform do not have this problem. So, what can I do to fix this?



Daniel Kao, Übermind
Seattle, WA

Xen-users mailing list