[IronPython] Mono classes will not import

Sanghyeon Seo sanxiyn at gmail.com
Tue Sep 18 07:34:39 CEST 2007

2007/9/18, Newell Jensen <pillar2012 at gmail.com>:
> I just installed mono (version 1.2.5) and IPCE (IronPython version 1.1 (1.1)
> on .NET 2.0.50727.42.  I am having troubles import the Mono classes. That is
> something like this,
> $ mono ipy.exe
> >>> import Mono
> give me the error that their is no module Mono.  I also tried mono etc.  It
> works when I do to import .NET classes such as System etc.  I made sure that
> all my dependencies were taken care of.  Is there something that I am
> missing?  Thanks for your help.

You need to add reference to appropriate assemblies. For example, this
works for me:

$ mono ipy.exe
>>> import clr
>>> clr.AddReference('Mono.Posix')
>>> import Mono

Seo Sanghyeon

More information about the Ironpython-users mailing list