Zero6992 / chatGPT-discord-bot

Integrate ChatGPT into your own discord bot
GNU General Public License v2.0
2.6k stars 699 forks source link

error when run bot (help me :(() #407

Closed Quocdesigner closed 4 months ago

Quocdesigner commented 1 year ago

Traceback (most recent call last): File "C:\Users\ASUS\Desktop\chatGPT-discord-bot-main_4\chatGPT-discord-bot-main\main.py", line 1, in from src import bot File "C:\Users\ASUS\Desktop\chatGPT-discord-bot-main_4\chatGPT-discord-bot-main\src\bot.py", line 6, in from src.aclient import client File "C:\Users\ASUS\Desktop\chatGPT-discord-bot-main_4\chatGPT-discord-bot-main\src\aclient.py", line 194, in client = aclient() File "C:\Users\ASUS\Desktop\chatGPT-discord-bot-main_4\chatGPT-discord-bot-main\src\aclient.py", line 43, in init chrome_version = int(os.getenv("chrome_version")) if bard_enable_auto_login == 'True' or bing_enable_auto_login == 'True' else None ValueError: invalid literal for int() with base 10: '113.0.5672.127'

Zero6992 commented 1 year ago

Just put 113 in chrome_version

Quocdesigner commented 1 year ago

And then it displays this error message:

Traceback (most recent call last): File "C:\Users\ASUS\Desktop\chatGPT-discord-bot-main_4\chatGPT-discord-bot-main\main.py", line 29, in check_version() File "C:\Users\ASUS\Desktop\chatGPT-discord-bot-main_4\chatGPT-discord-bot-main\main.py", line 20, in check_version installed = pkg_resources.get_distribution(package_name) File "C:\Users\ASUS\AppData\Local\Programs\Python\Python310\lib\site-packages\pkg_resources__init__.py", line 480, in get_distribution raise TypeError("Expected string, Requirement, or Distribution", dist) TypeError: ('Expected string, Requirement, or Distribution', ['discord.py', '2.2.2'])

see image: https://i.imgur.com/eQiNEpb.png

Quocdesigner commented 1 year ago

help me pls :((

Zero6992 commented 1 year ago

pull the latest code could fix it

Quocdesigner commented 1 year ago

pull the latest code could fix it

Where can I download the latest code snippet

Zero6992 commented 1 year ago

git clone or download the zip file from the latest releases

Quocdesigner commented 1 year ago

git clone or download the zip file from the latest releases

with new error: 2023-05-24 14:59:19 ERROR src.aclient -> Error while sending system prompt: InternalError: Unhandled Dependency Failure: DeepLeo Traceback (most recent call last): File "C:\Users\ASUS\Desktop\chatGPT-discord-bot-main_5\chatGPT-discord-bot-main\src\aclient.py", line 182, in send_start_prompt response = f"{response}{await responses.bing_handle_response(prompt, self)}" File "C:\Users\ASUS\Desktop\chatGPT-discord-bot-main_5\chatGPT-discord-bot-main\src\responses.py", line 18, in bing_handle_response async for response in client.chatbot.ask_stream(message): File "C:\Users\ASUS\AppData\Local\Programs\Python\Python310\lib\site-packages\EdgeGPT.py", line 674, in ask_stream async for response in self.chat_hub.ask_stream( File "C:\Users\ASUS\AppData\Local\Programs\Python\Python310\lib\site-packages\EdgeGPT.py", line 549, in ask_stream raise Exception( Exception: InternalError: Unhandled Dependency Failure: DeepLeo

image: https://i.imgur.com/rFVtqFw.png

Quocdesigner commented 1 year ago

im still waiting

Zero6992 commented 1 year ago

This is an error from Bing's end. Can you tell me how to reproduce this error?

Zero6992 commented 1 year ago

And does it happens all the time?

badong3521 commented 9 months ago

I also encountered the same error as you