I have installed locally (pip install -e .) and via the requirements.txt, and manually installed the chardet package, but still get this error.
ModuleNotFoundError Traceback (most recent call last)
File ~/anaconda3/envs/umshini/lib/python3.9/site-packages/requests/compat.py:11
10 try:
---> 11 import chardet
12 except ImportError:
ModuleNotFoundError: No module named 'chardet'
During handling of the above exception, another exception occurred:
AttributeError Traceback (most recent call last)
Cell In[10], line 1
----> 1 from chatarena.arena import Arena
2 arena = Arena.from_config("examples/nlp-classroom-3players.json")
File ~/Documents/GitHub/chatarena/chatarena/arena.py:7
4 import csv
5 import logging
----> 7 from .agent import Player
8 from .environments import Environment, TimeStep, load_environment
9 from .backends import Human
File ~/Documents/GitHub/chatarena/chatarena/agent.py:8
5 import uuid
6 from abc import abstractmethod
----> 8 from .backends import IntelligenceBackend, load_backend
9 from .message import Message, SYSTEM_NAME
10 from .config import AgentConfig, Configurable, BackendConfig
File ~/Documents/GitHub/chatarena/chatarena/backends/init.py:5
3 from .base import IntelligenceBackend
4 from .openai import OpenAIChat
----> 5 from .cohere import CohereAIChat
6 from .human import Human
7 from .hf_transformers import TransformersConversational
File ~/Documents/GitHub/chatarena/chatarena/backends/cohere.py:10
8 # Try to import the cohere package and check whether the API key is set
9 try:
---> 10 import cohere
11 except ImportError:
12 is_cohere_available = False
File ~/anaconda3/envs/umshini/lib/python3.9/site-packages/cohere/init.py:1
----> 1 from cohere.client import Client
2 from cohere.client_async import AsyncClient
3 from cohere.error import CohereAPIError, CohereConnectionError, CohereError
File ~/anaconda3/envs/umshini/lib/python3.9/site-packages/cohere/client.py:8
5 from concurrent.futures import ThreadPoolExecutor
6 from typing import Any, Dict, List, Optional, Union
----> 8 import requests
9 from requests.adapters import HTTPAdapter
10 from urllib3 import Retry
File ~/anaconda3/envs/umshini/lib/python3.9/site-packages/requests/init.py:45
41 import warnings
43 import urllib3
---> 45 from .exceptions import RequestsDependencyWarning
47 try:
48 from charset_normalizer import version as charset_normalizer_version
File ~/anaconda3/envs/umshini/lib/python3.9/site-packages/requests/exceptions.py:9
1 """
2 requests.exceptions
3 ~~~~~~~~~~~~~~~~~~~
4
5 This module contains the set of Requests' exceptions.
6 """
7 from urllib3.exceptions import HTTPError as BaseHTTPError
----> 9 from .compat import JSONDecodeError as CompatJSONDecodeError
12 class RequestException(IOError):
13 """There was an ambiguous exception that occurred while handling your
14 request.
15 """
File ~/anaconda3/envs/umshini/lib/python3.9/site-packages/requests/compat.py:13
11 import chardet
12 except ImportError:
---> 13 import charset_normalizer as chardet
15 import sys
17 # -------
18 # Pythons
19 # -------
20
21 # Syntax sugar.
File ~/anaconda3/envs/umshini/lib/python3.9/site-packages/charset_normalizer/init.py:23
1 """
2 Charset-Normalizer
3 ~~~~~~~~~~~~~~
(...)
21 :license: MIT, see LICENSE for more details.
22 """
---> 23 from charset_normalizer.api import from_fp, from_path, from_bytes, normalize
24 from charset_normalizer.legacy import detect
25 from charset_normalizer.version import version, VERSION
File ~/anaconda3/envs/umshini/lib/python3.9/site-packages/charset_normalizer/api.py:10
7 PathLike = Union[str, 'os.PathLike[str]'] # type: ignore
9 from charset_normalizer.constant import TOO_SMALL_SEQUENCE, TOO_BIG_SEQUENCE, IANA_SUPPORTED
---> 10 from charset_normalizer.md import mess_ratio
11 from charset_normalizer.models import CharsetMatches, CharsetMatch
12 from warnings import warn
AttributeError: partially initialized module 'charset_normalizer' has no attribute 'md__mypyc' (most likely due to a circular import)