Re: [IronPython] MissingMemberException on 2.6
Hi Curt, Sorry reported the wrong version there. I run the 2.6 interpreter but have hard coded the build scripts to 2.01 ipy and the target folder has the 2.01 binaries. So it is all 2.01. Just tried the (same) compiled version on XP with the same result. I built a console app without issue which ran so looks like my code is doing something different :-) Seems like I need to spend time narrowing down what is new since my last build. I have introduced threading, use of dir (for autocomplete) and changed external process handling so there is potential for something to be up there. Thanks. Davy Mitchell On Sun, May 10, 2009 at 9:19 PM, Curt Hagenlocher c...@hagenlocher.org wrote: I don't think that this: DataMicrosoft.Scripting/Data Data0.9.0.0/Data is the right AssemblyVersion for the 2.6 alpha. I would expect something like 0.9.5.1. Is it possible that you're compiling with a different version of IronPython than you think? On Sun, May 10, 2009 at 12:27 PM, Davy Mitchell daftspan...@gmail.com wrote: Hi Guys, I am on 2.6 Beta on Windows 7 7100 and getting MissingMemberException when I compile to an EXE. http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=20623 I've tried adding the references suggest on the mailing list: clr.AddReference('System') clr.AddReference('mscorlib') But they were already there which suggests I have hit this before. This all compiled and ran fine before I reinstalled the OS. Anything else I can look at? - Event xmlns=http://schemas.microsoft.com/win/2004/08/events/event; - System Provider Name=Windows Error Reporting / EventID Qualifiers=01001/EventID Level4/Level Task0/Task Keywords0x80/Keywords TimeCreated SystemTime=2009-05-10T19:16:21.0Z / EventRecordID2149/EventRecordID ChannelApplication/Channel Computerkennel/Computer Security / /System - EventData Data566025849/Data Data5/Data DataCLR20r3/Data DataNot available/Data Data0/Data Datadie.exe/Data Data0.0.0.0/Data Data4a0727eb/Data DataMicrosoft.Scripting/Data Data0.9.0.0/Data Data49906349/Data Data812/Data Data144/Data DataSystem.MissingMemberException/Data Data / DataC:\Users\daftspaniel\AppData\Local\Temp\WERC11B.tmp.WERInternalMetadata.xml/Data DataC:\Users\daftspaniel\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_die.exe_a64e2c7542736d65947d996e2ce5fb7d5b383d1_10b50642/Data Data / Data0/Data Data008e52f9-3d97-11de-9bf6-0019b95c9ce7/Data Data0/Data /EventData /Event Thanks, Davy ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
[IronPython] adodbapi with ado.net? (on MONO?)
Question for the group: If I were to fork a version of adodbapi which used ado.net (rather than COM ado) ... 1) would it work any better/faster than the existing code on Windows? 2) is there any chance that it would run under MONO on Linux? -- Vernon Cole ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Re: [IronPython] adodbapi with ado.net? (on MONO?)
Vernon Cole wrote: Question for the group: If I were to fork a version of adodbapi which used ado.net (rather than COM ado) ... 1) would it work any better/faster than the existing code on Windows? 2) is there any chance that it would run under MONO on Linux? I don't know the answer to 1 but I'm pretty sure the answer to 2 is maybe. :-) By which I mean that ADO.NET is available on Mono and so does stand a chance of working. Michael -- Vernon Cole ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
[IronPython] IronPython 2.6 CodePlex Source Update
This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/49948. DELETED SOURCES $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/BinderState.cs MODIFIED SOURCES $/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/PointerType.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/CFuncPtr.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/Structure.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/_ctypes.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/CFuncPtrType.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/Pointer.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/ModuleOps.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/ArrayType.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/StructType.cs $/IronPython/IronPython_Main/Src/Tests/interop/com/dlrcomlib/OutParams.py $/IronPython/IronPython_Main/Src/Tests/interop/com/dlrcomlib/dlrcomserver.py $/IronPython/IronPython_Main/Src/Tests/interop/com/apps/msagent.py $/IronPython/IronPython_Main/Src/Tests/interop/com/dlrcomlib/OptionalParams.py $/IronPython/IronPython_Main/Src/Tests/interop/com/dlrcomlib/pytraits/method.py $/IronPython/IronPython_Main/Src/Tests/interop/com/dlrcomlib/paramsinretval.py $/IronPython/IronPython_Main/Src/Tests/interop/com/dlrcomlib/typelib.py $/IronPython/IronPython_Main/Src/Tests/interop/com/apps/excel.py $/IronPython/IronPython_Main/Src/Tests/interop/com/apps/word.py $/IronPython/IronPython_Main/Src/Tests/interop/com/dlrcomlib/InOutParams.py $/IronPython/IronPython_Main/Src/Tests/interop/com/dlrcomlib/DispEvents.py $/IronPython/IronPython_Main/Src/Tests/interop/com/apps/scriptpw.py $/IronPython/IronPython_Main/Src/Tests/interop/com/dlrcomlib/SimpleErrors.py $/IronPython/IronPython_Main/Src/IronPython/Runtime/FutureBuiltins.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Interpreter/LightLambda.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Interpreter/LightLambdaClosureVisitor.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting.Core/Utils/ExceptionFactory.Generated.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Interpreter/LightDelegateCreator.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting.Core/Actions/DynamicMetaObjectBinder.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Interpreter/LightLambda.Generated.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Interpreter/LightCompiler.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Generation/CompilerHelpers.cs $/IronPython/IronPython_Main/Src/Runtime/Microsoft.Scripting/Interpreter/Instruction.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/PythonSiteCache.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/BuiltinFunction.Generated.cs $/IronPython/IronPython_Main/Src/IronPython.Modules/_collections.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonSetSliceBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonUnaryOperationBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonDeleteIndexBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonGetSliceBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonBinaryOperationBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonGetIndexBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonSetIndexBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonDeleteSliceBinder.cs $/IronPython/IronPython_Main/Src/Scripts/generate_dynamic_instructions.py $/IronPython/IronPython_Main/Src/IronPython/Runtime/NewStringFormatter.cs $/IronPython/IronPython_Main/Src/IronPython/Lib/iptest/cominterop_util.py $/IronPython/IronPython_Main/Lib/iptest/cominterop_util.py $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonDeleteMemberBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonOperationBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonGetMemberBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonInvokeBinder.cs $/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonSetMemberBinder.cs
[IronPython] Running Ruby code from Python, which is running in Ruby
Perhaps you've seen this, but I ran across Tomáš Matoušek’s blog this weekend http://blog.tomasm.net/category/ironruby/ where he describes a little interactive Ruby shell that works something like: $ irb.exe repl.rb rb class C rb| def say_hello caller rb| puts #{caller} says hello to Ruby rb| end rb| end = nil Now, he switches languages on the fly: rb #py Now, from Python he imports and runs the Ruby class in Python: py import C py c = C() py c.say_hello(Python) Python says hello to Ruby I thought I'd try this in the educational DLR editor/shell that we're developing in C# (at http://pyjamaproject.org/Pyjama ) and it works! There are still some issues (running Python code in Ruby didn't seem to work), and you need the latest drop of the DLR (I used 23458): http://www.codeplex.com/dlr/SourceControl/ListDownloadableCommits.aspx which isn't stable. But, the proof of concept is fantastic to see after all of the hard work. Best of all, the same DLLs allow all this to work on Linux and Mac OSX too, thanks to Mono. This means that you can write and compile a library *once* in whatever language you want, use it from other languages, on whatever operating system you want. Wow. Thank you to all those that are making this possible! (And more on our DLR IDE soon...) -Doug -- Douglas S. Blank Director, Institute for Personal Robots in Education (IPRE) http://www.roboteducation.org Chair, and Associate Professor, Computer Science, Bryn Mawr College http://cs.brynmawr.edu/~dblank (610)526-6501 ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Re: [IronPython] Running Ruby code from Python, which is running in Ruby
There are still some issues (running Python code in Ruby didn't seem to work) If you run into any issues let us know - ideally file a bug at http://ironruby.codeplex.com or http://ironpython.codeplex.com including a repro. We would like to make the language interop as smooth as possible. Thanks, Tomas -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Douglas S. Blank Sent: Monday, May 11, 2009 10:06 AM To: Discussion of IronPython Subject: [IronPython] Running Ruby code from Python, which is running in Ruby Perhaps you've seen this, but I ran across Tomáš Matoušek's blog this weekend http://blog.tomasm.net/category/ironruby/ where he describes a little interactive Ruby shell that works something like: $ irb.exe repl.rb rb class C rb| def say_hello caller rb| puts #{caller} says hello to Ruby rb| end rb| end = nil Now, he switches languages on the fly: rb #py Now, from Python he imports and runs the Ruby class in Python: py import C py c = C() py c.say_hello(Python) Python says hello to Ruby I thought I'd try this in the educational DLR editor/shell that we're developing in C# (at http://pyjamaproject.org/Pyjama ) and it works! There are still some issues (running Python code in Ruby didn't seem to work), and you need the latest drop of the DLR (I used 23458): http://www.codeplex.com/dlr/SourceControl/ListDownloadableCommits.aspx which isn't stable. But, the proof of concept is fantastic to see after all of the hard work. Best of all, the same DLLs allow all this to work on Linux and Mac OSX too, thanks to Mono. This means that you can write and compile a library *once* in whatever language you want, use it from other languages, on whatever operating system you want. Wow. Thank you to all those that are making this possible! (And more on our DLR IDE soon...) -Doug -- Douglas S. Blank Director, Institute for Personal Robots in Education (IPRE) http://www.roboteducation.org Chair, and Associate Professor, Computer Science, Bryn Mawr College http://cs.brynmawr.edu/~dblank (610)526-6501 ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Re: [IronPython] MissingMemberException on 2.6
Right. Going a bit mad trying to fix this :-) Tried a bit of reinstalling and rebooting to no avail. Log Name: Application Source:Application Error Date: 11/05/2009 20:22:23 Event ID: 1000 Task Category: (100) Level: Error Keywords: Classic User: N/A Computer: kennel Description: Faulting application name: DIE.exe, version: 0.0.0.0, time stamp: 0x4a0878d9 Faulting module name: KERNELBASE.dll, version: 6.1.7100.0, time stamp: 0x49eea60f Exception code: 0xe0434f4d Fault offset: 0xb4f4 Faulting process id: 0x%9 Faulting application start time: 0x%10 Faulting application path: %11 Faulting module path: %12 Report Id: %13 Event Xml: Event xmlns=http://schemas.microsoft.com/win/2004/08/events/event; System Provider Name=Application Error / EventID Qualifiers=01000/EventID Level2/Level Task100/Task Keywords0x80/Keywords TimeCreated SystemTime=2009-05-11T19:22:23.0Z / EventRecordID2273/EventRecordID ChannelApplication/Channel Computerkennel/Computer Security / /System EventData DataDIE.exe/Data Data0.0.0.0/Data Data4a0878d9/Data DataKERNELBASE.dll/Data Data6.1.7100.0/Data Data49eea60f/Data Datae0434f4d/Data Datab4f4/Data /EventData /Event Interestingly if I try to ngen IronPython.dll I get: WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\M icrosoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure lo gging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fus ion!EnableLog]. while resolving 0x100014e - Microsoft.Linq.Expressions.ArgumentType. Warning: System.IO.FileNotFoundException: Could not load file or assembly 'Micro soft.Scripting.Core, Version=0.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad 364e35' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.Scripting.Core, Version=0.9.0.0, Culture=neutral, PublicKe yToken=31bf3856ad364e35' Any suggestions appreciated!! Carrying on... Thanks, Davy On Mon, May 11, 2009 at 7:21 AM, Davy Mitchell daftspan...@gmail.com wrote: Hi Curt, Sorry reported the wrong version there. I run the 2.6 interpreter but have hard coded the build scripts to 2.01 ipy and the target folder has the 2.01 binaries. So it is all 2.01. Just tried the (same) compiled version on XP with the same result. I built a console app without issue which ran so looks like my code is doing something different :-) Seems like I need to spend time narrowing down what is new since my last build. I have introduced threading, use of dir (for autocomplete) and changed external process handling so there is potential for something to be up there. Thanks. Davy Mitchell On Sun, May 10, 2009 at 9:19 PM, Curt Hagenlocher c...@hagenlocher.org wrote: I don't think that this: DataMicrosoft.Scripting/Data Data0.9.0.0/Data is the right AssemblyVersion for the 2.6 alpha. I would expect something like 0.9.5.1. Is it possible that you're compiling with a different version of IronPython than you think? On Sun, May 10, 2009 at 12:27 PM, Davy Mitchell daftspan...@gmail.com wrote: Hi Guys, I am on 2.6 Beta on Windows 7 7100 and getting MissingMemberException when I compile to an EXE. http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=20623 I've tried adding the references suggest on the mailing list: clr.AddReference('System') clr.AddReference('mscorlib') But they were already there which suggests I have hit this before. This all compiled and ran fine before I reinstalled the OS. Anything else I can look at? - Event xmlns=http://schemas.microsoft.com/win/2004/08/events/event; - System Provider Name=Windows Error Reporting / EventID Qualifiers=01001/EventID Level4/Level Task0/Task Keywords0x80/Keywords TimeCreated SystemTime=2009-05-10T19:16:21.0Z / EventRecordID2149/EventRecordID ChannelApplication/Channel Computerkennel/Computer Security / /System - EventData Data566025849/Data Data5/Data DataCLR20r3/Data DataNot available/Data Data0/Data Datadie.exe/Data Data0.0.0.0/Data Data4a0727eb/Data DataMicrosoft.Scripting/Data Data0.9.0.0/Data Data49906349/Data Data812/Data Data144/Data DataSystem.MissingMemberException/Data Data / DataC:\Users\daftspaniel\AppData\Local\Temp\WERC11B.tmp.WERInternalMetadata.xml/Data DataC:\Users\daftspaniel\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_die.exe_a64e2c7542736d65947d996e2ce5fb7d5b383d1_10b50642/Data Data / Data0/Data Data008e52f9-3d97-11de-9bf6-0019b95c9ce7/Data Data0/Data /EventData /Event Thanks, Davy ___ Users mailing list Users@lists.ironpython.com
Re: [IronPython] MissingMemberException on 2.6
When you say you're running the 2.6 interpreter does that mean you're using 2.6 to compile and then run against 2.0? If so that probably won't work. Is there any chance you could attach a debugger to the dieing process and get the managed stack trace where things are blowing up? From: users-boun...@lists.ironpython.com [users-boun...@lists.ironpython.com] On Behalf Of Davy Mitchell [daftspan...@gmail.com] Sent: Monday, May 11, 2009 2:28 PM To: Discussion of IronPython Subject: Re: [IronPython] MissingMemberException on 2.6 Right. Going a bit mad trying to fix this :-) Tried a bit of reinstalling and rebooting to no avail. Log Name: Application Source:Application Error Date: 11/05/2009 20:22:23 Event ID: 1000 Task Category: (100) Level: Error Keywords: Classic User: N/A Computer: kennel Description: Faulting application name: DIE.exe, version: 0.0.0.0, time stamp: 0x4a0878d9 Faulting module name: KERNELBASE.dll, version: 6.1.7100.0, time stamp: 0x49eea60f Exception code: 0xe0434f4d Fault offset: 0xb4f4 Faulting process id: 0x%9 Faulting application start time: 0x%10 Faulting application path: %11 Faulting module path: %12 Report Id: %13 Event Xml: Event xmlns=http://schemas.microsoft.com/win/2004/08/events/event; System Provider Name=Application Error / EventID Qualifiers=01000/EventID Level2/Level Task100/Task Keywords0x80/Keywords TimeCreated SystemTime=2009-05-11T19:22:23.0Z / EventRecordID2273/EventRecordID ChannelApplication/Channel Computerkennel/Computer Security / /System EventData DataDIE.exe/Data Data0.0.0.0/Data Data4a0878d9/Data DataKERNELBASE.dll/Data Data6.1.7100.0/Data Data49eea60f/Data Datae0434f4d/Data Datab4f4/Data /EventData /Event Interestingly if I try to ngen IronPython.dll I get: WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\M icrosoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure lo gging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fus ion!EnableLog]. while resolving 0x100014e - Microsoft.Linq.Expressions.ArgumentType. Warning: System.IO.FileNotFoundException: Could not load file or assembly 'Micro soft.Scripting.Core, Version=0.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad 364e35' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.Scripting.Core, Version=0.9.0.0, Culture=neutral, PublicKe yToken=31bf3856ad364e35' Any suggestions appreciated!! Carrying on... Thanks, Davy On Mon, May 11, 2009 at 7:21 AM, Davy Mitchell daftspan...@gmail.com wrote: Hi Curt, Sorry reported the wrong version there. I run the 2.6 interpreter but have hard coded the build scripts to 2.01 ipy and the target folder has the 2.01 binaries. So it is all 2.01. Just tried the (same) compiled version on XP with the same result. I built a console app without issue which ran so looks like my code is doing something different :-) Seems like I need to spend time narrowing down what is new since my last build. I have introduced threading, use of dir (for autocomplete) and changed external process handling so there is potential for something to be up there. Thanks. Davy Mitchell On Sun, May 10, 2009 at 9:19 PM, Curt Hagenlocher c...@hagenlocher.org wrote: I don't think that this: DataMicrosoft.Scripting/Data Data0.9.0.0/Data is the right AssemblyVersion for the 2.6 alpha. I would expect something like 0.9.5.1. Is it possible that you're compiling with a different version of IronPython than you think? On Sun, May 10, 2009 at 12:27 PM, Davy Mitchell daftspan...@gmail.com wrote: Hi Guys, I am on 2.6 Beta on Windows 7 7100 and getting MissingMemberException when I compile to an EXE. http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=20623 I've tried adding the references suggest on the mailing list: clr.AddReference('System') clr.AddReference('mscorlib') But they were already there which suggests I have hit this before. This all compiled and ran fine before I reinstalled the OS. Anything else I can look at? - Event xmlns=http://schemas.microsoft.com/win/2004/08/events/event; - System Provider Name=Windows Error Reporting / EventID Qualifiers=01001/EventID Level4/Level Task0/Task Keywords0x80/Keywords TimeCreated SystemTime=2009-05-10T19:16:21.0Z / EventRecordID2149/EventRecordID ChannelApplication/Channel Computerkennel/Computer Security / /System - EventData Data566025849/Data Data5/Data DataCLR20r3/Data DataNot available/Data Data0/Data Datadie.exe/Data Data0.0.0.0/Data Data4a0727eb/Data DataMicrosoft.Scripting/Data Data0.9.0.0/Data Data49906349/Data
Re: [IronPython] MissingMemberException on 2.6
Hi Dino, When you say you're running the 2.6 interpreter does that mean you're using 2.6 to compile and then run against 2.0? If so that probably won't work. No - all building is done using 2.01 and 2.01 assemblies are used in the target bin folder. I've uninstalled 2.6 now just to rule it out altogether. Is there any chance you could attach a debugger to the dieing process and get the managed stack trace where things are blowing up? Think I've narrowed it down partly to the use of __name__ in the main script (which is not set to '__main__' when compiled) - easy to avoid that one. This would explain why the app sometimes did nothing! As I kept getting different results when troubleshooting this with different errors I suspect something was up with this PC install also. Can't get a repro or the real thing to consistently write an error to the event log so nothing to report for now :-) Thanks for the suggestions, Davy Mitchell ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Re: [IronPython] Running Ruby code from Python, which is running in Ruby
Wow - the Pyjama Project looks very impressive! Looking forward to trying it out. Michael Douglas S. Blank wrote: Perhaps you've seen this, but I ran across Tomáš Matoušek’s blog this weekend http://blog.tomasm.net/category/ironruby/ where he describes a little interactive Ruby shell that works something like: $ irb.exe repl.rb rb class C rb| def say_hello caller rb| puts #{caller} says hello to Ruby rb| end rb| end = nil Now, he switches languages on the fly: rb #py Now, from Python he imports and runs the Ruby class in Python: py import C py c = C() py c.say_hello(Python) Python says hello to Ruby I thought I'd try this in the educational DLR editor/shell that we're developing in C# (at http://pyjamaproject.org/Pyjama ) and it works! There are still some issues (running Python code in Ruby didn't seem to work), and you need the latest drop of the DLR (I used 23458): http://www.codeplex.com/dlr/SourceControl/ListDownloadableCommits.aspx which isn't stable. But, the proof of concept is fantastic to see after all of the hard work. Best of all, the same DLLs allow all this to work on Linux and Mac OSX too, thanks to Mono. This means that you can write and compile a library *once* in whatever language you want, use it from other languages, on whatever operating system you want. Wow. Thank you to all those that are making this possible! (And more on our DLR IDE soon...) -Doug -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Re: [IronPython] Groovy on the DLR
Interesting. But if you look at the author's blog at http://gavingrover.blogspot.com/2009/05/groovys-groovier-roadmap.html, it sounds like the DLR part is a dead-end and that he plans to move back to Java. On Sun, May 10, 2009 at 12:57 AM, Dody Gunawinata empirebuil...@gmail.comwrote: http://groovy.codeplex.com/ -- nomadlife.org ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Re: [IronPython] adodbapi with ado.net? (on MONO?)
In principle, using ADO.NET and a purely managed database driver would eliminate most native - managed transitions. So in particular, you shouldn't need to marshal string data back and forth any more. On the other hand, database and network I/O is still much more of a bottleneck than local operations ever could be... How well does adodbapi work as a 64-bit process? Does it just automatically use a 64-bit version of ADO? On Mon, May 11, 2009 at 8:32 AM, Vernon Cole vernondc...@gmail.com wrote: Question for the group: If I were to fork a version of adodbapi which used ado.net (rather than COM ado) ... 1) would it work any better/faster than the existing code on Windows? 2) is there any chance that it would run under MONO on Linux? -- Vernon Cole ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Re: [IronPython] Silverlight Application Hosting IronPython
I don't know hardly anything about Silverlight, but it might be useful to know what error message you're getting when you fail to load System.Windows. Or if I misread and you're actually failing to import something from the System.Windows namespace in Python code, then it would be good to know what symbols you're trying to import. Hopefully Jimmy will have something to say about the XAP import issue now that he's back from RailsConf :). On Sat, May 9, 2009 at 4:30 AM, Michael Foord fuzzy...@voidspace.org.ukwrote: Hello guys, I'm having problems with a C# Silverlight application that hosts IronPython. First of all, this page http://sdlsdk.codeplex.com/Wiki/View.aspx?title=Hosting implies that the following code should load assemblies for the hosted IronPython code: foreach (string name in new string[] { mscorlib, System, System.Windows, System.Windows.Browser, System.Net }) { runtime.Host.PlatformAdaptationLayer.LoadAssembly(name); } It doesn't - an import from System.Windows fails. The following code works as in a normal hosted environment: runtime.LoadAssembly(typeof(String).Assembly); runtime.LoadAssembly(typeof(Uri).Assembly); runtime.LoadAssembly(typeof(Canvas).Assembly); Secondly, which is much worse but may be related, imports from Python files inside the xap fail when IronPython is hosted. I am using the following code: ScriptRuntimeSetup setup = Python.CreateRuntimeSetup(null); setup.HostType = typeof(Microsoft.Scripting.Silverlight.BrowserScriptHost); ScriptRuntime runtime = new ScriptRuntime(setup); ScriptEngine pe = Python.GetEngine(runtime); ScriptScope scope = pe.CreateScope(); ScriptSource source = pe.CreateScriptSourceFromString(python_source, SourceCodeKind.Statements); source.Execute(scope); How do I setup the platform adaptation layer so that it can import from inside the xap? All the best, Michael -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Re: [IronPython] FePy status update
On #4 I'm going to check-in the fix today - sorry for the delay! -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Seo Sanghyeon Sent: Saturday, May 09, 2009 3:05 AM To: Discussion of IronPython Subject: [IronPython] FePy status update FePy seems to be dead, right? Sorry about that. This is a brief status update. And I could use it later as a changelog. How convinient. 1. I am now testing IronPython with CPython 2.6 standard library. FePy used 2.4 so far. Be sure to check collections.py issue Dave mentions here: http://knowbody.livejournal.com/13271.html 2. NAnt build system has been updated to the latest source layout change. My goal still is to do away with NAnt and improve Mono's implementation of MSBuild to build IronPython out of the box, but that hasn't progressed a bit, sorry. Dave wrote about the source layout change here: http://knowbody.livejournal.com/13980.html 3. ExtensionAttribute problem mentioned in the last December is gone. Mono bug on reference equality with generic constraints mentioned in March is still there. FePy trunk patches/latest has a workaround for this. Net result is that latest IronPython source drops from CodePlex compiles and runs with Mono! And no compiler warnings! (This has been my pet peeve, you know.) And I had no problem keeping it that way for some time. I updated IronPython on Mono reports page with relevant mails. http://fepy.sourceforge.net/doc/ironpython-mono-report.html 4. There is an IronPython bug that manifests only on Mono due to newline difference. The symptom is that expressions are not printed in interactive console. This took some time to debug, but there is a fix now. http://lists.ironpython.com/pipermail/users-ironpython.com/2009-April/010140.html 5. Current build on my local system generally works. It imports urllib and urllib2. This is quite a stress test... Not just import, but downloading webpages work too. On the other hand, importing decimal crashes Mono in segmentation fault! I suspect this has to do with move to 2.6 standard library and its abstract base classes meta machineries, but who knows. -- Seo Sanghyeon ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Re: [IronPython] adodbapi with ado.net? (on MONO?)
2009/5/12 Vernon Cole vernondc...@gmail.com: Question for the group: If I were to fork a version of adodbapi which used ado.net (rather than COM ado) ... 1) would it work any better/faster than the existing code on Windows? 2) is there any chance that it would run under MONO on Linux? 1. No idea. 2. Yes. -- Seo Sanghyeon ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com