<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:12pt">This is a problem with the current installer for Python.NET: It doesn't have support for .NET 2.0.<br><br>You'll need to compile from source (which is quite easy) in order to get 2.0 support (and support for 2.0 DLLs)<br><br>Hopefully someone will have gotten around to fixing the ClrModule so that Python .NET will compile properly for 2.0.<br><div> </div><a href="http://www.urulive.com/blog/"><img src="http://dnijazzclub.com/grassroots/uru-live/01.gif"></a><br>Uru Live IRC Chat: <span style="font-weight: bold;">unreal.JustIRC.net #uru</span><br><div style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Chris Spencer <chrisspen@gmail.com><br>To: pythondotnet@python.org<br>Sent:
Tuesday, February 20, 2007 10:10:01 AM<br>Subject: Re: [Python.NET] Using Third Party C# Libraries<br><br><div>Yes, I have the .NET Framework SDK for both 1.1 and 2.0 installed.<br><br>On 2/20/07, Maksim Kozyarchuk <mkozyarchuk@funddevelopmentservices.com> wrote:<br>><br>> Haven't seen this before. Sorry.<br>><br>><br>> Do you have .NET 2.0 installed on your machine?<br>><br>><br>> -----Original Message-----<br>> From: Chris Spencer [mailto:chrisspen@gmail.com]<br>> Sent: Tuesday, February 20, 2007 12:59 PM<br>> To: Maksim Kozyarchuk<br>> Cc: pythondotnet@python.org<br>> Subject: Re: [Python.NET] Using Third Party C# Libraries<br>><br>> I've copied SharpNeatLib.dll to C:\Program Files\PythonNet, C:\Program<br>> Files\PythonNet\Lib, C:\Program Files\PythonNet\Lib\site-packages,<br>> C:\Program Files\Python24, C:\Program Files\Python24\Lib, and<br>> C:\Program
Files\Python24\Lib\site-packages but it still raises that<br>> exception "ImportError: cannot import name SharpNeatLib".<br>><br>> Using Assembly.Load("SharpNeatLib.dll") raises a different exception:<br>><br>> >>> Assembly.Load('SharpNeatLib.dll')<br>> Traceback (most recent call last):<br>> File "<stdin>", line 1, in ?<br>> CLR.System.BadImageFormatException: Version 2.0 is not a compatible<br>> version.<br>> at System.Reflection.Assembly.nLoadImage(Byte[] rawAssembly, Byte[]<br>> rawSymbol<br>> Store, Evidence evidence, StackCrawlMark& stackMark)<br>> at System.Reflection.Assembly.Load(Byte[] rawAssembly)<br>><br>> Would this indicate that the SharpNeatLib.dll was built with a C#<br>> compiler incompatible with what Python.Net was built with?<br>><br>>
Chris<br>_________________________________________________<br>Python.NET mailing list - PythonDotNet@python.org<br><a target="_blank" href="http://mail.python.org/mailman/listinfo/pythondotnet">http://mail.python.org/mailman/listinfo/pythondotnet</a><br></div></div><br></div></div><br>
                <hr size=1> <a href="http://us.rd.yahoo.com/evt=40705/*http://mrd.mail.yahoo.com/try_beta?.intl=ca"><b>All new Yahoo! Mail - </b></a>
<hr size=1>Get a sneak peak at messages with a handy reading pane.</body></html>