[Mono-osx] Ironpython on Macosx problem

Vincent Zee zenzeep at gmail.com
Fri Mar 20 16:15:24 EDT 2009


Hi Sandy,

that fixed it here too.

Thanks you.

/\
Vincent

On Fri, Mar 20, 2009 at 9:04 PM, Sandy Armstrong <sanfordarmstrong at gmail.com
> wrote:

> On 03/18/2009 08:19 AM, zenzee wrote:
>
>> Hi,
>>
>> I installed the latest (Mono 2.2_5 Framework - Universal) package for the
>> mac on my macbookpro running 10.5.6 and tried to run this script from the
>> terminal:
>>
>> #!/usr/bin/ipy
>>
>> import clr
>>
>> clr.AddReference("System.Windows.Forms")
>>
>> from System.Windows.Forms import *
>>
>> class IForm(Form):
>>     def __init__(self):
>>         self.Text = 'Simple'
>>
>> Application.Run(IForm())
>>
>> ==================
>>
>> I get the following error message:
>>
>> Version: ImageMagick 6.3.3 03/06/07 Q16 http://www.imagemagick.org
>> Copyright: Copyright (C) 1999-2007 ImageMagick Studio LLC
>>
>
> I don't know why you're getting this, but it's not part of the error.
>
>  ./simple.py: line 5: syntax error near unexpected token
>> `"System.Windows.Forms"'
>> ./simple.py: line 5: `clr.AddReference("System.Windows.Forms")'
>>
>
> I get this error, too, running in Linux.  I fixed it by replacing your top
> line with:
>
> #!/usr/bin/env ipy
>
> Hope this helps,
> Sandy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20090320/378b8c09/attachment.html 


More information about the Mono-osx mailing list