dask / dask/crick

Build errors with Cython 3.1

Open
#63 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
27
Forks
20
PR merge metrics
No merged PRs in 30d

Description

**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`.

```bash
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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.