phoronix-test-suite / test-profiles

A read-only Git copy of the OpenBenchmarking.org test profiles.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`scikit-learn-2.x` Tech Note: scikit-learn will not install on some Linux distros

tad4 opened this issue · comments

commented

For PTS users attempting to run v2 (or later) of the scikit-learn test profile, please note that some Linux distributions do not provide a version of the Meson Build System that meets the minimum requirements of scikit-learn. In this scenario, when PTS attempts to install scikit-learn users may encounter the following:

Processing /home/tad/.phoronix-test-suite/installed-tests/pts/scikit-learn-2.0.0/scipy
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [3 lines of output]
      
      ('\x1b[31m',)meson-python: error: Could not find meson version 0.63.3 or newer, found 0.61.2
      ('\x1b[31m',)meson-python: error: .
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

The scikit-learn-2.0.0 test profile uses scikit-learn v1.2.2 which requires v0.63.3 of the Meson Build System or later. The example, above, was attempted on Ubuntu 22.04 LTS which provides a version of meson that is not compatible with scikit-learn v1.2.2.

Who is affected by this issue?

Users of Linux distributions or python releases that provide packaged versions of meson < 0.63.3; e.g,—

  • Ubuntu 22.04 LTS and earlier versions.

Workarounds

Users who are unable to update their Linux distribution may run the prior version of the scikit-learn test profile:

phoronix-test-suite run scikit-learn-1.2.0

Note for PTS developers and maintainers

  • This is not a bug with PTS.