Hello I thought I posted my previous messages to the list I guess not *confused. I am using IronPython 2.6.1 the latest I believe. and IronPython Zlib for 2.6<br><br>Iron Python is installed to C:\IronPython<br><br>Below is the more useful error message cheers<br>
<br><br>&gt;&gt;&gt; import clr<br>&gt;&gt;&gt; clr.AddReference(&quot;IronPython.Zlib&quot;)<br>Traceback (most recent call last):<br>  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>IOError: System.IO.IOException: Could not add reference to assembly IronPython.Z<br>
lib<br>   at Microsoft.Scripting.Actions.Calls.MethodCandidate.Caller.Call(Object[] arg<br>s, Boolean&amp; shouldOptimize)<br>   at IronPython.Runtime.Types.BuiltinFunction.BuiltinFunctionCaller`2.Call1(Cal<br>lSite site, CodeContext context, TFuncType func, T0 arg0)<br>
   at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite s<br>ite, T0 arg0, T1 arg1, T2 arg2)<br>   at IronPython.Runtime.PythonFunction.FunctionCaller`1.Call1(CallSite site, Co<br>deContext context, Object func, T0 arg0)<br>
   at IronPython.Compiler.Ast.CallExpression.Invoke1Instruction.Run(InterpretedF<br>rame frame)<br>   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)<br>   at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 a<br>
rg1)<br>   at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)<br>   at IronPython.Compiler.PythonScriptCode.Run(Scope scope)<br>   at IronPython.Hosting.PythonCommandLine.&lt;&gt;c__DisplayClass1.&lt;RunOneInteraction<br>
&gt;b__0()<br><br><br><br><br><div class="gmail_quote">On Thu, Jun 3, 2010 at 11:51 AM, Jeff Hardy <span dir="ltr">&lt;<a href="mailto:jdhardy@gmail.com">jdhardy@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Thu, Jun 3, 2010 at 12:04 PM, Michael Foord<br>
<div class="im">&lt;<a href="mailto:fuzzyman@voidspace.org.uk">fuzzyman@voidspace.org.uk</a>&gt; wrote:<br>
</div><div class="im">&gt; I haven&#39;t tried this, but I assume you have to add a reference to the<br>
&gt; assembly before you can import from it. Try:<br>
&gt;<br>
&gt;     import clr<br>
&gt;     clr.AddReference(&#39;IronPython.Zlib&#39;)<br>
&gt;<br>
<br>
</div>This shouldn&#39;t be necessary, as any DLL in the DLLs folder is<br>
automatically referenced, but it is worth trying. If it fails, it<br>
might provide a more useful error message.<br>
<br>
Andrew: You shouldn&#39;t have to set any environment variables to use<br>
IronPython.Zlib; I have a feeling that, for some reason, the DLL is<br>
failing to load. Which versions of IronPython and IronPython.Zlib are<br>
you using? What path is your IronPython installed to?<br>
<font color="#888888"><br>
- Jeff<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
</div></div></blockquote></div><br>