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

No module named aiohttp #7

Closed
troelsfr opened this issue Jul 16, 2024 · 2 comments
Closed

No module named aiohttp #7

troelsfr opened this issue Jul 16, 2024 · 2 comments

Comments

@troelsfr
Copy link

After following the instructions:

git clone [email protected]:exo-explore/exo.git
cd exo
virtualenv develop_env
source develop_env/bin/activate
 pip install -r requirements.txt

I get:

python3 main.py

The cache for model files in Transformers v4.22.0 has been updated. Migrating your old cache. This is a one-time only operation. You can interrupt this and resume the migration later on by calling `transformers.utils.move_cache()`.
0it [00:00, ?it/s]
None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
Traceback (most recent call last):
  File "/Users/tfr/Documents/TestArea/exo/main.py", line 14, in <module>
    from exo.api import ChatGPTAPI
  File "/Users/tfr/Documents/TestArea/exo/exo/api/__init__.py", line 1, in <module>
    from exo.api.chatgpt_api import ChatGPTAPI
  File "/Users/tfr/Documents/TestArea/exo/exo/api/chatgpt_api.py", line 6, in <module>
    from aiohttp import web
ModuleNotFoundError: No module named 'aiohttp'

Here is some info that might.be useful:

% uname -a
Darwin studio.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May  1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 arm64

% python --version
Python 3.10.14
@troelsfr
Copy link
Author

How to fix:

pip install aiohttp

@AlexCheema
Copy link
Contributor

Good catch. This was introduced in f2895cb. Added aiohttp to the requirements.txt now.

lipere123 pushed a commit to lipere123/exo that referenced this issue Oct 11, 2024
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