gpt4free
gpt4free copied to clipboard
ModuleNotFoundError: No module named 'typings'
I only move streamlit_app.py from ./gui to the base folder then copy streamlit run streamlit_app.py and run. but i can't run the program. what should i do?
I installed and run the docker container by commands from readme, and there is same problem
code: https://github.com/xtekky/gpt4free/pull/610/files#diff-be3af1bb5ff64e620f43aa0245b1111573a86af42f0e422b83bf9ba6857d7032R4
I have same problem, both on venv and docker
Same for me
also the same thing
same issue here
same issue for me both on vent and docker. thanks for solving.
Same as me
For the moment, I
git checkout gpt4free/aicolors/__init__.py
git switch -c rollback
docker compose down; docker compose up --build -d
to roll back.
+1
https://github.com/xtekky/gpt4free/pull/620
so i solved the issue i was running the bot not as user i was root so run the bot as a user and change here gpt4free/aicolors/init.py this from typings import AiColorsResponse into this from .typings import AiColorsResponse After that the bot will runs
so i solved the issue i was running the bot not as user i was root so run the bot as a user and change here gpt4free/aicolors/init.py this from typings import AiColorsResponse into this from .typings import AiColorsResponse After that the bot will runs
it works!
Find that line of code and add a dot before "typings".
Find that line of code and add a dot before "typings", like " from .typings import AiColorsResponse". Or you can simple copy all the code in typings/init.py into /aicolors/init.py like this:
`# from typings import AiColorsResponse from dataclasses import dataclass
@dataclass class AiColorsResponse: background: str primary: str accent: str text: str`
so i solved the issue i was running the bot not as user i was root so run the bot as a user and change here gpt4free/aicolors/init.py this from typings import AiColorsResponse into this from .typings import AiColorsResponse After that the bot will runs
It works!👍 Should make that a PR to fix this issue.