Skip to content

⚠️ CI failed on Wheel builder (last failure: Apr 28, 2025) ⚠️ #31257

Closed

Description

@scikit-learn-bot

CI is still failing on Wheel builder (Apr 28, 2025)

Activity

  1. added
    Needs Triage
    on Apr 27, 2025
  2. 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
  3. added
    free-threading
    and removed
    Needs Triage
    on Apr 28, 2025
  4. ogrisel commented on Apr 28, 2025

    @ogrisel
    Member

    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)
  5. ogrisel commented on Apr 28, 2025

    @ogrisel
    Member

    ColMajor comes from:

    cpdef enum BLAS_Order:
    RowMajor # C contiguous
    ColMajor # Fortran contiguous

  6. ogrisel commented on Apr 28, 2025

    @ogrisel
    Member
  7. ogrisel commented on Apr 28, 2025

    @ogrisel
    Member

    In the last successful run and the rist failing run, the Python versions were both:

    3.13.2 experimental free-threading build (main, Mar 22 2025, 16:18:34) [GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]
    

    and the wheel was built with:

         Successfully installed Cython-3.1.0b1 meson-1.8.0rc2 meson-python-0.17.1 numpy-2.3.0.dev0 packaging-25.0 pyproject-metadata-0.9.1 scipy-1.16.0.dev0
    

    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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugfree-threading

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions