[IronPython] IronPython and serializing object and a few questions

Martin Maly Martin.Maly at microsoft.com
Tue Dec 6 16:05:41 CET 2005

The only thing I can think of is the locale difference because the code that fails is trying to parse float point number. It is actually a bug in the test code itself. We need to parse in a culture invariant way (pass extra parameter to the Parse method).

Now that Keith corrected me and found the November CTP of WinFX, you may get better luck running WinFX code with the new build. Nowever, I would be interested to see the avalon sample crash stack trace.



From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Mikolaj Dawidowski
Sent: Tuesday, December 06, 2005 12:07 AM
To: users at lists.ironpython.com
Subject: Re: [IronPython] IronPython and serializing object and a few questions

Thank you very much for your answers.

I rebuild IronPython from source. It went very well and fast (it realy amazes me). And IronPythonConsole works now, great!
I launched an WinForms sample, it worked too.
However a crash ocurrs when trying running avalon sample.

I run tests from the IronPython095 package and it stopped at "conversions". Since I don't know if this is ok or not I just place it below:

IronPython 0.9.5 on .NET 2.0.50215.322
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import sys
>>> sys.path.append('c:/ironpython/scripts')
>>> import TestAll
>>> TestAll.main()
Testing ParrotBench suite long
ParrotBench !!! SKIP !!!
Testing Pystone suite long
Pystone !!! SKIP !!!
Testing IronPython suite long
Running Arithmetics ...    PASS
Running Assert ...    PASS
Running Attrs ...    PASS
Running BadAssign ...    PASS
Running BigInt ...    PASS
Running BindingTest ...    PASS
Running Builtin ...    PASS
Running calls ...    PASS
Running Classes ...    PASS
Running Closures ...    PASS
Running conversions ...Traceback (most recent call last):
   at <shell>
   at TestAll.main$f17() in c:\ironpython\scripts\TestAll.py:line 177
   at TestAll.runtesttrack$f16(Object results, Object test, Object msg) in c:\ir
onpython\scripts\TestAll.py:line 170
   at TestAll.runtest$f14(Object test, Object msg) in c:\ironpython\scripts\Test
All.py:line 151
   at TestAll.exectest$f13(Object test, Object testtype) in c:\ironpython\script
s\TestAll.py:line 140
   at TestAll.ironpython$f9(Object test) in c:\ironpython\scripts\TestAll.py:lin
e 106
   at irontestsuite.run$f20(Object type) in c:\ironpython\Scripts\Tests\irontest
suite.py:line 85
   at conversions.Initialize() in c:\ironpython\Scripts\Tests\conversions.py:lin
e 72
   at conversions.x$f149(Object self) in c:\ironpython\Scripts\Tests\conversions
.py:line 50
   at System.Single.Parse(String s)   at IronPython.Objects.ReflectedMethodBase.
Invoke(MethodBinding binding)
   at System.Single.Parse(String s, NumberStyles style, NumberFormatInfo info)
   at System.Number.ParseSingle(String value, NumberStyles options, NumberFormat
Info numfmt)
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffe
r& number, NumberFormatInfo info, Boolean parseDecimal)
System.FormatException: Input string was not in a correct format.


Adding IronPython dlls to execs helped, thanks. Its working great.

Thanks and best regards

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20051206/d2698c07/attachment.html>

More information about the Ironpython-users mailing list