[IronPython] Powershell Sample and IP 2
Dave Fugate
dfugate at microsoft.com
Tue Apr 22 12:03:14 PDT 2008
Thanks for reporting this Michael! We actually discovered this internally about a year ago in one of the 2.0 Alphas, and made a few changes to get it (mostly) working again:
E:\Merlin\Main\Languages\IronPython\Samples\IPPowerShell>ipyd
IronPython 2.0 Beta (2.0.0.1000) on .NET 2.0.50727.1434
Copyright (c) Microsoft Corporation. All rights reserved.
>>> from powershell import shell
>>>
At this point I think we'll probably end up re-releasing some of the IP 1.0 samples shortly after IP 2.0 RTM. If you're interested in getting this working under Beta 1 now, the change is fairly simple - replace "ShellOutput.__dict__.update(cmds)" in powershell.py with "ShellOutput.out_string = ShellCommand("Out-String")". Hope that helps.
Dave
-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord
Sent: Monday, April 21, 2008 3:21 PM
To: Discussion of IronPython
Subject: [IronPython] Powershell Sample and IP 2
Hello all,
Just to let you know that the IronPython Powershell sample is broken for
IronPython 2:
>>> from powershell import shell
Traceback (most recent call last):
File , line unknown, in Initialize##224
File , line unknown, in _stub_##3
File Snippets, line unknown, in Initialize
File Snippets, line unknown, in init_runspace
AttributeError: 'dictproxy' object has no attribute 'update'
:-(
Michael
http://www.ironpythoninaction.com/
_______________________________________________
Users mailing list
Users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
More information about the Users
mailing list