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

import issue #92

Open
AmirMK opened this issue Aug 29, 2023 · 1 comment
Open

import issue #92

AmirMK opened this issue Aug 29, 2023 · 1 comment

Comments

@AmirMK
Copy link

AmirMK commented Aug 29, 2023

I am using omnixai 1.3.1 abd get the following error when import the TabularExplainer:

from omnixai.explainers.tabular import TabularExplainer

Error:


---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
File ~/opt/anaconda3/envs/xai/lib/python3.9/site-packages/aiohttp/client_reqrep.py:70
     69 try:
---> 70     import cchardet as chardet
     71 except ImportError:  # pragma: no cover

ModuleNotFoundError: No module named 'cchardet'

During handling of the above exception, another exception occurred:

ImportError                               Traceback (most recent call last)
Cell In[1], line 31
     28 from scipy.stats import chi2_contingency
     29 import xgboost as xgb
---> 31 from omnixai.explainers.tabular import TabularExplainer
     32 from omnixai.data.tabular import Tabular

File ~/opt/anaconda3/envs/xai/lib/python3.9/site-packages/omnixai/explainers/tabular/__init__.py:17
     15 from .agnostic.shap_global import GlobalShapTabular
     16 from .agnostic.bias import BiasAnalyzer
---> 17 from .agnostic.gpt import GPTExplainer
     18 from .counterfactual.mace.mace import MACEExplainer
     19 from .counterfactual.ce import CounterfactualExplainer

File ~/opt/anaconda3/envs/xai/lib/python3.9/site-packages/omnixai/explainers/tabular/agnostic/gpt.py:11
      7 """
      8 The explainer based ChatGPT.
      9 """
     10 import os
---> 11 import openai
     12 from typing import Callable, List
     13 from omnixai.data.tabular import Tabular

@yangwenz
Copy link
Collaborator

Hi, could you please try to reinstall the openai lib? It seems that aiohttp is not compatible with openai. If the error still occurs, please let me know.

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

No branches or pull requests

2 participants