Mike Hansen, 25.11.2010 22:16: > I'm trying to build a Cython extension and get the following traceback > > ... > File > "/opt/sage/local/lib/python2.6/site-packages/Cython/Compiler/Nodes.py", > line 4499, in generate_execution_code > from_py_node = > ExprNodes.CoerceFromPyTypeNode(self.loopvar_node.type, target_node, > None) > File > "/opt/sage/local/lib/python2.6/site-packages/Cython/Compiler/ExprNodes.py", > line 6634, in __init__ > if not result_type.create_from_py_utility_code(env): > File > "/opt/sage/local/lib/python2.6/site-packages/Cython/Compiler/PyrexTypes.py", > line 279, in create_from_py_utility_code > env.use_utility_code(self.from_py_utility_code) > AttributeError: 'NoneType' object has no attribute 'use_utility_code' > > What should be passed into ExprNodes.CoerceFromPyTypeNode for env > instead of None?
Wow, thanks for catching that. There's a bunch of evil code there that seriously needs to get ripped out. As a (very ugly) work-around, something like "self.loopvar_node.entry.scope" *might* work instead of "None". Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
