<HTML dir=ltr><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6001.18099" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText90095 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>nah, doesnt work here:</FONT></DIV>
<DIV dir=ltr>D:\projects\pyov&gt;helloform.py</DIV>
<DIV dir=ltr>Unbehandelte Ausnahme: System.IO.FileLoadException: Die Datei oder Assembly Python.Runtime, Version=2.0.0.2, Culture=neu<BR>tral, PublicKeyToken=64e14e845abf2e60 oder eine Abhängigkeit davon wurde nicht gefunden. Die gefundene Manifestdefinitio<BR>n der Assembly stimmt nicht mit dem Assemblyverweis überein. (Ausnahme von HRESULT: 0x80131040)<BR>Dateiname: Python.Runtime, Version=2.0.0.2, Culture=neutral, PublicKeyToken=64e14e845abf2e60<BR>&nbsp;&nbsp; bei Python.Runtime.PythonConsole.Main(String[] args)</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>I probably have to compile it.</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>Is there a way to find out which .NET version is installed?</DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> Feihong Hsu [mailto:hsu.feihong@yahoo.com]<BR><B>Gesendet:</B> Di 30.09.2008 18:56<BR><B>An:</B> Craig Farrow; Dirk Krause<BR><B>Cc:</B> pythondotnet@python.org<BR><B>Betreff:</B> Re: [Python.NET] error messages<BR></FONT><BR></DIV>
<DIV>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top>This problem sounds familiar. Perhaps you guys are using .NET 2.0 with SP1 applied? Then this blog post of mine might help:<BR><BR>http://feihonghsu.blogspot.com/2008/02/pythonnet-20-for-net-sp1_15.html<BR><BR>If you want, you can try the binary that I made instead of applying the patch yourself.<BR><BR><BR>--- On <B>Tue, 9/30/08, Dirk Krause <I>&lt;dirk.krause@pixelpark.com&gt;</I></B> wrote:<BR>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">From: Dirk Krause &lt;dirk.krause@pixelpark.com&gt;<BR>Subject: Re: [Python.NET] error messages<BR>To: "Craig Farrow" &lt;craig_farrow@sil.org&gt;<BR>Cc: pythondotnet@python.org<BR>Date: Tuesday, September 30, 2008, 8:50 AM<BR><BR>
<DIV id=yiv593598479>
<DIV id=idOWAReplyText91230 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>right you are again. splitter works here, too.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Can you confirm that helloform runs when you disable line 33?</FONT></DIV>
<DIV dir=ltr>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Register the event handler<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # self.button.Click += self.button_Click<BR></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> Craig Farrow [mailto:craig_farrow@sil.org]<BR><B>Gesendet:</B> Di 30.09.2008 15:25<BR><B>An:</B> Dirk Krause<BR><B>Cc:</B> pythondotnet@python.org<BR><B>Betreff:</B> Re: AW: [Python.NET] error messages<BR></FONT><BR></DIV>
<DIV>Ah, yes. On my system (Vista, Python 2.4 or 2.5, pythonnet-2.0-alpha2) only splitter.py works out of the three demos. I haven't tried to figure out why...<BR><BR>Craig.<BR><BR>9/30/2008 9:13 PM dï, Dirk Krause pi&#353;dimi&#353;: 
<BLOCKQUOTE cite="" type="cite">
<DIV id=idOWAReplyText37734 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>much better!&nbsp;&nbsp; ...python itself runs now.</FONT></DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>but not really good either, trying to run helloform.py gives me:</FONT></DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>D:\projects\pyov&gt;helloform.py</DIV>
<DIV dir=ltr>Unbehandelte Ausnahme: System.TypeInitializationException: Der Typeninitialisierer für Python.Runtime.CodeGenerator hat<BR>eine Ausnahme verursacht. ---&gt; System.InvalidCastException: Das Objekt des Typs System.Reflection.Module kann nicht in T<BR>yp System.Reflection.Emit.ModuleBuilder umgewandelt werden.<BR>&nbsp;&nbsp; bei System.Reflection.Emit.AssemblyBuilderData.GetInMemoryAssemblyModule()<BR>&nbsp;&nbsp; bei System.AppDomain.InternalDefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, String dir, Evide<BR>nce evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions, St<BR>ackCrawlMark&amp; stackMark, IEnumerable`1 unsafeAssemblyAttributes)<BR>&nbsp;&nbsp; bei System.AppDomain.DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access)<BR>&nbsp;&nbsp; bei Python.Runtime.CodeGenerator..cctor()<BR>&nbsp;&nbsp; --- Ende der internen Ausnahmestapelüberwachung ---<BR>&nbsp;&nbsp; bei Python.Runtime.DelegateManager.GetDispatcher(Type dtype)<BR>&nbsp;&nbsp; bei Python.Runtime.DelegateManager.GetDelegate(Type dtype, IntPtr callable)<BR>&nbsp;&nbsp; bei Python.Runtime.EventObject.AddEventHandler(IntPtr target, IntPtr handler)<BR>&nbsp;&nbsp; bei Python.Runtime.EventBinding.nb_inplace_add(IntPtr ob, IntPtr arg)<BR>&nbsp;&nbsp; bei Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)<BR>&nbsp;&nbsp; bei Python.Runtime.MetaType.tp_call(IntPtr tp, IntPtr args, IntPtr kw)<BR>&nbsp;&nbsp; bei Python.Runtime.Runtime.Py_Main(Int32 argc, String[] argv)<BR>&nbsp;&nbsp; bei Python.Runtime.PythonConsole.Main(String[] args)</DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> Craig Farrow [<A class=moz-txt-link-freetext href="mailto:craig_farrow@sil.org" target=_blank rel=nofollow>mailto:craig_farrow@sil.org</A>]<BR><B>Gesendet:</B> Di 30.09.2008 14:53<BR><B>An:</B> Dirk Krause<BR><B>Cc:</B> <A class=moz-txt-link-abbreviated href="mailto:pythondotnet@python.org" target=_blank rel=nofollow>pythondotnet@python.org</A><BR><B>Betreff:</B> Re: [Python.NET] error messages<BR></FONT><BR></DIV>
<DIV>Try the UCS2 directory.<BR><BR>Craig.<BR><BR>9/30/2008 5:54 PM dï, Dirk Krause pi&#353;dimi&#353;: 
<BLOCKQUOTE cite="" type="cite">
<DIV><FONT face=Arial color=#000000 size=2>Hi,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I get the following error message when trying to run the python.exe from python2.5-UCS4 (I have a fully installed Python 2.5), any ideas? Vista professional here.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial color=#000000 size=2>... unfortunately in german:</FONT></DIV>
<DIV><FONT face=Arial size=2>"""</FONT></DIV>
<DIV>Unbehandelte Ausnahme: System.IO.FileLoadException: Die Datei oder Assembly Python.Runtime, Version=0.0.0.0, Culture=neu<BR>tral, PublicKeyToken=null oder eine Abhängigkeit davon wurde nicht gefunden. Die gefundene Manifestdefinition der Assemb<BR>ly stimmt nicht mit dem Assemblyverweis überein. (Ausnahme von HRESULT: 0x80131040)<BR>Dateiname: Python.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null<BR>&nbsp;&nbsp; bei Python.Runtime.Runtime.PyUnicode_FromUnicode(String s, Int32 size)<BR>&nbsp;&nbsp; bei Python.Runtime.Runtime.Initialize()<BR>&nbsp;&nbsp; bei Python.Runtime.PythonEngine.Initialize()<BR>&nbsp;&nbsp; bei Python.Runtime.PythonConsole.Main(String[] args)</DIV>
<DIV>"""</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>&nbsp; Dirk</DIV><PRE><HR width="90%" SIZE=4><BR>_________________________________________________<BR>Python.NET mailing list - <A class=moz-txt-link-abbreviated href="mailto:PythonDotNet@python.org" target=_blank rel=nofollow>PythonDotNet@python.org</A><BR><A class=moz-txt-link-freetext href="http://mail.python.org/mailman/listinfo/pythondotnet" target=_blank rel=nofollow>http://mail.python.org/mailman/listinfo/pythondotnet</A></PRE></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV></DIV><PRE>_________________________________________________<BR>Python.NET mailing list - PythonDotNet@python.org<BR>http://mail.python.org/mailman/listinfo/pythondotnet</PRE></BLOCKQUOTE></TD></TR></TBODY></TABLE><BR></DIV></BODY></HTML>