Re: [IronPython] ironpython xna problem

2008-06-17 Thread Paul Turbett
Are the XNA assemblies in the same directory as your script? I don't think they are in the GAC, so unless they in the same place as the ipy script, or a directory in your path, they won't be loaded. L8r, Paul Gigs_ wrote: Hi all! i want to run some ironpython xna script, but all the tim im

Re: [IronPython] InvalidProgramException testing hosting under NUnit

2008-04-05 Thread Paul Turbett
That was it. Curt to the rescue again. Thanks. A possible suggestion would be a more descriptive error message :) Curt Hagenlocher wrote: This indicates that your executable directory does not contain IronPython.Modules.dll. On Thu, Apr 3, 2008 at 7:35 PM, Paul Turbett [EMAIL PROTECTED

Re: [IronPython] InvalidProgramException testing hosting under NUnit

2008-04-03 Thread Paul Turbett
Hi Was there ever a solution to this problem? I'm getting the same thing, though not with NUnit. To port my IP interface from 1.1 to 2.0 (beta 1), I created a separate test application, which worked fine. However I'm merging the code into my real application, but I'm not able to create a

[IronPython] Creating Python classes in IP2

2008-03-30 Thread Paul Turbett
Hi, I'm attempting to update an application framework that uses IP1.1 to use IP2b1. In the framework, I create python objects that are derived from C# classes, so I can bind to an interface at compile time. I do this from C# by executing the .py file that defines the class, getting the class

Re: [IronPython] Creating Python classes in IP2

2008-03-30 Thread Paul Turbett
Awesome, thanks! Curt Hagenlocher wrote: On Sun, Mar 30, 2008 at 2:59 AM, Paul Turbett [EMAIL PROTECTED] wrote: I've looked through the DLR hosting spec, and experimented a bit, but I can't see how to get the same thing working with DLR hosting. So, how do I create instances of python

Re: [IronPython] Question about serialization

2008-03-27 Thread Paul Turbett
the fepy pickle. I'd be interested to trying using the DLR hosting mechanism...does anybody know of any docs about upgrading from IP 1.x to IP 2 script hosting? Thanks, Paul Sanghyeon Seo wrote: 2008/3/26, Paul Turbett [EMAIL PROTECTED]: It seems that whilst serializing .NET classes

[IronPython] Question about serialization

2008-03-25 Thread Paul Turbett
Hi, I'm using IP as a scripting engine in a C# app. I have various Python classes that derive from a C# base class, and have there own additional data functionality. I would like to be able to serialize instances of the Python classes from the C# host for persistence across sessions. Using

Re: [IronPython] Help with Ops.GetAttr

2008-02-12 Thread Paul Turbett
That did it, thanks! Dino Viehland wrote: You could use Ops.TryGetAttr which doesn't take a context (and flows the default context in for you). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Turbett Sent: Tuesday, February 12, 2008 5:30 AM

[IronPython] Help with Ops.GetAttr

2008-02-12 Thread Paul Turbett
Hi, I'm attempting to get an attribute from python object from C# using a method like this: public object GetAttr(object pyObject, string name) { ICallerContext context = _pythonEngine.DefaultModule as ICallerContext; object value = Ops.GetAttr( context, pyObject,