Re: [Ironpython-users] Using pyc.py get import error on minimal WPF app

2011-07-05 Thread Jeff Hardy
On Tue, Jul 5, 2011 at 10:21 AM, Chaim Krause wrote: > If I copy the dll into the same directory as the exe AND modify the code > to... > > import clr > clr.AddReferenceToFileAndPath("IronPython.Wpf.dll") > import  wpf > > THEN it works. So, yes. It appears that something is wrong with the import.

Re: [Ironpython-users] Using pyc.py get import error on minimal WPF app

2011-07-05 Thread Chaim Krause
If I copy the dll into the same directory as the exe AND modify the code to... import clr clr.AddReferenceToFileAndPath("IronPython.Wpf.dll") import wpf THEN it works. So, yes. It appears that something is wrong with the import. Has anybody else experienced this with the latest beta? Can s

Re: [Ironpython-users] Using pyc.py get import error on minimal WPF app

2011-07-05 Thread Chaim Krause
I tried that, with no luck. However, that is the same way I am leaning. Especially if I use /target:exe instead of /target:winexe as I then get an exception immediately in the console window: [C:\work\Iron Python Sandbox\WpfApplication1]WpfApplication1.exe Unhandled Exception: IronPython.Run

Re: [Ironpython-users] Using pyc.py get import error on minimal WPF app

2011-07-05 Thread Jeff Hardy
Hi Chaim, My guess is that it can't find the wpf module - which, in 2.7 at least, is IronPython.Wpf.dll. You'll probably need to put that file (from the DLLs directory of IronPython) into the same folder as your .exe. - Jeff On Tue, Jul 5, 2011 at 6:59 AM, Chaim Krause wrote: > Runs fine in Iron

[Ironpython-users] Using pyc.py get import error on minimal WPF app

2011-07-05 Thread Chaim Krause
Runs fine in IronPython IDE /Visual Studio 2010, but... Using minimal code: import wpf from System.Windows import Application, Window class MyWindow(Window): def __init__(self): wpf.LoadComponent(self, 'WpfApplication1.xaml') if __name__ == '__main__': Application().Run(MyWin