<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.gmailquote
        {mso-style-name:gmail_quote;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Argh, no it wasn’t… thanks for catching that. It looks like it’s
broken in v1.1 when I use it normally, that must have been what I did wrong
before.. Ok, I’ll have to look into this one deeper </span><span
style='font-size:11.0pt;font-family:Wingdings;color:#1F497D'>J</span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> users-bounces@lists.ironpython.com
[mailto:users-bounces@lists.ironpython.com] <b>On Behalf Of </b>Simon Dahlbacka<br>
<b>Sent:</b> Monday, April 23, 2007 2:29 PM<br>
<b>To:</b> Discussion of IronPython<br>
<b>Subject:</b> Re: [IronPython] wierd import problem<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<p class=MsoNormal><span class=gmailquote>On 4/24/07, <b>Dino Viehland</b> <<a
href="mailto:dinov@exchange.microsoft.com">dinov@exchange.microsoft.com</a>>
wrote:</span><o:p></o:p></p>
</div>
<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>
<p class=MsoNormal>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 automatically. <br>
<br>
F:\repro\foo\Foo\bin\Debug>dir<br>
Volume in drive F is New Volume<br>
Volume Serial Number is F62E-82C1<br>
<br>
Directory of F:\repro\foo\Foo\bin\Debug<br>
<br>
04/23/2007 01:45
PM <DIR> .<br>
04/23/2007 01:45
PM <DIR> ..
<br>
04/23/2007 01:42
PM
4,096 Foo.Bar.dll<br>
04/23/2007 01:42
PM 11,776
Foo.Bar.pdb<br>
04/23/2007 01:42
PM
4,096 Foo.exe<br>
04/23/2007 01:42 PM 11,776
Foo.pdb<br>
04/10/2007 10:17
AM 71,016
ipy.exe<br>
04/10/2007 10:17
AM 62,824
ipyw.exe<br>
04/10/2007 10:17
AM 50,536
IronMath.dll<br>
04/10/2007 10:17 AM
1,373,544 IronPython.dll<br>
04/23/2007 01:45 PM <DIR> tmp
<br>
8
File(s) 1,589,664 bytes<br>
3
Dir(s) 35,566,551,040 bytes free<br>
<br>
F:\repro\foo\Foo\bin\Debug>.\ipy.exe<br>
IronPython 1.1 (1.1) on .NET 2.0.50727.1318<br>
Copyright (c) Microsoft Corporation. All rights reserved. <br>
>>> import clr<br>
>>> clr.AddReferenceToFile('Foo.bar.dll')<br>
>>> import Foo.Bar<br>
Traceback (most recent call last):<br>
File , line 0, in <stdin>##14<br>
File , line 0, in __import__##7 <br>
SystemError: F:\repro\foo\Foo\bin\Debug\Foo.exe is not pre-compiled module; try
again after deleting it.<br>
>>> ^Z<br>
<br>
F:\repro\foo\Foo\bin\Debug>.\ipy.exe<br>
IronPython 1.1 (1.1) on .NET 2.0.50727.1318 <br>
Copyright (c) Microsoft Corporation. All rights reserved.<br>
>>> import clr<br>
>>> clr.AddReference('Foo.bar.dll')<br>
>>> import Foo.Bar<br>
Traceback (most recent call last):<br>
File , line 0, in <stdin>##14 <br>
File , line 0, in __import__##7<br>
SystemError: F:\repro\foo\Foo\bin\Debug\Foo.exe is not pre-compiled module; try
again after deleting it.<br>
>>> ^Z<br>
<br>
F:\repro\foo\Foo\bin\Debug>ipyd<br>
IronPython console: IronPython 2.0 (<a href="http://2.0.0.0">2.0.0.0</a>) on
.NET 2.0.50727.1318<br>
Copyright (c) Microsoft Corporation. All rights reserved.<br>
>>> import clr<br>
>>> clr.AddReference('foo.bar')<br>
>>> import Foo.Bar<br>
>>> dir(Foo.Bar)<br>
['Bar']<br>
>>><o:p></o:p></p>
</blockquote>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>Was the switching to another executable intentional?<br>
<o:p></o:p></p>
</div>
</div>
</body>
</html>