Hello,

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?

--Mike
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to