[IronPython] Hosting IronPython in Powershell

Stephen Ng stephen at theleengs.com
Tue Dec 30 21:39:27 CET 2008


Thanks, dropping all the dlls from the IronPython2 directory into the GAC
gets me a little further (adding to the path didn't work).  Sorry to need to
be led by the hand...now I get:
PS C:\Program Files\IronPython 2.0>
[reflection.assembly]::loadFrom("C:\Program Files\IronPython
2.0\IronPython.dll")

GAC    Version        Location
---    -------        --------
True   v2.0.50727
C:\WINDOWS\assembly\GAC_MSIL\IronPython\2.0.0.0__31bf3...

PS C:\Program Files\IronPython 2.0> $py =
[IronPython.Hosting.Python]::CreateEngine()
PS C:\Program Files\IronPython 2.0> $py.Execute("3")
Exception calling "Execute" with "1" argument(s): "Late bound operations
cannot
 be performed on types or methods for which ContainsGenericParameters is
true."
At line:1 char:12
+ $py.Execute( <<<< "3")
PS C:\Program Files\IronPython 2.0> $py.Execute("print 'hello world!'")
Exception calling "Execute" with "1" argument(s): "Late bound operations
cannot be performed on types or methods for which ContainsGenericParameters
is true."
At line:1 char:12
+ $py.Execute( <<<< "print 'hello world!'")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20081230/654de131/attachment.html>


More information about the Ironpython-users mailing list