[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] xen-2.0 20040910 problems
Easy fix - change line 66 of file "/usr/lib/python2.3/site-packages/xen/sv/DomList.py", to: request.write( "<img src='images/small-pause.png' onclick='doOp2( \"pause\", \"%(dom)s\" )'>" % domInfoHash ) be careful of the indentation. I will merge in a fix 2moro. Cheers Tom ps heres a tip: read error logs bottom to top in python. On 12 Sep 2004, at 16:07, Peri Hankey wrote: One simple problem: ... # xensv start Traceback (most recent call last): File "/usr/sbin/xensv", line 25, in ? from xen.xend.server.params import PID_FILE as XEND_PID_FILE ImportError: cannot import name PID_FILEThen after modifying xensv line line 25 to read "from xen.xend.server.params import XEND_PID_FILE"... # xensv start ... # start a domain using a tried and tested sxp file .... ... try web access ... ... # Traceback (most recent call last):File "/usr/lib/python2.3/site-packages/twisted/protocols/basic.py", line 223, in dataReceivedwhy = self.lineReceived(line)File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line 965, in lineReceivedself.allContentReceived()File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line 1006, in allContentReceivedreq.requestReceived(command, path, version)File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line 557, in requestReceivedself.process() --- <exception caught here> ---File "/usr/lib/python2.3/site-packages/twisted/web/server.py", line 165, in processself.render(resrc)File "/usr/lib/python2.3/site-packages/twisted/web/server.py", line 172, in renderbody = resrc.render(self)File "/usr/lib/python2.3/site-packages/twisted/web/resource.py", line 201, in renderreturn m(request)File "/usr/lib/python2.3/site-packages/xen/sv/HTMLBase.py", line 17, in render_GETself.write_BODY( request )File "/usr/lib/python2.3/site-packages/xen/sv/Main.py", line 58, in write_BODYmodule( self.mainUrlWriter( modName ) ).write_MENU( request )File "/usr/lib/python2.3/site-packages/xen/sv/DomList.py", line 16, in write_MENUreturn self.write_BODY( request, head=True, long=False )File "/usr/lib/python2.3/site-packages/xen/sv/DomList.py", line 45, in write_BODYself.write_DOMAIN( request, getDomInfoHash( domain ), long )File "/usr/lib/python2.3/site-packages/xen/sv/DomList.py", line 66, in write_DOMAIN request.write( "<img src='images/small-pause.png' onclick='doOp2( \"pause\", \"%(dom)-4d\" )'>" % domInfoHash )exceptions.TypeError: int argument requiredI hope that helps - as I explained, I haven't yet dug into it, and I'm learning python as I go.Peri Tom Wilkie wrote:I realised that, but hadn't yet made very serious attempts to find my way into the guts of the python.On a different topic, I have never yet seen the web interface work for long enough to be useful - it always crashes with the int-text type clash that wasmentioned somewhere in the changelogs as having been fixed.The web interface is very much a work-in-progress that we're hoping other people will contribute on.HiIf you can give me a pointer to where the problem is, I'll fix it. I've just been in america for a week, and am off to europe soon, but I'll give it a stab.The int-string clash is because we changed xend from addressing domains by id to name, but the functions where supposed to still accept ints... Also, I think the wizard is broke again.Cheers Tom ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement onwho ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |