[IronPython] wierd import problem
tony at v-sim.com
Mon Apr 23 21:35:53 CEST 2007
I'm seeing a bit of weirdness when trying to import a dll with a nested
namespace. Actually, I'm not sure if it's a filename issue or a
namespace issue, as the filename of the assembly is named after the
OK, let's say I have two assemblies: Foo.exe and Foo.Bar.dll (I've
attached a simple Visual Studio project to recreate the situation)
I want to "import Foo.Bar", but I'm getting an error concerning Foo.exe
Here's the steps to reproduce:
>>> import clr
>>> import Foo.Bar
Traceback (most recent call last):
File , line 0, in <stdin>##14
File , line 0, in __import__##7
SystemError: C:\Temp\Foo\bin\Debug\Foo.exe is not pre-compiled module;
try again after deleting it.
>>> for ref in clr.References:
... print ref
mscorlib, Version=188.8.131.52, Culture=neutral, PublicKeyToken=b77a5c561934e089
System, Version=184.108.40.206, Culture=neutral, PublicKeyToken=b77a5c561934e089
Foo.Bar, Version=220.127.116.11, Culture=neutral, PublicKeyToken=null
As the output shows, Foo.Bar has been referenced. So what am I doing
wrong that I can't import?
BTW, I'm using IP v1.1 (in case you're wondering).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5011 bytes
Desc: not available
More information about the Ironpython-users