Re: [IronPython] Problem in Loading Assembly

2006-01-02 Thread 谭 颖华
Thank you very much, Martin. The problem has been fixed. I also find that IP 1.0 Beta fixed this bug. It really sounds great. Happy new year and cheer for IP! -Original Message- The failure is related to the STAThread attribute on IronPythonConsole's Main. We removed it recently to fi

[IronPython] Avalon tutorial

2006-01-02 Thread Luis M. Gonzalez
Hi there!   I'm having trouble with the Avalon tutorial. In fact, I can't even start... this is the reeor message I get when trying to initialize Windows Presentation Foundation:   >>> from avalon import *Traceback (most recent call last):  File , line 0, in input##0  File C:\Documents and

Re: [IronPython] Avalon tutorial

2006-01-02 Thread Catalin Lungu
I am in a similar situation but not only with avalon. When I try to invoke  "from System.Windows.Forms import *" I receive the folowing error Traceback (most recent call last):   File , line 0, in input##26 ImportError: cannot import Windows from System   With System.Drawing too.   With Avalon

Re: [IronPython] Avalon tutorial

2006-01-02 Thread jeff sacksteder
Are you using ip.bat or ironpythonconsole.exe? ___ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] Avalon tutorial

2006-01-02 Thread Catalin Lungu
Hi, If the question is for mi I use both (ip.bat, IronPythonConsole.exe) and I receive the same result.   - Original Message - From: jeff sacksteder To: Discussion of IronPython Sent: Monday, January 02, 2006 5:53 PM Subject: Re: [IronPython] Avalon tutorial

[IronPython] Avalon tutorial

2006-01-02 Thread Luis M. Gonzalez
> Are you using ip.bat or ironpythonconsole.exe? I'm using both with the same result.   By the way, I'm also having trouble with the winforms tutorial, just like Catalin:   >>> from System.Windows.Forms import *Traceback (most recent call last):  File , line 0, in input##0ImportError: cannot

Re: [IronPython] Avalon tutorial

2006-01-02 Thread Martin Maly
As for the winforms tutorial, I suspect you are forgetting to do “import winforms”. However, the winforms.py refers to an old namespace IronPython.Objects that was renamed to IronPython.Runtime After making the change, all works fine.   The Avalon works just fine, as far as I can tell. Ho

[IronPython] Avalon tutorial

2006-01-02 Thread Luis M. Gonzalez
> As for the winforms tutorial, I suspect you are forgetting to do "import > winforms" Well, actually this is what happens when trying to import winforms: >>> import winforms Traceback (most recent call last): File , line 0, in input##0 File C:\Documents and Settings\Usuario1\Escritorio\Iro

Re: [IronPython] Generators are broken

2006-01-02 Thread Martin Maly
Unfortunately, this is something we broke in Beta 1. The somewhat good news is the bug is limited to interactive console. Thanks for letting us know the fix will come soon. Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sanghyeon Seo Sent: Sunda

Re: [IronPython] Avalon tutorial

2006-01-02 Thread Martin Maly
Yep, as I said before, we renamed the namespace IronPython.Objects to IronPython.Runtime and I didn't update the winforms.py file. Changing the import statement in the winforms.py to be: from IronPython.Runtime import CallTarget0 will get you going on the winforms front. Not sure what the Avalo

[IronPython] Avalon tutorial

2006-01-02 Thread Luis M. Gonzalez
> Changing the import statement in the winforms.py to be: > from IronPython.Runtime import CallTarget0 will get you going on the > winforms front. Still not working... >>> from IronPython.Runtime import CallTarget0 >>> from System.Windows.Forms import * Traceback (most recent call last): File

Re: [IronPython] Avalon tutorial

2006-01-02 Thread Martin Maly
I may not have given clear answer last time. Here is the whole thing: My winforms.py with the fix for Objects=>Runtime change: import sys sys.LoadAssemblyByName("System.Windows.Forms") sys.LoadAssemblyByName("System.Drawing") sys.LoadAssemblyByName("IronPython") from System.Drawing import Size

[IronPython] sys.LoadAssembly* changes in 1.0 Beta 1

2006-01-02 Thread Martin Maly
Hello,   One of the design issues that followed IronPython pretty much since the very beginning was to find correct place for the two methods we added into the built-in sys module – sys.LoadAssemblyFromFile and sys.LoadAssemblyByName. The downsides were not only that these methods didn’t

Re: [IronPython] Avalon tutorial

2006-01-02 Thread Catalin Lungu
Hi, Changing the namespace Object to Runtime, fix the bug. Thank you all for your support. Catalin. - Original Message - From: "Martin Maly" <[EMAIL PROTECTED]> To: "Discussion of IronPython" Sent: Tuesday, January 03, 2006 12:31 AM Subject: Re: [IronPython] Avalon tutorial > Yep, as