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

fix gated build failures in interpret-community due to captum installation issues from conda #589

Merged
merged 1 commit into from
Dec 29, 2023

Conversation

imatiach-msft
Copy link
Collaborator

fix gated build failures in interpret-community due to captum installation issues from conda

Getting errors in gated builds:

ImportError while importing test module '/Users/runner/work/1/s/tests/test_explanation_adapter.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/miniconda/envs/interp_community/lib/python3.7/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_explanation_adapter.py:9: in <module>
    from captum.attr import IntegratedGradients
E   ModuleNotFoundError: No module named 'captum'

We were seeing similar errors in the https://github.com/microsoft/responsible-ai-toolbox repository and a similar fix was applied there to move captum to pip install after a new version of pytorch was released:
microsoft/responsible-ai-toolbox#2435

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (31a3eb2) 87.70% compared to head (f18d7e6) 87.70%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #589   +/-   ##
=======================================
  Coverage   87.70%   87.70%           
=======================================
  Files          62       62           
  Lines        4083     4083           
=======================================
  Hits         3581     3581           
  Misses        502      502           
Flag Coverage Δ
unittests 87.70% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@imatiach-msft imatiach-msft merged commit ac840c8 into interpretml:main Dec 29, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants