8000 BUG: ImportError: cannot import name '_cext_gpu' from partially initialized module 'shap' (most likely due to a circular import) (c:\Users\w1765\anaconda3\Lib\site-packages\shap\__init__.py) · Issue #4072 · shap/shap · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

BUG: ImportError: cannot import name '_cext_gpu' from partially initialized module 'shap' (most likely due to a circular import) (c:\Users\w1765\anaconda3\Lib\site-packages\shap\__init__.py) #4072

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

Open
2 of 4 tasks
wang-mingzhi opened this issue Apr 26, 2025 · 2 comments
Labels
bug Indicates an unexpected problem or unintended behaviour

Comments

@wang-mingzhi
Copy link

Issue Description

when i run:python setup.py install,I encountered these error:
c1: fatal error C1083: 无法打开源文件: “shap/explainers/_kernel_lib.c”: No such file or directory

error.txt

Minimal Reproducible Example

import shap

shap.GPUTreeExplainer(model)

Traceback

Expected Behavior

No response

Bug report checklist

  • I have checked that this issue has not already been reported.
  • I have confirmed this bug exists on the latest release of shap.
  • I have confirmed this bug exists on the master branch of shap.
  • I'd be interested in making a PR to fix this bug

Installed Versions

git clone https://github.com/shap/shap.git

@wang-mingzhi wang-mingzhi added the bug Indicates an unexpected problem or unintended behaviour label Apr 26, 2025
@CloseChoice
Copy link
Collaborator

Thanks for the report, what platform are you using?

@wang-mingzhi
Copy link
Author

windows 11 24H2
This problem will not occur when shap version 0.46 is installed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behaviour
Projects
None yet
Development

No branches or pull requests

2 participants
0