Skip to content

regression in 0.29.20: type object 'foo' has no attribute '__div__' #3688

@astraw

Description

@astraw

I maintain cgkit1, and with 0.29.20, the compiled code is not functional.

Steps to reproduce:

# download and extract the files for cgkit1 1.2.5 from https://pypi.org/project/cgkit1/#files
cd cgkit1-1.2.5
pip install cython==0.29.20
python setup.py install
python -c "import cgtypes" # cgtypes is installed by cgkit

I get the following error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "cgtypes.pyx", line 1, in init cgtypes
    # -*- coding: utf-8 -*-
AttributeError: type object 'cgtypes.vec3' has no attribute '__div__'

If I repeat with Cython 0.29.19, I do not get this error. This is with Python 3.8.3 and pip installed from conda on Windows.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions