[IronPython] System.Windows error no module named Windows

Michael Foord fuzzyman at voidspace.org.uk
Fri Sep 5 14:36:15 CEST 2008


luke14free wrote:
> Hello,
> I'm a newbuy of Iron Python, I've just installed it and wanted to see 
> how it was. After a few common problems I've tried to run via 
> execfile() tutorial\\calculator.py
> However I get an error:
> No module named windows
> Even after I've done:
>
> import clr
>
> clr.AddReference("System.Xml")
>
> from System.Xml import *
>
> dir()
>   
> I've Visual Studio 2005 and 2008 on my pc. Any hint?

It is likely that 'calculator.py' is trying to use Windows Forms or WPF. 
IIRC calculator.py is a WPF app - so you need to add references to the 
WPF assemblies.

Michael

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


-- 
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/
http://www.trypython.org/
http://www.ironpython.info/
http://www.theotherdelia.co.uk/
http://www.resolverhacks.net/




More information about the Ironpython-users mailing list