Thiago Camargo Martins Cordeiro
2008-Sep-16 06:32 UTC
[Xen-users] Xen 3.3.0 on Ubuntu Hardy and xmlproc module.
Hello! I have new xen-3.3.0 installed and working on latest Ubuntu Hardy, with Linux 2.6.18-xen from xen.org. When I run "xm new" I got this error: root@hyper02:~# xm li Name ID Mem VCPUs State Time(s) Domain-0 0 512 1 r----- 1869.9 vsrv65 4 1024 1 r----- 540.6 root@hyper02:~# *xm new vsrv65* Unexpected error: <type ''exceptions.ImportError''> Please report to xen-devel@lists.xensource.com Traceback (most recent call last): File "/usr/sbin/xm", line 10, in <module> main.main(sys.argv) File "//usr/lib64/python/xen/xm/main.py", line 2883, in main _, rc = _run_cmd(cmd, cmd_name, args) File "//usr/lib64/python/xen/xm/main.py", line 2907, in _run_cmd return True, cmd(args) File "<string>", line 1, in <lambda> File "//usr/lib64/python/xen/xm/main.py", line 1374, in xm_importcommand cmd = __import__(command, globals(), locals(), ''xen.xm'') File "//usr/lib64/python/xen/xm/new.py", line 26, in <module> from xen.xm.xenapi_create import * File "//usr/lib64/python/xen/xm/xenapi_create.py", line 23, in <module> from xml.parsers.xmlproc import xmlproc, xmlval, xmldtd ImportError: No module named xmlproc But I have python-xml installed! Look: root@hyper02:~# *dpkg -l python-xml | grep xml* ii python-xml 0.8.4-10ubuntu2 XML tools for Python root@hyper02:~# *uname -a* Linux hyper02 *2.6.18.8-xen* #1 SMP Fri Sep 12 15:39:22 BRT 2008 x86_64 GNU/Linux root@hyper02:~# *xm info* host : hyper02 release : 2.6.18.8-xen version : #1 SMP Fri Sep 12 15:39:22 BRT 2008 machine : x86_64 nr_cpus : 2 nr_nodes : 1 cores_per_socket : 2 threads_per_core : 1 cpu_mhz : 3391 hw_caps : bfebfbff:20100800:00000000:00000180:0000e49d:00000000:00000001:00000000 virt_caps : total_memory : 8190 free_memory : 6526 node_to_cpu : node0:0-1 node_to_memory : node0:6526 xen_major : 3 xen_minor : 3 xen_extra : .0 xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p xen_scheduler : credit xen_pagesize : 4096 platform_params : virt_start=0xffff800000000000 xen_changeset : unavailable cc_compiler : gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu1) cc_compile_by : administrativo cc_compile_domain : office.worldweb.com.br cc_compile_date : Fri Sep 12 14:55:49 BRT 2008 xend_config_format : 4 --- root@hyper02:~# dpkg -L python-xml (Attached: python-xml.files.txt) --- Can someone help me?! Thanks, Thiago _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Marco Sinhoreli
2008-Sep-16 11:50 UTC
Re: [Xen-users] Xen 3.3.0 on Ubuntu Hardy and xmlproc module.
Hi Thiago, I have the same setup here but I''m using debian lenny 64bit, it is working fine to me. Probably your python-xml package has some issue. Regads, -- Marco Sinhoreli _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thiago Camargo Martins Cordeiro
2009-Feb-19 05:08 UTC
[Xen-users] Re: Xen 3.3.0 on Ubuntu Hardy and xmlproc module.
SOLVED: echo oldxml >> /usr/lib/python2.5/site-packages/oldxml.pth Now "xm new" works nicely! []s Thiago 2008/9/16 Thiago Camargo Martins Cordeiro <thiagocmartinsc@gmail.com>> Hello! > > I have new xen-3.3.0 installed and working on latest Ubuntu Hardy, with > Linux 2.6.18-xen from xen.org. > > When I run "xm new" I got this error: > > root@hyper02:~# xm li > Name ID Mem VCPUs State > Time(s) > Domain-0 0 512 1 r----- > 1869.9 > vsrv65 4 1024 1 r----- > 540.6 > > root@hyper02:~# *xm new vsrv65* > Unexpected error: <type ''exceptions.ImportError''> > > Please report to xen-devel@lists.xensource.com > Traceback (most recent call last): > File "/usr/sbin/xm", line 10, in <module> > main.main(sys.argv) > File "//usr/lib64/python/xen/xm/main.py", line 2883, in main > _, rc = _run_cmd(cmd, cmd_name, args) > File "//usr/lib64/python/xen/xm/main.py", line 2907, in _run_cmd > return True, cmd(args) > File "<string>", line 1, in <lambda> > File "//usr/lib64/python/xen/xm/main.py", line 1374, in xm_importcommand > cmd = __import__(command, globals(), locals(), ''xen.xm'') > File "//usr/lib64/python/xen/xm/new.py", line 26, in <module> > from xen.xm.xenapi_create import * > File "//usr/lib64/python/xen/xm/xenapi_create.py", line 23, in <module> > from xml.parsers.xmlproc import xmlproc, xmlval, xmldtd > ImportError: No module named xmlproc > > But I have python-xml installed! Look: > > root@hyper02:~# *dpkg -l python-xml | grep xml* > ii python-xml > 0.8.4-10ubuntu2 XML tools for Python > > root@hyper02:~# *uname -a* > Linux hyper02 *2.6.18.8-xen* #1 SMP Fri Sep 12 15:39:22 BRT 2008 x86_64 > GNU/Linux > > root@hyper02:~# *xm info* > host : hyper02 > release : 2.6.18.8-xen > version : #1 SMP Fri Sep 12 15:39:22 BRT 2008 > machine : x86_64 > nr_cpus : 2 > nr_nodes : 1 > cores_per_socket : 2 > threads_per_core : 1 > cpu_mhz : 3391 > hw_caps : > bfebfbff:20100800:00000000:00000180:0000e49d:00000000:00000001:00000000 > virt_caps : > total_memory : 8190 > free_memory : 6526 > node_to_cpu : node0:0-1 > node_to_memory : node0:6526 > xen_major : 3 > xen_minor : 3 > xen_extra : .0 > xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p > xen_scheduler : credit > xen_pagesize : 4096 > platform_params : virt_start=0xffff800000000000 > xen_changeset : unavailable > cc_compiler : gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu1) > cc_compile_by : administrativo > cc_compile_domain : office.worldweb.com.br > cc_compile_date : Fri Sep 12 14:55:49 BRT 2008 > xend_config_format : 4 > > --- > root@hyper02:~# dpkg -L python-xml (Attached: python-xml.files.txt) > --- > > Can someone help me?! > > Thanks, > Thiago >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Apparently Analagous Threads
- [PATCH] Replace pyxml/xmlproc-based XML validator with lxml based one.
- xm new yields Import error: No module named xmlproc
- xm new
- Bug#570066: xm new: undeclared dependency on absent Python library "xmlproc".
- Bug#596765: xen: can't create a VM : no module named xmlproc