|
| IronPython - PS errors loading the object |
 |
Wed, 16 Apr 2008 19:00:01 -070 |
I'm trying to follow MOW's example
(http://mow001.blogspot.com/2006/09/powershell-hosting-ironpython.html) on
hosting IronPython, but the loading of the object always fails.
$ipe = new-object IronPython.Hosting.PythonEngine
Error:
New-Object : Exception calling ".ctor" with "0" argument(s):
"The type
initializer for 'IronPython.Runtime.Operations.Ops' threw an exception."
I realize this is technically not a PS issue, but I'm curious if anyone else
has encountered this. I've tried both IronPython 1.0 and 1.1.1 but same
result. Am I missing an argument like the error states and if so, what is
|
| Post Reply
|
| Re: IronPython - PS errors loading the object |
 |
Wed, 16 Apr 2008 23:45:40 -030 |
Cookiecutter wrote:
> I'm trying to follow MOW's example
> (http://mow001.blogspot.com/2006/09/powershell-hosting-ironpython.html) on
> hosting IronPython, but the loading of the object always fails.
>
> $ipe = new-object IronPython.Hosting.PythonEngine
>
> Error:
> New-Object : Exception calling ".ctor" with "0"
argument(s): "The type
> initializer for 'IronPython.Runtime.Operations.Ops' threw an
exception."
>
> I realize this is technically not a PS issue, but I'm curious if anyone
else
> has encountered this. I've tried both IronPython 1.0 and 1.1.1 but same
> result. Am I missing an argument like the error states and if so, what is
> the correct syntax?
http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=5204
I used ::LoadFrom() instead, and was able to create an object.
I read quickly, but if you place the IronPyton DLL in $pshome, you're
method *should* work. In my case, I had the DLL in another dir.
Marco
--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp
PowerGadgets MVP
http://www.powergadgets.com/mvp
Blog:
|
| Post Reply
|
|
|
|
|
|
|
|
|
|