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-arm

[XenARM] Re: XEN-ARM Python Problem

To: Comson <comson@xxxxxxxxx>
Subject: [XenARM] Re: XEN-ARM Python Problem
From: See-Hwan Yoo <seehwan.yoo@xxxxxxxxx>
Date: Fri, 26 Feb 2010 06:53:28 +0900
Cc: xen-arm@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 25 Feb 2010 13:54:45 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=qCEYJ5PqzyELglo5CUWuDPFikMnsJF+Y7qzVMq+ISc8=; b=TVCmqoF41tml1WYxEOEtembokjtQx6m3dI6EpNTxDuwxWKg1Wt0LtALUwT5BJ5z2Xt Qu0dxXM836MXD7VJZuUjtpVIqXg1yEPda6KRKQlDnC8C3+Yhna1akgWQIhQqYO/xHfO+ 1qu7VfELfVPpfbpOgQIA04UEbyGx6NWvBGW74=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; b=I6dMqQKL5kdVaeo7DSqvz4GdTGnS0mf5F3DWqnsSqtuTuyiSore02n+AbuN2tTSN6h XdsYP8zxRKXbtMsoiNh1TEaKRC7xzQY+I88YLcFTZoRCRCj6IS2OC+CwYPnKjw494YPs pzPhj/paJqxOsuQJNqdoKJNzI5X+yD8/tXfTs=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <8b58d5221002250745t1e488903t770d0427e30db79c@xxxxxxxxxxxxxx>
List-help: <mailto:xen-arm-request@lists.xensource.com?subject=help>
List-id: Xen ARM development <xen-arm.lists.xensource.com>
List-post: <mailto:xen-arm@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-arm>, <mailto:xen-arm-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-arm>, <mailto:xen-arm-request@lists.xensource.com?subject=unsubscribe>
References: <8b58d5221002250745t1e488903t770d0427e30db79c@xxxxxxxxxxxxxx>
Reply-to: shyoo@xxxxxxxxxxxxxx
Sender: xen-arm-bounces@xxxxxxxxxxxxxxxxxxx
Please send it via public xen-arm mailing list in order to share
problems you experienced.
I also have experienced the problem, and I also think that the problem
is from the python building...
so, I have changed the code in somewhere performs sqrt in order not to use sqrt.
Instead, I have calculated it in my desktop pc, and put the result in
the python code, directly.
I don't ensure that it affects any negative impact after modification,
but in my case, it worked fine.

hope to be helpful.

2010/2/26 Comson <comson@xxxxxxxxx>:
> Mr. Yoo,
> Thanks for your previous help. I have the Xen-ARM Linux system built and ran
> on the iMX21ADS board. However, when I tried to start the Xen daemon, "Xend
> start", it is giving me the following error:
> Traceback (most recent call last):
>   File "/usr/local/xen-tools/sbin/xend", line 33, in ?
>     from xen.xend.server import SrvDaemon
>   File "/usr/lib/python/xen/xend/server/SrvDaemon.py", line 24, in ?
>     from xen.xend.XendLogging import log
>   File "/usr/lib/python/xen/xend/XendLogging.py", line 20, in ?
>     import tempfile
>   File
> "/home/xenarm/xen-unstable.hg/tools/arm_python/cross_compiled//lib/python2.4/tempfile.py",
> line 33, in ?
>   File
> "/home/xenarm/xen-unstable.hg/tools/arm_python/cross_compiled//lib/python2.4/random.py",
> line 56, in ?
> ValueError: math domain error
> After some testing, I figured out that the problem was caused by Python not
> supporting floating point calculation and the error message was produced
> when running the math.sqrt() function in Python. I started the Python
> interpreter environment on the board and performed a floating point
> calculation to confirm my suspicion, 1.1+2.9, it returned
> -3.142977221412546e-07, which clearly was incorrect. The interpreter was
> able to do integer math correctly. Do you know what might have caused Python
> interpreter to act in such strange way?
> Thank you for your time and help.
>
> Thanks,
> Comson
>
>
>

_______________________________________________
Xen-arm mailing list
Xen-arm@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-arm

<Prev in Thread] Current Thread [Next in Thread>
  • [XenARM] Re: XEN-ARM Python Problem, See-Hwan Yoo <=