[IronPython] "Cannot import name Enum"

Han Kejing Colin.Han at grapecity.com
Fri Jul 11 03:23:51 CEST 2008


Maybe you should exec follow script first,

import clr
clr.AddReference("mscorlib")

I'm beginner :)

----------------------------------------------------------------
Follow my heart
Colin Han @ GrapeCity

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Jeff Hardy
Sent: 2008年7月11日 8:27
To: Discussion of IronPython
Subject: [IronPython] "Cannot import name Enum"

Hi all,
I'm hosting IronPython 2.0b3. When executing "from System import
Enum", I get the error "Cannot import name Enum ". It works fine when
executed from the console. Do I need to set up some references in the
hosting code to make this work?

-Jeff
_______________________________________________
Users mailing list
Users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list