[Mono-osx] Ironpython on Macosx problem

zenzee zenzeep at gmail.com
Wed Mar 18 11:19:48 EDT 2009


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

Usage: import [options ...] [ file ]

Image Settings:
  -adjoin              join images into a single multi-image file
  -channel type        apply option to select image channels
  -colorspace type     alternate image colorspace
  -comment string      annotate image with comment
  -compress type       type of pixel compression when writing the image
  -debug events        display copious debugging information
  -define format:option
                       define one or more image format options
  -density geometry    horizontal and vertical density of the image
  -depth value         image depth
  -descend             obtain image by descending window hierarchy
  -display server      X server to contact
  -dispose method      GIF disposal method
  -dither              apply Floyd/Steinberg error diffusion to image
  -delay value         display the next image after pausing
  -endian type         endianness (MSB or LSB) of the image
  -encoding type       text encoding type
  -format "string"     output formatted image characteristics
  -frame               include window manager frame
  -gravity direction   which direction to gravitate towards
  -identify            identify the format and characteristics of the image
  -interlace type      None, Line, Plane, or Partition
  -interpolate method  pixel color interpolation method
  -label string        assign a label to an image
  -limit type value    Area, Disk, Map, or Memory resource limit
  -log format          format of debugging information
  -monitor             monitor progress
  -page geometry       size and location of an image canvas
  -pause value         seconds delay between snapshots
  -pointsize value     font point size
  -quality value       JPEG/MIFF/PNG compression level
  -quiet               suppress all error or warning messages
  -regard-warnings     pay attention to warning messages
  -sampling-factor geometry
                       horizontal and vertical sampling factor
  -scene value         image scene number
  -screen              select image from root window
  -set property value  set an image property
  -silent              operate silently, i.e. don't ring any bells 
  -snaps value         number of screen snapshots
  -support factor      resize support: > 1.0 is blurry, < 1.0 is sharp
  -transparent-color color
                       transparent color
  -treedepth value     color tree depth
  -verbose             print detailed information about the image
  -virtual-pixel method
                       Constant, Edge, Mirror, or Tile
  -window id           select window with this id or name

Image Operators:
  -annotate geometry text
                       annotate the image with text
  -border              include image borders in the output image
  -colors value        preferred number of colors in the image
  -crop geometry       preferred size and location of the cropped image
  -geometry geometry   perferred size or location of the image
  -help                print program options
  -monochrome          transform image to black and white
  -negate              replace every pixel with its complementary color 
  -repage geometry     size and location of an image canvas
  -quantize colorspace reduce colors in this colorspace
  -resize geometry     resize the image
  -rotate degrees      apply Paeth rotation to the image
  -strip               strip image of all profiles and comments
  -thumbnail geometry  create a thumbnail of the image
  -transparent color   make this color transparent within the image
  -trim                trim image edges
  -type type           image type
  -version             print version information

By default, 'file' is written in the MIFF image format.  To
specify a particular image format, precede the filename with an image
format name and a colon (i.e. ps:image) or specify the image type as
the filename suffix (i.e. image.ps).  Specify 'file' as '-' for
standard input or output.
./simple.py: line 5: syntax error near unexpected token
`"System.Windows.Forms"'
./simple.py: line 5: `clr.AddReference("System.Windows.Forms")'
-- 
View this message in context: http://www.nabble.com/Ironpython-on-Macosx-problem-tp22581126p22581126.html
Sent from the Mono - OSX mailing list archive at Nabble.com.



More information about the Mono-osx mailing list