[IronPython] Mono classes will not import
pillar2012 at gmail.com
Tue Sep 18 07:37:54 CEST 2007
Thanks...I can't believe I missed that.
While I am writing this email, does anyone know a good site that has lots of
examples of IronPython code?
On 9/17/07, Sanghyeon Seo <sanxiyn at gmail.com> wrote:
> 2007/9/18, Newell Jensen <pillar2012 at gmail.com>:
> > I just installed mono (version 1.2.5) and IPCE (IronPython version 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
> > 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
> Users mailing list
> Users at lists.ironpython.com
Global Energy Decisions
2379 Gateway Oaks Dr
Sacramento, CA 95833
njensen at globalenergy.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironpython-users