Which version of numpy is compatible with FastTreeSHAP?

Open
#37 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
numpy, python

Research direction

Start by reproducing the reported installation failures with the NumPy versions listed in the issue, then inspect the project's dependency metadata and supported Python versions. Done means identifying a compatible combination or documenting that the compatibility problem remains unresolved.

Written by the indexing model from the issue text.

Description

For numpy=2, I get "TypeError: Converting np.inexact or np.floating to a dtype not allowed."

For numpy=1.26, I get "AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?"

Same issue until numpy=1.21, where I get "pip._vendor.pyproject_hooks._impl.BackendUnavailable: Cannot import 'setuptools.build_meta'"

The last issue I see on this topic is from a few years ago. Has the issue been fixed? If not, which version works?

Dominant language
Python
Stars
566
Forks
38
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linkedin/FastTreeSHAP

All issues in linkedin/FastTreeSHAP

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.