Skip to content

Build errors with Cython 3.1 #63

@eatyourgreens

Description

@eatyourgreens

Describe the issue:

Cython 3.1 came out a few days ago and removed numpy/math.pxd. That leads to errors in crick/stats.pyx.

Error compiling Cython file:
20.45       ------------------------------------------------------------
20.45       ...
20.45       cimport numpy as np
20.45       from numpy.math cimport NAN
20.45       ^
20.45       ------------------------------------------------------------
20.45       
20.45       crick/stats.pyx:2:0: 'numpy/math.pxd' not found
20.45       
20.45       Error compiling Cython file:
20.45       ------------------------------------------------------------
20.45       ...
20.45       cimport numpy as np
20.45       from numpy.math cimport NAN
20.45       ^
20.45       ------------------------------------------------------------
20.45       
20.45       crick/stats.pyx:2:0: 'numpy/math/NAN.pxd' not found
20.45       
20.45       Error compiling Cython file:
20.45       ------------------------------------------------------------
20.45       ...
20.45           def min(self):
20.45               """min(self)
20.45       
20.45               The minimum element added to the summary. Returns ``NaN`` if empty.
20.45               """
20.45               return self.stats.min if self.stats.count > 0 else NAN
20.45                                                                  ^
20.45       ------------------------------------------------------------
20.45       
20.45       crick/stats.pyx:163:59: 'NAN' is not a constant, variable or function identifier

Minimal Complete Verifiable Example:
I got the error while installing terracotta

pip install cython terracotta~=0.8

Environment:

  • Dask version:
  • Python version: 3.10
  • Operating System: ubuntu (Docker python:3.10 image.)
  • Install method (conda, pip, source): pip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions