jhgameboy / ironclad

Automatically exported from code.google.com/p/ironclad
Other
0 stars 0 forks source link

IronPython does not want to work with ironclad #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
  I have CPython 2.6.4 installed.
  And, IronPython which shoots out from ipy -V:
       PythonContext 2.6.30207.0 on .NET 4.0.0.0

  So, I downloaded and unzipped ironclad-v2.6.0rc1.zip as per the
instructions.

  But, when I do the following:

cd c:\ironclad-v2.6.0rc1-bin
C:\ironclad-v2.6.0rc1-bin> ipy
>>> import ironclad

  I get a lot of errors, which are included below (the line folding is from 
cmd.exe
showing its output in a window):

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\ironclad-v2.6.0rc1-bin\ironclad\__init__.py", line 24, in 
<module>
IOError: System.IO.FileLoadException: Could not load file or assembly 
'IronPytho
n, Version=2.6.10920.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 
or one
 of its dependencies. The located assembly's manifest definition does not 
match
the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'IronPython, Version=2.6.10920.0, Culture=neutral, 
PublicKeyToken=31b
f3856ad364e35'
   at System.Signature.GetSignature(SignatureStruct& signature, Void* 
pCorSig, I
nt32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo 
methodH
andle, RuntimeType declaringType)
   at System.Signature..ctor(IRuntimeMethodInfo methodHandle, RuntimeType 
declar
ingType)
   at System.Reflection.RuntimeConstructorInfo.get_CallingConvention()
   at 
Microsoft.Scripting.Actions.Calls.OverloadResolver.IsUnsupported(MethodBas
e method)
   at 
Microsoft.Scripting.Actions.Calls.OverloadResolver.BuildCandidateSets(ILis
t`1 methods)
   at 
Microsoft.Scripting.Actions.Calls.OverloadResolver.ResolveOverload(String
methodName, IList`1 methods, NarrowingLevel minLevel, NarrowingLevel 
maxLevel)
   at 
Microsoft.Scripting.Actions.DefaultBinder.CallMethod(DefaultOverloadResolv
er resolver, IList`1 targets, BindingRestrictions restrictions, String 
name, Nar
rowingLevel minLevel, NarrowingLevel maxLevel, BindingTarget& target)
   at 
Microsoft.Scripting.Actions.DefaultBinder.CallMethod(DefaultOverloadResolv
er resolver, IList`1 targets, BindingRestrictions restrictions, String 
name)
   at 
Microsoft.Scripting.Actions.DefaultBinder.CallMethod(DefaultOverloadResolv
er resolver, IList`1 targets, BindingRestrictions restrictions)
   at 
IronPython.Runtime.Binding.MetaPythonType.MakeStandardDotNetTypeCall(Dynam
icMetaObjectBinder call, Expression codeContext, DynamicMetaObject[] args)
   at 
IronPython.Runtime.Binding.MetaPythonType.InvokeWorker(DynamicMetaObjectBi
nder call, DynamicMetaObject[] args, Expression codeContext)
   at IronPython.Runtime.Binding.MetaPythonType.Invoke(PythonInvokeBinder 
python
Invoke, Expression codeContext, DynamicMetaObject target, 
DynamicMetaObject[] ar
gs)
   at 
IronPython.Runtime.Binding.PythonInvokeBinder.BindWorker(DynamicMetaObject
 context, DynamicMetaObject target, DynamicMetaObject[] args)
   at IronPython.Runtime.Binding.PythonInvokeBinder.Bind(DynamicMetaObject 
targe
t, DynamicMetaObject[] args)
   at System.Dynamic.DynamicMetaObjectBinder.Bind(Object[] args, 
ReadOnlyCollect
ion`1 parameters, LabelTarget returnLabel)
   at System.Runtime.CompilerServices.CallSiteBinder.BindCore[T](CallSite`1 
site
, Object[] args)
   at 
System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite s
ite, T0 arg0, T1 arg1, T2 arg2)
   at IronPython.Runtime.PythonFunction.FunctionCaller`1.Call1(CallSite 
site, Co
deContext context, Object func, T0 arg0)
   at 
IronPython.Compiler.Ast.CallExpression.Invoke1Instruction.Run(InterpretedF
rame frame)
   at 
Microsoft.Scripting.Interpreter.Interpreter.RunInstructions(InterpretedFra
me frame)
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame 
frame)
   at Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0)
   at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)
   at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope)
   at IronPython.Runtime.PythonContext.InitializeModule(String fileName, 
ModuleC
ontext moduleContext, ScriptCode scriptCode, ModuleOptions options)
   at IronPython.Runtime.PythonContext.CompileModule(String fileName, 
String mod
uleName, SourceUnit sourceCode, ModuleOptions options, ScriptCode& 
scriptCode)
   at IronPython.Runtime.PythonContext.CompileModule(String fileName, 
String mod
uleName, SourceUnit sourceCode, ModuleOptions options)
   at IronPython.Runtime.Importer.LoadFromSourceUnit(CodeContext context, 
Source
Unit sourceCode, String name, String path)
   at IronPython.Runtime.Importer.LoadModuleFromSource(CodeContext context, 
Stri
ng name, String path)
   at IronPython.Runtime.Importer.LoadPackageFromSource(CodeContext 
context, Str
ing name, String path)
   at IronPython.Runtime.Importer.LoadFromDisk(CodeContext context, String 
name,
 String fullName, String str)
   at IronPython.Runtime.Importer.ImportFromPathHook(CodeContext context, 
String
 name, String fullName, List path, Func`5 defaultLoader)
   at IronPython.Runtime.Importer.ImportFromPath(CodeContext context, 
String nam
e, String fullName, List path)
   at IronPython.Runtime.Importer.ImportTopAbsolute(CodeContext context, 
String
name)
   at IronPython.Runtime.Importer.ImportModule(CodeContext context, Object 
globa
ls, String modName, Boolean bottom, Int32 level)
   at IronPython.Modules.Builtin.__import__(CodeContext context, String 
name, Ob
ject globals, Object locals, Object fromlist, Int32 level)
   at Microsoft.Scripting.Interpreter.FuncCallInstruction`7.Invoke(Object 
arg0,
Object arg1, Object arg2, Object arg3, Object arg4, Object arg5)
   at Microsoft.Scripting.Interpreter.CallInstruction.Invoke(Object[] args)
   at 
Microsoft.Scripting.Actions.Calls.MethodCandidate.Caller.Call(Object[] arg
s, Boolean& shouldOptimize)
   at 
IronPython.Runtime.Types.BuiltinFunction.BuiltinFunctionCaller`5.Call4(Cal
lSite site, CodeContext context, TFuncType func, T0 arg0, T1 arg1, T2 arg2, 
T3 a
rg3)
   at IronPython.Runtime.Importer.Import(CodeContext context, String 
fullName, P
ythonTuple from, Int32 level)
   at IronPython.Runtime.Operations.PythonOps.ImportTop(CodeContext 
context, Str
ing fullName, Int32 level)
   at 
Microsoft.Scripting.Interpreter.FuncCallInstruction`4.Run(InterpretedFrame
 frame)
   at 
Microsoft.Scripting.Interpreter.Interpreter.RunInstructions(InterpretedFra
me frame)
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame 
frame)
   at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, 
T1 a
rg1)
   at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
   at IronPython.Compiler.PythonScriptCode.Run(Scope scope)
   at 
IronPython.Hosting.PythonCommandLine.<>c__DisplayClass1.<RunOneInteraction
>b__0()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value 
[HKLM\Software\M
icrosoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind 
failure lo
gging.
To turn this feature off, remove the registry value 
[HKLM\Software\Microsoft\Fus
ion!EnableLog].

>>>

===============================================

  My email address is robert.fetter@verizon.net, and using email is
probably the best way to communicate with me on this.

  Thanks very much.

Original issue reported on code.google.com by robert.f...@verizon.net on 28 Feb 2010 at 2:06

GoogleCodeExporter commented 9 years ago
One thing I forgot to add above is what IronPython puts out when it starts:

IronPython 2.6.1 (2.6.30207.0) on .NET 4.0.30128.1
Type "help", "copyright", "credits" or "license" for more information.

Original comment by robert.f...@verizon.net on 28 Feb 2010 at 2:27

GoogleCodeExporter commented 9 years ago
It looks like you're using the .NET 4 version of IronPython. We haven't tried 
using
Ironclad under .NET 4. You may be able to build Ironclad using .NET 4 so that 
it can
work with that version of IronPython. Alternatively, if it makes sense for you, 
use
the .NET 2.0 version of IronPython.

Original comment by glenn.k....@gmail.com on 1 Mar 2010 at 1:06