[IronPython] Unable to cast object of type 'IronPython.Runtime.Types.OldClass' to type 'IronPython.Runtime.Types.DynamicType'

Martin Maly Martin.Maly at microsoft.com
Thu Jul 13 17:08:49 CEST 2006


To help you, we will need more information about your use of the Python Engine. The simple case of executing "from Module import Class" does work so we need to know more to find out what the problem may be.

Thanks
Martin

________________________________
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Mike Raath
Sent: Thursday, July 13, 2006 1:41 AM
To: Discussion of IronPython
Subject: [IronPython] Unable to cast object of type 'IronPython.Runtime.Types.OldClass' to type 'IronPython.Runtime.Types.DynamicType'

Hi

Having tried to switch over to beta 9, and changing my generic Evaluate<T> references to EvaluateAs<T>, I get a runtime error on an import statement which works under beta 8. The exception is as is detailed in the message above, and is from a statement like
engine.Execute("from Module import Class);

The Module and Class definitions are custom - and as i say this statement works under beta 8.

Do you require more information or do I need to make a further change to my code to get it to work?

Thanks,
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20060713/f05c4fce/attachment.html>


More information about the Ironpython-users mailing list