Re: [IronPython] wierd import problem

2007-04-23 Thread Tony Djordjevski
t; From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tony > Djordjevski > Sent: Monday, April 23, 2007 2:43 PM > To: Discussion of IronPython > Subject: Re: [IronPython] wierd import problem > > Dino, > > What's ipyd? I noticed in your example that w

Re: [IronPython] wierd import problem

2007-04-23 Thread Dino Viehland
eport and sorry for messing up the repro. Hopefully one of those workarounds will work for you. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tony Djordjevski Sent: Monday, April 23, 2007 2:43 PM To: Discussion of IronPython Subject: Re: [IronPython]

Re: [IronPython] wierd import problem

2007-04-23 Thread Tony Djordjevski
_import__##7 > SystemError: F:\repro\foo\Foo\bin\Debug\Foo.exe is not pre-compiled module; > try again after deleting it. >>>> ^Z > > F:\repro\foo\Foo\bin\Debug>ipyd > IronPython console: IronPython 2.0 (2.0.0.0) on .NET 2.0.50727.1318 > Copyright (c) Microsoft Corpor

Re: [IronPython] wierd import problem

2007-04-23 Thread Dino Viehland
ka Sent: Monday, April 23, 2007 2:29 PM To: Discussion of IronPython Subject: Re: [IronPython] wierd import problem On 4/24/07, Dino Viehland <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote: Oh, it seems to be the presence of the '.dll' in the filename (although I still ha

Re: [IronPython] wierd import problem

2007-04-23 Thread Simon Dahlbacka
On 4/24/07, Dino Viehland <[EMAIL PROTECTED]> wrote: Oh, it seems to be the presence of the '.dll' in the filename (although I still haven't looked too deeply to understand the exception). See below for the 3 different variations I've tried. The .NET loader will append .dll/.exe for you automa

Re: [IronPython] wierd import problem

2007-04-23 Thread Dino Viehland
t Corporation. All rights reserved. >>> import clr >>> clr.AddReference('foo.bar') >>> import Foo.Bar >>> dir(Foo.Bar) ['Bar'] >>> -Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tony Djordjevski Sen

Re: [IronPython] wierd import problem

2007-04-23 Thread Tony Djordjevski
Hi Dino, Sorry, I should have mentioned in my original post that I've already tried to get it to work with all the AddReference* methods. AddReferenceToFile was just the last example that I tried at the time I sent the original post. Currently I'm still getting the same error. I've even tried

Re: [IronPython] wierd import problem

2007-04-23 Thread Dino Viehland
I haven't had a chance to track down what the underlying problem here is (and suspect this is a bug), but is there a reason you can't do: >>> import clr >>> clr.AddReference('Foo.bar.dll') >>> import Foo.Bar This seems to work. The only reason to use AddReferenceToFile is really if you are dea