[IronPython] SystemError while compiling PIL.Image

William Reade william at resolversystems.com
Thu Oct 22 15:37:28 CEST 2009


Transcript follows. The contents of the file don't look obviously weird. 
Does anyone have any idea what the problem might be?

Cheers
William

-------------------------------------------------------------------------

C:\dev\ironclad>ipy -X:ExceptionDetail 
C:\Python26\Lib\site-packages\PIL\Image.py
Object reference not set to an instance of an object.
    at IronPython.Compiler.Ast.GlobalAllocator.GetVariable(AstGenerator 
ag, PythonVariable variable)
    at IronPython.Compiler.Ast.NameExpression.Transform(AstGenerator ag, 
Type type)
    at 
IronPython.Compiler.Ast.FunctionDefinition.TransformParameters(AstGenerator 
outer, AstGenerator inner, List`1 defaults, List`1 names, Boolean 
needsWrapperMethod, List`1 init)
    at 
IronPython.Compiler.Ast.FunctionDefinition.TransformToFunctionExpression(AstGenerator 
ag)
    at IronPython.Compiler.Ast.FunctionDefinition.Transform(AstGenerator ag)
    at 
IronPython.Compiler.Ast.AstGenerator.TransformWithLineNumberUpdate(Statement 
fromStmt)
    at 
IronPython.Compiler.Ast.AstGenerator.TransformMaybeSingleLineSuite(Statement 
body, SourceLocation prevStart)
    at IronPython.Compiler.Ast.AstGenerator.Transform(Statement[] from)
    at IronPython.Compiler.Ast.SuiteStatement.Transform(AstGenerator ag)
    at 
IronPython.Compiler.Ast.AstGenerator.TransformWithLineNumberUpdate(Statement 
fromStmt)
    at 
IronPython.Compiler.Ast.AstGenerator.TransformMaybeSingleLineSuite(Statement 
body, SourceLocation prevStart)
    at IronPython.Compiler.Ast.IfStatement.Transform(AstGenerator ag)
    at 
IronPython.Compiler.Ast.AstGenerator.TransformWithLineNumberUpdate(Statement 
fromStmt)
    at 
IronPython.Compiler.Ast.FunctionDefinition.TryTransformBody(AstGenerator 
ag, List`1 statements)
    at 
IronPython.Compiler.Ast.FunctionDefinition.TransformToFunctionExpression(AstGenerator 
ag)
    at IronPython.Compiler.Ast.FunctionDefinition.Transform(AstGenerator ag)
    at 
IronPython.Compiler.Ast.AstGenerator.TransformWithLineNumberUpdate(Statement 
fromStmt)
    at 
IronPython.Compiler.Ast.AstGenerator.TransformMaybeSingleLineSuite(Statement 
body, SourceLocation prevStart)
    at IronPython.Compiler.Ast.AstGenerator.Transform(Statement[] from)
    at IronPython.Compiler.Ast.SuiteStatement.Transform(AstGenerator ag)
    at 
IronPython.Compiler.Ast.AstGenerator.TransformWithLineNumberUpdate(Statement 
fromStmt)
    at IronPython.Compiler.Ast.ClassDefinition.Transform(AstGenerator ag)
    at 
IronPython.Compiler.Ast.AstGenerator.TransformWithLineNumberUpdate(Statement 
fromStmt)
    at 
IronPython.Compiler.Ast.AstGenerator.TransformMaybeSingleLineSuite(Statement 
body, SourceLocation prevStart)
    at IronPython.Compiler.Ast.AstGenerator.Transform(Statement[] from)
    at IronPython.Compiler.Ast.SuiteStatement.Transform(AstGenerator ag)
    at 
IronPython.Compiler.Ast.AstGenerator.TransformWithLineNumberUpdate(Statement 
fromStmt)
    at IronPython.Compiler.Ast.PythonAst.Transform(AstGenerator ag)
    at IronPython.Compiler.Ast.PythonAst.TransformToAst(CompilationMode 
mode, CompilerContext context)
    at IronPython.Runtime.PythonContext.CompilePythonCode(Nullable`1 
compilationMode, SourceUnit sourceUnit, CompilerOptions options, 
ErrorSink errorSink)
    at IronPython.Runtime.PythonContext.GetScriptCode(SourceUnit 
sourceCode, String moduleName, ModuleOptions options, Nullable`1 mode)
    at IronPython.Runtime.PythonContext.GetScriptCode(SourceUnit 
sourceCode, String moduleName, ModuleOptions options)
    at IronPython.Runtime.PythonContext.CompileModule(String fileName, 
String moduleName, SourceUnit sourceCode, ModuleOptions options, 
ScriptCode& scriptCode)
    at IronPython.Hosting.PythonCommandLine.RunFileWorker(String fileName)
    at IronPython.Hosting.PythonCommandLine.RunFile(String fileName)
SystemError: Object reference not set to an instance of an object.

-------------------------------------------------------------------------



More information about the Ironpython-users mailing list