Skip to content
This repository was archived by the owner on May 18, 2024. It is now read-only.

Since new update can't start main.py #244

Closed
Donixon opened this issue Nov 28, 2023 · 2 comments
Closed

Since new update can't start main.py #244

Donixon opened this issue Nov 28, 2023 · 2 comments

Comments

@Donixon
Copy link

Donixon commented Nov 28, 2023

Hi all!
It seems that I \can't start the bot anymore since a week. Worked like a charm before. Error getting:

Z:\discordbot> python .\main.py    
Traceback (most recent call last):
  File "Z:\discordbot\main.py", line 17, in <module>
    from bot_utilities.ai_utils import generate_response, generate_image_prodia, search, poly_image_gen, generate_gpt4_response, dall_e_gen, sdxl
  File "Z:\discordbot\bot_utilities\ai_utils.py", line 11, in <module>
    from openai import AsyncOpenAI
ImportError: cannot import name 'AsyncOpenAI' from 'openai' (C:\Users\****\anaconda3\Lib\site-packages\openai\__init__.py)

Installed all requirments.txt, everything installed correct and newest version. Not sure why?

Hopefully someone can help me get the bot up and running again.

@KingsRequin
Copy link

Just do: pip install --upgrade openai

@Donixon
Copy link
Author

Donixon commented Nov 30, 2023

Tried this local and it works, thanks! The problem was that I run the bot in Docker. Build the container, new, and fixt. Thanks!

@Donixon Donixon closed this as completed Nov 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants