Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install econml on mac m1 by poetry #823

Closed
luckem opened this issue Nov 1, 2023 · 3 comments
Closed

Cannot install econml on mac m1 by poetry #823

luckem opened this issue Nov 1, 2023 · 3 comments

Comments

@luckem
Copy link

luckem commented Nov 1, 2023

Hi guys,

I've been trying to install econML using poetry on a Mac M1 but keeps getting error due to incompatible numpy requirements with shap 0.41. The shap issue has been solved in shap 0.42, so I believe releasing your current branch using shap 0.42 would fix that issue. Any chance you could release / pre-release in the coming days?

In a nutshell:

Reproducing Code Example
poetry add econml

Error message

Installing shap (0.41.0): Failed

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"

System Info

Virtualenv
Python:         3.9.11
Implementation: CPython
Path:           /Users/m.lucke/Library/Caches/pypoetry/virtualenvs/test-Nag7r6NL-py3.9
Executable:     /Users/m.lucke/Library/Caches/pypoetry/virtualenvs/test-Nag7r6NL-py3.9/bin/python
Valid:          True

System
Platform:   darwin
OS:         posix
Python:     3.9.11
Path:       /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9
Executable: /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/bin/python3.9

Additional remarks:

  • poetry add shap==0.41 fails but poetry add shap==0.42 works fine, issue has been addressed in v0.42.
  • Similar issues have been noticed with other packages such as scipy here

Thanks very much!

@luckem
Copy link
Author

luckem commented Nov 2, 2023

Ok so quick update, poetry add econml with 0.14.1 works fine after downgrading poetry from 1.6.1 to 1.5.1.
Closing the issue, as I am not sure whether there is anything you can address on your side in the short run.

@luckem luckem closed this as completed Nov 2, 2023
@kbattocchi
Copy link
Collaborator

Sorry for the inconvenience; we do hope to have a beta release incorporating our latest changes by the end of the week.

@kbattocchi
Copy link
Collaborator

We have put out a beta (v0.15.0b1) of our next release, if you want to use it with more recent versions of shap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants