[Mono-osx] Ironpython on Macosx problem
sanfordarmstrong at gmail.com
Fri Mar 20 16:04:52 EDT 2009
On 03/18/2009 08:19 AM, zenzee wrote:
> 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
> import clr
> from System.Windows.Forms import *
> class IForm(Form):
> def __init__(self):
> self.Text = 'Simple'
> 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
> ./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:
Hope this helps,
More information about the Mono-osx