Skip to content

Compiler crash: AttributeError: 'set' object has no attribute 'cf_is_null' #3712

@ell1e

Description

@ell1e

I am getting a compiler crash trying to install a python project:

Compiler crash traceback from this point on:
  File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
  File "/home/ellie/.local/lib/python3.8/site-packages/Cython/Compiler/Optimize.py", line 2012, in visit_SimpleCallNode
    function = self.get_constant_value_node(function_name)
  File "/home/ellie/.local/lib/python3.8/site-packages/Cython/Compiler/Optimize.py", line 1996, in get_constant_value_node
    if name_node.cf_state.cf_is_null:
AttributeError: 'set' object has no attribute 'cf_is_null'

This is the crashing line:
<link outdated>
This is the version of Cython I'm using:

$ pip3 show Cython
Name: Cython
Version: 0.29.20
Summary: The Cython compiler for writing C extensions for the Python language.
Home-page: http://cython.org/
Author: Robert Bradshaw, Stefan Behnel, Dag Seljebotn, Greg Ewing, et al.
Author-email: cython-devel@python.org
License: Apache
Location: /home/user/.local/lib/python3.8/site-packages
Requires: 
Required-by:

Pretty sure it worked with a previous Cython version many months ago, so possibly a regression...? Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions