[Mono-list] IronPython Alpha3 on mono 1.2.5
Miguel de Icaza
miguel at novell.com
Fri Aug 31 18:21:47 EDT 2007
Hello,
> I compile using IronPython alpha v3 using VS2005, copied dll's,exe's , etc
> to Linux then at the shell:
I posted a fix on the IronPython mailing list.
Basically, on the Unix case, they try to use a hashtable before it is
initialized; Its a bug in IronPhytohn.
> and got the following:
>
> Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The
> given
> key was not present in the dictionary.
> at
> System.Collections.Generic.Dictionary`2[System.String,System.Type].get_Item
> (System.String ) [0x00000]
> at IronPython.Runtime.SystemState.InitializeBuiltins () [0x00000]
> at IronPython.Runtime.SystemState..ctor () [0x00000]
> at IronPython.Hosting.PythonEngine..ctor
> (IronPython.Hosting.PythonLanguageProvider provider,
> IronPython.PythonEngineOptions engineOptions) [0x00000]
> at IronPython.Hosting.PythonEngine.<.cctor>b__0
> (IronPython.Hosting.PythonLanguageProvider provider,
> IronPython.PythonEngineOptions options) [0x00000]
> at (wrapper delegate-invoke)
> System.MulticastDelegate:invoke_PythonEngine_PythonLanguageProvider_PythonEngineOptions
> (IronPython.Hosting.PythonLanguageProvider,IronPython.PythonEngineOptions)
> at
> Microsoft.Scripting.Hosting.SingletonEngineFactory`3[IronPython.Hosting.PythonEngine,IronPython.PythonEngineOptions,IronPython.Hosting.PythonLanguageProvid
> er].GetInstance (IronPython.Hosting.PythonLanguageProvider ,
> IronPython.PythonEn
> gineOptions ) [0x00000]
> at IronPython.Hosting.PythonLanguageProvider.GetEngine
> (Microsoft.Scripting.En
> gineOptions options) [0x00000]
> at
> Microsoft.Scripting.Hosting.LanguageProvider.Microsoft.Scripting.Hosting.IL
> anguageProvider.GetEngine (Microsoft.Scripting.EngineOptions options)
> [0x00000]
> at Microsoft.Scripting.Hosting.ConsoleHost.RunCommandLine
> (Microsoft.Scripting
> .OptionsParser optionsParser) [0x00000]
> at Microsoft.Scripting.Hosting.ConsoleHost.ExecuteInternal () [0x00000]
> at Microsoft.Scripting.Hosting.ConsoleHost.Execute () [0x00000]
> at Microsoft.Scripting.Hosting.ConsoleHost.Run (System.String[] args)
> [0x00000 ]
> at PythonConsoleHost.Main (System.String[] args) [0x00000]
>
> The issue is in SystemState.cs InitializeBuiltins
> Debug.Assert(_builtinsDict.ContainsKey("nt"));
>
> _builtinsDict["posix"] = _builtinsDict["nt"];
>
> _builtinsDict.Remove("nt");
>
>
>
> Thoughts?
>
>
>
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
More information about the Mono-list
mailing list