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

[Xen-users] xm new yields Import error: No module named xmlproc

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] xm new yields Import error: No module named xmlproc
From: Scott Garron <xen-users@xxxxxxxxxxxxxxxxxx>
Date: Thu, 23 Sep 2010 17:12:59 -0400
Delivery-date: Thu, 23 Sep 2010 14:14:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100805 Icedove/3.0.6

     I'm using a source-compiled Xen-4.0.2-rc1-pre (changeset: Fri Sep
17 17:06:57 2010 +0100 21350:6e0ffcd2d9e0) on a brand new Debian Testing
(Squeeze/sid) install.  The first problem that I ran accross was just
getting xend to start.  I was getting a python error saying that it
couldn't import SrvDaemon.  I got around that by moving
/usr/lib/python2.6/site-packages/xen to
/usr/local/lib/python2.6/dist-packages/xen, putting a symlink in
/usr/lib/python2.5/site-packages pointing to the "xen" directory in
/usr/local/lib/python2.6/site-packages, and putting a symlink in
/usr/lib/python2.6/site-pacakges doing the same thing.

     After doing that, xend starts, but if I try to do xm new, I get this:


Unexpected error: <type 'exceptions.ImportError'>

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


     I found this post from 2007:

http://lists.xensource.com/archives/html/xen-users/2007-07/msg00225.html

... and the follow-up suggests installing the python-xml package, but on
my system, aptitude install python-xml says "no candidate version found
for python-xml".  It seems like it has been removed from the Squeeze
version of Debian, entirely.  I tried installing python2.5 and grabbing
the python-xml .deb file from packages.debian.org (for lenny), but upon
trying to install it, it complains about needing python < 2.6 - even
though both python 2.5 and python 2.6 are installed.  I even tried
forcing it to install despite the dependency problem, and I still get
the import error from xm new.  The error message doesn't indicate in
what path it is looking for xmlproc, so I'm not sure how to even begin
to nudge it in the right direction.

     Has anyone run across this problem and found a resolution?  I'm
somewhat stumped by it.  I know I can try just re-installing and using
Debian stable instead, then rebuilding everything with python2.5 at the
core, but that seems more like a step back than a step forward, so I
thought I'd check here first.

--
Scott Garron


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

<Prev in Thread] Current Thread [Next in Thread>