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

[CI] Compatibility issue with NumPy 1.19.5+ and latest SHAP package #6744

Closed
hcho3 opened this issue Mar 5, 2021 · 2 comments · Fixed by #7573
Closed

[CI] Compatibility issue with NumPy 1.19.5+ and latest SHAP package #6744

hcho3 opened this issue Mar 5, 2021 · 2 comments · Fixed by #7573

Comments

@hcho3
Copy link
Collaborator

hcho3 commented Mar 5, 2021

#6656 (comment)

The latest shap package appears to break when NumPy 1.19.5 is installed:
https://xgboost-ci.net/blue/organizations/jenkins/xgboost/detail/PR-6656/4/pipeline/221

     try:
>       from .. import _cext
E    ImportError: numpy.core.multiarray failed to import

For now, I'm pinning the NumPy version in our CI to 1.19.5, but this is not a permanent fix.

Note. Using shap from conda-forge also fixes the issue, but unfortunately conda-forge has an outdated version of shap.

@Zethson
Copy link

Zethson commented Jul 16, 2021

Also starts to appear with other major packages. Even Pandas 3.8 requires numpy > 1.20.0

https://github.com/pandas-dev/pandas/blob/master/pyproject.toml#L17

I would love to see numpy 1.20 be supported.

@trivialfis
Copy link
Member

Could you please help check the SHAP package? I don't have a computer at hand this weekend.

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

Successfully merging a pull request may close this issue.

3 participants