[IronPython] Trying to set field to bool, get "TypeError: Argument cannot be null."

2009-07-17 Thread Count László de Almásy
I need some help understanding what I'm doing wrong here. Settings.ALWAYS_DECODE_OBJECTS is set in C# like the following: public bool ALWAYS_DECODE_OBJECTS = true; But trying to set it to "True" in IPy blows up with the following traceback: IronPython 2.0 (2.0.0.0) on .NET 2.0.50727.1433 Type "h

[IronPython] IronPython+Gtk#+.NET?

2009-07-17 Thread Brian Parma
I've been trying to make a simple IronPython+Gtk# app that draws an image to the screen, and I'm having trouble getting it to run in windows (.NET). It's pretty simple so I attached it at the end. It runs fine in Mono on Ubuntu and Windows, but when I try to run it on windows using .NET I get

[IronPython] IronPython 2.6 CodePlex Source Update

2009-07-17 Thread dfugate
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/56686. MODIFIED SOURCES $/IronPython/IronPython_Main/Src/IronPython.Modules/_ctypes/Na

Re: [IronPython] How to set __name__ for scriptengine instance?

2009-07-17 Thread Dino Viehland
Michael wrote: > > Jesse Wiles wrote: > > Hi, > > I looked in the archives a bit but nothing jumped out. I'm trying to > > figure out how to set the __name__ for an embedded engine instance. > > Here's what I'm working with... > > > > __name__ should be set per scope. How about: > > scope.SetV

Re: [IronPython] How to set __name__ for scriptengine instance?

2009-07-17 Thread Michael Foord
Jesse Wiles wrote: Hi, I looked in the archives a bit but nothing jumped out. I'm trying to figure out how to set the __name__ for an embedded engine instance. Here's what I'm working with... __name__ should be set per scope. How about: scope.SetVariable("__name__", "__main__"); Michae

[IronPython] How to set __name__ for scriptengine instance?

2009-07-17 Thread Jesse Wiles
Hi, I looked in the archives a bit but nothing jumped out. I'm trying to figure out how to set the __name__ for an embedded engine instance. Here's what I'm working with... // I'm guessing here; not sure what these options should be and it was not obvious in tracing through the source

Re: [IronPython] Issue 22239 closed as 'by design'

2009-07-17 Thread Curt Hagenlocher
...and here's a reference to the original thread http://www.mail-archive.com/users@lists.ironpython.com/msg08978.html On Fri, Jul 17, 2009 at 2:26 PM, Curt Hagenlocher wrote: > I believe this was fixed for 2.6, but that the fix is too disruptive to > backport (by a long shot!) > > > On Fri, Jul 1

Re: [IronPython] Issue 22239 closed as 'by design'

2009-07-17 Thread Dino Viehland
Michael wrote: > Curt Hagenlocher wrote: > > I believe this was fixed for 2.6, but that the fix is too disruptive > > to backport (by a long shot!) > Ah - so it is just the backport that is closed. Fair enough. Sorry for > the noise. Actually the title is just wrong - this was fixed in 2.0.2 (it's

Re: [IronPython] Issue 22239 closed as 'by design'

2009-07-17 Thread Michael Foord
Curt Hagenlocher wrote: I believe this was fixed for 2.6, but that the fix is too disruptive to backport (by a long shot!) Ah - so it is just the backport that is closed. Fair enough. Sorry for the noise. Michael On Fri, Jul 17, 2009 at 1:55 PM, Michael Foord mailto:fuzzy...@voidspace.org.

Re: [IronPython] Issue 22239 closed as 'by design'

2009-07-17 Thread Curt Hagenlocher
I believe this was fixed for 2.6, but that the fix is too disruptive to backport (by a long shot!) On Fri, Jul 17, 2009 at 1:55 PM, Michael Foord wrote: > Issue 22239 has been closed as 'by design'. > > > http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=22239&ProjectName=IronPython >

Re: [IronPython] Access to current Python engine in C# (Silverlight)

2009-07-17 Thread Michael Foord
Jimmy Schementi wrote: Michael, Oh, sorry to leave you hanging. Here's a SL3 VS solution which imports a python file from C#: http://jimmy.schementi.com/silverlight/foord-repro.zip Thanks - the goal is actually to import a Python module using the *current* Python engine without creating a

Re: [IronPython] Access to current Python engine in C# (Silverlight)

2009-07-17 Thread Jimmy Schementi
Michael, Oh, sorry to leave you hanging. Here's a SL3 VS solution which imports a python file from C#: http://jimmy.schementi.com/silverlight/foord-repro.zip // App.xaml.cs public class EmbeddedSLModule { public static ScriptScope GetModule() { var pyfile = "toimport.py";

[IronPython] Issue 22239 closed as 'by design'

2009-07-17 Thread Michael Foord
Issue 22239 has been closed as 'by design'. http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=22239&ProjectName=IronPython Dino described this as a serious bug when it was pointed out and it is both extremely unintuitive and problematic - why should separate scopes (modules) be link

Re: [IronPython] Problem with Creating Executable using SharpDevelop

2009-07-17 Thread Bruce Bromberek
Kelie- I just went through this process recently myself. My rules of thumb are as follows: *When building the App:* Look at your references to the 5 ironpython DLLs. Decide right now: Are you going to use the ones that ship with SharpDevelop or the ones using that come with IronPython. Choos

[IronPython] IronPython 2.6 CodePlex Source Update

2009-07-17 Thread dfugate
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/56669. ADDED SOURCES $/IronPython/IronPython_Main/Src/Hosts/SilverLight/Microsoft.Scri

Re: [IronPython] Access to current Python engine in C# (Silverlight)

2009-07-17 Thread Michael Foord
I never got a reply to this. The C# code below throws an import error and I want to know if this is my fault or a problem with the IronPython / Silverlight integration. Michael Michael Foord wrote: Ha - dammit, no. With Silverlight this still throws an ImportError when embedded Python code