linkedin / linkedin/FastTreeSHAP

ERROR IN INSTALLING FastTreeSHAP

Open
#25 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hi Team,

I am not able to install the FastTreeSHAP library in Kubeflow, facing below error -

building 'fasttreeshap._cext' extension
creating build/temp.linux-x86_64-3.9
creating build/temp.linux-x86_64-3.9/fasttreeshap
creating build/temp.linux-x86_64-3.9/fasttreeshap/cext
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/python3.9 -I/usr/local/lib/python3.9/dist-packages/numpy/core/include -c fasttreeshap/cext/_cext.cc -o build/temp.linux-x86_64-3.9/fasttreeshap/cext/_cext.o -fopenmp
fasttreeshap/cext/_cext.cc:3:10: fatal error: Python.h: No such file or directory
3 | #include
| ^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for fasttreeshap
Failed to build fasttreeshap
ERROR: Could not build wheels for fasttreeshap, which is required to install pyproject.toml-based projects
WARNING: You are using pip version 22.0.4; however, version 23.1.2 is available.
You should consider upgrading via the '/usr/bin/python -m pip install --upgrade pip' command.

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.

Research direction

The failure occurs while building fasttreeshap/cext/_cext.cc with Python 3.9 in Kubeflow. Reproduce the pip installation and investigate why Python.h is unavailable to gcc in that environment; done means the package builds and installs successfully there.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.