Re: [IronPython] Debugging IronPython script using "IronPython tools for Visual Studio(CP2)

2010-06-13 Thread yngipy hernan
*RE: Can you enable breaking on the import exception (or all exceptions and continue after these) and see what the last exception is?* Sorry, I am not familiar how to do this. I search for some tutorial, but if you have some wiki out there I can use, I can probably give it a try. Regards, Yngipy

Re: [IronPython] Convert between python array and .NET Array

2010-06-13 Thread Marcel
Hi Curt, Your suggestion gives me: TypeError: expected Array[Byte], got array bytes is a Python array. I tried: Marshal.Copy.Overloads[Array[Byte], int, IntPtr, int] (bytes.buffer_info()[0], 0, bmData.Scan0, total_bytes) but that gave the error: TypeError: expected Array[Byte], got int This sma

[IronPython] Problem with ScriptSource.GetCodeProperties()

2010-06-13 Thread Michael Foord
Hello all, IronPython 2.6.1: >>> import clr >>> clr.AddReference('IronPython') >>> clr.AddReference('Microsoft.Scripting') >>> from IronPython.Hosting import Python >>> from Microsoft.Scripting import SourceCodeKind >>> engine = Python.CreateEngine() >>> scope = engine.CreateScope() >>> text = '

Re: [IronPython] Debugging IronPython script using "IronPython tools for Visual Studio(CP2)

2010-06-13 Thread Dino Viehland
I'm assuming the problem here is that this is exiting w/ a non-zero exit code indicating something went wrong. But what went wrong really depends on what the last exception is - there appears to be some failure to import something. The other exceptions are expected as the standard library thro