scikit-learn-intelex icon indicating copy to clipboard operation
scikit-learn-intelex copied to clipboard

Import error using `Python 3.10`

Open eddiebergman opened this issue 2 years ago • 1 comments

Describe the bug CC: @mfeurer When using python 3.10, pip says that daal4py version daal4py-2021.5.3-py39-none-manylinux1_x86_64.whl gets downloaded, the incorrect py<x> version. This causes an import error here.

This came about in our tests for autosklearn.

I can see from PyPi that there is no py310 wheels available but I would not expect to get an older wheel version as a fallback, PyPi releases. The normal behaviour as far as I'm aware is to get an sdist version that will then attempt to build locally. This will likely fail without the right dependancies but then at least it fails explicitly before import. For reference, here is the releases of scikit-learn.

I'm not entirely sure what this issue is related to, I'm assuming some build step relies on an explicit python version, but it works for other python versions.

To Reproduce

# Python 3.10
pip install scikit-learn-intelex  # Downloads scikit_learn_intelex-2021.5.3-py39-none-manylinux1_x86_64.whl (69 kB)
python -c "import sklearnex"

Expected behavior To either:

  • Get a py310 wheel (not currently available)
  • Default to an sdist and attempt to build locally.

eddiebergman avatar Feb 15 '22 14:02 eddiebergman

py310 wheel will be available in next release. We will think about possibility to add sdist, but currently I don't see much difficulties for its addition except requirement to download dpcpp compiler externally from setup process.

Alexsandruss avatar Feb 17 '22 09:02 Alexsandruss

2021.6 PyPI and intel conda releases with correct py310 support are available

Alexsandruss avatar Aug 24 '22 11:08 Alexsandruss