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

TypeError: 'type' object is not subscriptable when attempt to import or use CLI #604

Open
ttpro1995 opened this issue Dec 26, 2022 · 0 comments

Comments

@ttpro1995
Copy link

How I install ?

pip install explainaboard
or
pip install -U --force-reinstall explainaboard

Both cause same problem

Version : 0.12.3

When try to import explainaboard, or run explainaboard from CLI, same error:

Python 3.8.15 (default, Nov 24 2022, 15:19:38) 
[GCC 11.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import explainaboard
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/cpu12595/miniconda3/envs/nlppytorch/lib/python3.8/site-packages/explainaboard/__init__.py", line 6, in <module>
    from explainaboard.loaders import DatalabLoaderOption, get_loader_class
  File "/home/cpu12595/miniconda3/envs/nlppytorch/lib/python3.8/site-packages/explainaboard/loaders/__init__.py", line 5, in <module>
    from explainaboard.loaders import file_loader, loader_factory
  File "/home/cpu12595/miniconda3/envs/nlppytorch/lib/python3.8/site-packages/explainaboard/loaders/file_loader.py", line 18, in <module>
    from explainaboard.analysis.analyses import Analysis
  File "/home/cpu12595/miniconda3/envs/nlppytorch/lib/python3.8/site-packages/explainaboard/analysis/analyses.py", line 14, in <module>
    from explainaboard.analysis.bucketing import get_bucketing_method
  File "/home/cpu12595/miniconda3/envs/nlppytorch/lib/python3.8/site-packages/explainaboard/analysis/bucketing.py", line 13, in <module>
    from explainaboard.serialization.types import SerializableData
  File "/home/cpu12595/miniconda3/envs/nlppytorch/lib/python3.8/site-packages/explainaboard/serialization/__init__.py", line 8, in <module>
    from explainaboard.serialization.types import Serializable
  File "/home/cpu12595/miniconda3/envs/nlppytorch/lib/python3.8/site-packages/explainaboard/serialization/types.py", line 21, in <module>
    list["PrimitiveData"],  # type: ignore
TypeError: 'type' object is not subscriptable

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

1 participant