WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] ImportError: No module named xmlproc

To: ma qiang <maqiang1984@xxxxxxxxx>
Subject: Re: [Xen-users] ImportError: No module named xmlproc
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Wed, 10 Feb 2010 10:43:06 +0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 09 Feb 2010 19:43:38 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <2af70f431002091931l5bb363ckb469bdc85ad6069e@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <2af70f431002091931l5bb363ckb469bdc85ad6069e@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, Feb 10, 2010 at 10:31 AM, ma qiang <maqiang1984@xxxxxxxxx> wrote:
> Hi all,
>    I have one problem, who can help me resolve this problem?
>    I have installed xen in centos(GUI mode), at first I can use "xm
> new test" correctly. However, after that I reinstall my centos in text
> mode and reinstall xen in my new centos(no GUI),

How do you "reinstall" xen? Using "yum install xen" to get Centos
package? Compile from xen.org's source?
Installing centos package should install the dependencies as well, but
when installing from source it's possible that you miss one of the
dependencies.

> when I type the
> command "xm new test.cfg", one error print as belowes.
>
> Unexpected error: exceptions.ImportError
>
> Please report to xen-devel@xxxxxxxxxxxxxxxxxxx
> Traceback (most recent call last):
>  File "/usr/sbin/xm", line 7, in ?
>    main.main(sys.argv)
>  File "usr/lib/python2.4/site-packages/xen/xm/main.py", line 2997, in main
>  File "usr/lib/python2.4/site-packages/xen/xm/main.py", line 3021, in _run_cmd
>  File "<string>", line 1, in <lambda>
>  File "usr/lib/python2.4/site-packages/xen/xm/main.py", line 1366, in
> xm_importcommand
>  File "/usr/lib/python2.4/new.py", line 26, in ?
>
>  File "usr/lib/python2.4/site-packages/xen/xm/xenapi_create.py", line 23, in ?
> ImportError: No module named xmlproc
>
> I have no idea, who can tell me why and how to resolve that. Thanks a lot.

Looks like one of the necessary python module (PyXML) was not found.
Try "yum install PyXML"

-- 
Fajar

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users