Stefan Behnel, 25.11.2010 22:35:
> 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

BTW, could you show us the relevant sections of the code that you are 
compiling there? A test case would be great.

Stefan
_______________________________________________
Cython-dev mailing list
Cython-dev@codespeak.net
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to