Stefan Behnel, 25.11.2010 22:30: > 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.
http://trac.cython.org/cython_trac/ticket/601 Stefan _______________________________________________ Cython-dev mailing list Cython-dev@codespeak.net http://codespeak.net/mailman/listinfo/cython-dev