You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
⚠️ CI failed on Wheel builder (last failure: Apr 28, 2025) ⚠️ #31257
changed the title [-]⚠️ CI failed on Wheel builder (last failure: Apr 27, 2025) ⚠️[/-][+]⚠️ CI failed on Wheel builder (last failure: Apr 28, 2025) ⚠️[/+]on Apr 28, 2025
The nightly CI has discovered a Cython-related problem on all the free-threading builds:
_______________ ERROR collecting utils/tests/test_cython_blas.py _______________
ImportError while importing test module '/tmp/tmp.O8xqw5JN27/venv/lib/python3.13t/site-packages/sklearn/utils/tests/test_cython_blas.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/_internal/cpython-3.13.3-nogil/lib/python3.13t/importlib/__init__.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
../venv/lib/python3.13t/site-packages/sklearn/utils/tests/test_cython_blas.py:4: in <module>
from sklearn.utils._cython_blas import (
E ImportError: cannot import name 'ColMajor' from 'sklearn.utils._cython_blas' (/tmp/tmp.O8xqw5JN27/venv/lib/python3.13t/site-packages/sklearn/utils/_cython_blas.cpython-313t-x86_64-linux-gnu.so)
Activity
[-]⚠️ CI failed on Wheel builder (last failure: Apr 27, 2025) ⚠️[/-][+]⚠️ CI failed on Wheel builder (last failure: Apr 28, 2025) ⚠️[/+]ogrisel commentedon Apr 28, 2025
The nightly CI has discovered a Cython-related problem on all the free-threading builds:
_______________ ERROR collecting utils/tests/test_cython_blas.py _______________ ImportError while importing test module '/tmp/tmp.O8xqw5JN27/venv/lib/python3.13t/site-packages/sklearn/utils/tests/test_cython_blas.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/_internal/cpython-3.13.3-nogil/lib/python3.13t/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) ../venv/lib/python3.13t/site-packages/sklearn/utils/tests/test_cython_blas.py:4: in <module> from sklearn.utils._cython_blas import ( E ImportError: cannot import name 'ColMajor' from 'sklearn.utils._cython_blas' (/tmp/tmp.O8xqw5JN27/venv/lib/python3.13t/site-packages/sklearn/utils/_cython_blas.cpython-313t-x86_64-linux-gnu.so)ogrisel commentedon Apr 28, 2025
ColMajorcomes from:scikit-learn/sklearn/utils/_cython_blas.pxd
Lines 4 to 6 in 7131d94
ogrisel commentedon Apr 28, 2025
I am not sure exactly what caused this build to start failing 2 days ago. Here is the history of the runs:
https://github.com/scikit-learn/scikit-learn/actions/workflows/wheels.yml?query=branch%3Amain+event%3Aschedule
ogrisel commentedon Apr 28, 2025
In the last successful run and the rist failing run, the Python versions were both:
and the wheel was built with:
in both cases. Maybe it's a side effect of a change in SciPy?
Anyway the fix in #31263 seems legit and I wonder why Cython does not complain at build time.