[Python.NET] error messages

Craig Farrow craig_farrow at sil.org
Tue Sep 30 15:25:10 CEST 2008


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...

Craig.

9/30/2008 9:13 PM dï, Dirk Krause pišdimiš:
> much better!   ...python itself runs now.
>  
> but not really good either, trying to run helloform.py gives me:
>  
> D:\projects\pyov>helloform.py
> Unbehandelte Ausnahme: System.TypeInitializationException: Der 
> Typeninitialisierer für Python.Runtime.CodeGenerator hat
> eine Ausnahme verursacht. ---> System.InvalidCastException: Das Objekt 
> des Typs System.Reflection.Module kann nicht in T
> yp System.Reflection.Emit.ModuleBuilder umgewandelt werden.
>    bei 
> System.Reflection.Emit.AssemblyBuilderData.GetInMemoryAssemblyModule()
>    bei System.AppDomain.InternalDefineDynamicAssembly(AssemblyName 
> name, AssemblyBuilderAccess access, String dir, Evide
> nce evidence, PermissionSet requiredPermissions, PermissionSet 
> optionalPermissions, PermissionSet refusedPermissions, St
> ackCrawlMark& stackMark, IEnumerable`1 unsafeAssemblyAttributes)
>    bei System.AppDomain.DefineDynamicAssembly(AssemblyName name, 
> AssemblyBuilderAccess access)
>    bei Python.Runtime.CodeGenerator..cctor()
>    --- Ende der internen Ausnahmestapelüberwachung ---
>    bei Python.Runtime.DelegateManager.GetDispatcher(Type dtype)
>    bei Python.Runtime.DelegateManager.GetDelegate(Type dtype, IntPtr 
> callable)
>    bei Python.Runtime.EventObject.AddEventHandler(IntPtr target, 
> IntPtr handler)
>    bei Python.Runtime.EventBinding.nb_inplace_add(IntPtr ob, IntPtr arg)
>    bei Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr 
> args, IntPtr kw)
>    bei Python.Runtime.MetaType.tp_call(IntPtr tp, IntPtr args, IntPtr kw)
>    bei Python.Runtime.Runtime.Py_Main(Int32 argc, String[] argv)
>    bei Python.Runtime.PythonConsole.Main(String[] args)
>
> ------------------------------------------------------------------------
> *Von:* Craig Farrow [mailto:craig_farrow at sil.org]
> *Gesendet:* Di 30.09.2008 14:53
> *An:* Dirk Krause
> *Cc:* pythondotnet at python.org
> *Betreff:* Re: [Python.NET] error messages
>
> Try the UCS2 directory.
>
> Craig.
>
> 9/30/2008 5:54 PM dï, Dirk Krause pišdimiš:
>> Hi,
>>  
>> 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.
>>  
>>  
>> ... unfortunately in german:
>> """
>> Unbehandelte Ausnahme: System.IO.FileLoadException: Die Datei oder 
>> Assembly Python.Runtime, Version=0.0.0.0, Culture=neu
>> tral, PublicKeyToken=null oder eine Abhängigkeit davon wurde nicht 
>> gefunden. Die gefundene Manifestdefinition der Assemb
>> ly stimmt nicht mit dem Assemblyverweis überein. (Ausnahme von 
>> HRESULT: 0x80131040)
>> Dateiname: Python.Runtime, Version=0.0.0.0, Culture=neutral, 
>> PublicKeyToken=null
>>    bei Python.Runtime.Runtime.PyUnicode_FromUnicode(String s, Int32 size)
>>    bei Python.Runtime.Runtime.Initialize()
>>    bei Python.Runtime.PythonEngine.Initialize()
>>    bei Python.Runtime.PythonConsole.Main(String[] args)
>> """
>>  
>> Thanks,
>>   Dirk
>> ------------------------------------------------------------------------
>>
>> _________________________________________________
>> Python.NET mailing list - PythonDotNet at python.org
>> http://mail.python.org/mailman/listinfo/pythondotnet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20080930/f68717a8/attachment.htm>


More information about the PythonDotNet mailing list