Symptom
- After the upgrade of SAP DI to version 2404.13.66, a docker image containing the Python library "farm" fails to build.
- Using KBA 3075569 - How to access logs when a docker image build fails, one can see below error in the docker log:
The 'sklearn' PyPI package is deprecated, use 'scikit-learn'
rather than 'sklearn' for pip commands.
Here is how to fix this error in the main use cases:
- use 'pip install scikit-learn' rather than 'pip install sklearn'
- replace 'sklearn' by 'scikit-learn' in your pip requirements files
(requirements.txt, setup.py, setup.cfg, Pipfile, etc ...)
- if the 'sklearn' package is used by one of your dependencies,
it would be great if you take some time to track which package uses
'sklearn' instead of 'scikit-learn' and report it to their issue tracker
- as a last resort, set the environment variable
SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True to avoid this error
More information is available at
https://github.com/scikit-learn/sklearn-pypi-package
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
Read more...
Environment
SAP Data Intelligence (SAP DI) 2404.13.66 - Cloud Edition
Product
Keywords
SAP Data Intelligence, Docker, image, build, failure, upgrade, sklearn, deprecated, farm, Python, library, SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL , KBA , CA-DI , Data Intelligence , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview