Scott Garron
2010-Sep-23 21:12 UTC
[Xen-users] xm new yields Import error: No module named xmlproc
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@lists.xensource.com 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@lists.xensource.com http://lists.xensource.com/xen-users
Mark Pryor
2010-Sep-24 08:43 UTC
Re: [Xen-users] xm new yields Import error: No module named xmlproc
> From: Scott Garron <xen-users@sce.pridelands.org> > Subject: [Xen-users] xm new yields Import error: No module named xmlproc > To: xen-users@lists.xensource.com > Date: Thursday, September 23, 2010, 2:12 PM > > 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/xenDuring the build use below to make the prefix /usr/local make install-tools PYTHON_PREFIX_ARG This worked for me for all builds on Karmic and Lucid Ubuntu.> if I try to do xm new, I get this: > > > Unexpected error: <type ''exceptions.ImportError''> >Its the same on Karmic and Lucid, but there is an unsupported Deb which works as is on both suites: python-xml_0.8.4-10.1ubuntu2_amd64.deb I posted about the above to xen-users back in April 2k10. -- Mark _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Possibly Parallel Threads
- Bug#570066: xm new: undeclared dependency on absent Python library "xmlproc".
- unsupported xen domain management
- [PATCH] Replace pyxml/xmlproc-based XML validator with lxml based one.
- Bug#596765: xen: can't create a VM : no module named xmlproc
- Xen 3.3.0 on Ubuntu Hardy and xmlproc module.