RecTools icon indicating copy to clipboard operation
RecTools copied to clipboard

`OverrideNeeded` and `IncompatibleConstraintsError` for macOS and python 3.8 `make install`

Open blondered opened this issue 1 year ago • 1 comments

What happened?

git clone -> cd RecTools ->make install does not work on macOS and python 3.8. Throughs OverrideNeeded and IncompatibleConstraintsError when trying to install scikit-learn (1.3.2)

Expected behavior

No response

Relevant logs and/or screenshots

  • Installing scikit-learn (1.3.2): Failed

    OverrideNeeded

    ({Package('oldest-supported-numpy', '2023.12.21'): {'numpy': <Dependency numpy (==1.22.2)>}}, {Package('oldest-supported-numpy', '2023.12.21'): {'numpy': <Dependency numpy (==1.19.3)>}}, {Package('oldest-supported-numpy', '2023.12.21'): {'numpy': <Dependency numpy (==1.21.0)>}}, {Package('oldest-supported-numpy', '2023.12.21'): {'numpy': <Dependency numpy (==1.17.3)>}}, {Package('oldest-supported-numpy', '2023.12.21'): {'numpy': <Dependency numpy (==1.17.5)>}}, {Package('oldest-supported-numpy', '2023.12.21'): {'numpy': <Dependency numpy ()>}})

The following error occurred when trying to handle this error:

OverrideNeeded

{Package('oldest-supported-numpy', '2023.12.21'): {'numpy': <Dependency numpy (==1.22.2)>}, Package('oldest-supported-numpy', '2023.12.12'): {'numpy': <Dependency numpy (==1.22.2)>}}

The following error occurred when trying to handle this error:

OverrideNeeded

{Package('oldest-supported-numpy', '2023.12.21'): {'numpy': <Dependency numpy (==1.22.2)>}, Package('oldest-supported-numpy', '2023.12.12'): {'numpy': <Dependency numpy (==1.22.2)>}, Package('oldest-supported-numpy', '2023.10.25'): {'numpy': <Dependency numpy (==1.22.2)>}}

The following error occurred when trying to handle this error:

OverrideNeeded

{Package('oldest-supported-numpy', '2023.12.21'): {'numpy': <Dependency numpy (==1.22.2)>}, Package('oldest-supported-numpy', '2023.12.12'): {'numpy': <Dependency numpy (==1.22.2)>}, Package('oldest-supported-numpy', '2023.10.25'): {'numpy': <Dependency numpy (==1.22.2)>}, Package('oldest-supported-numpy', '2023.8.3'): {'numpy': <Dependency numpy (==1.22.2)>}}

The following error occurred when trying to handle this error:

IncompatibleConstraintsError

Incompatible constraints in requirements of oldest-supported-numpy (2022.11.19): numpy (==1.22.2) ; platform_machine == "loongarch64" and python_version < "3.11" or python_version == "3.8" and platform_python_implementation == "PyPy" numpy (==1.21.0) ; python_version == "3.8" and platform_machine == "arm64" and platform_system == "Darwin"

Cannot install scikit-learn.

Operating System

macOS Big Sur 11.6 (Apple M1)

Python Version

3.8.13

RecTools version

latest main

blondered avatar Jun 03 '24 12:06 blondered

Also true for python 3.9. I get:

IncompatibleConstraintsError

Incompatible constraints in requirements of oldest-supported-numpy (2022.11.19): numpy (==1.22.2) ; platform_machine == "loongarch64" and python_version < "3.11" numpy (==1.23.3) ; python_version == "3.9" and platform_system == "OS400" numpy ; python_version >= "3.9" and platform_python_implementation == "PyPy"

blondered avatar Jun 03 '24 12:06 blondered

This is only a poetry problem. Rectools package installation is fine on macOS and python 3.8, so I'm closing this one. For development on macOS it is just easier to install fresher version of scikit-learn or use different python version.

blondered avatar Jul 29 '24 12:07 blondered