New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'Entry' object has no attribute 'qualified_name' #2811

Leoyzen opened this Issue Jan 23, 2019 · 1 comment


None yet
2 participants
Copy link

Leoyzen commented Jan 23, 2019

        answer = 0
        previous_digit = 0
        current_build = 0

        for character in text:

slu/normalizers/ Compiler crash in IterationTransform

ModuleNode.body = StatListNode(
StatListNode.stats[6] = StatListNode(
StatListNode.stats[0] = PyClassDefNode(,
    doc = '\n    xxxxxxxxxx\n    ',
    name = 'ChineseNumberParser')
PyClassDefNode.body = StatListNode(
StatListNode.stats[2] = CompilerDirectivesNode(
CompilerDirectivesNode.body = StatListNode(
StatListNode.stats[0] = DefNode(,
    is_cyfunction = True,
    is_staticmethod = True,
    modifiers = [...]/0,
    name = 'parse',
    needs_closure = True,
    np_args_idx = [...]/0,
    num_required_args = 1,
    outer_attrs = [...]/2,
    py_wrapper_required = True,
    reqd_kw_flags_cname = '0',
    used = True)
DefNode.body = StatListNode(,
    is_terminator = True)
StatListNode.stats[5] = ForInStatNode(

Compiler crash traceback from this point on:
  File "Cython/Compiler/", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
  File "lib/python3.6/site-packages/Cython/Compiler/", line 190, in visit_ForInStatNode
    return self._optimise_for_loop(node, node.iterator.sequence)
  File "lib/python3.6/site-packages/Cython/Compiler/", line 200, in _optimise_for_loop
    if annotation.entry and annotation.entry.qualified_name == 'typing.Dict':
AttributeError: 'Entry' object has no attribute 'qualified_name'
Traceback (most recent call last):
  File "", line 17, in <module>
    "annotation_typing": False
  File "lib/python3.6/site-packages/Cython/Build/", line 1097, in cythonize
  File "python3.6/site-packages/Cython/Build/", line 1220, in cythonize_one
    raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: slu/normalizers/

It seems that Class Entry dont have a attribute named "qualified_name" in Cython/Compiler/
When add "qualified_name=None" in class defination, the error is gone.


This comment has been minimized.

Copy link

scoder commented Jan 23, 2019

Thanks for the report. That may or may not be the right fix. Could you provide a short code snippet that results in this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment