#chatgdp not running when i try to run it

20 messages · Page 1 of 1 (latest)

vestal radish
#

So I'm following the guide posted on the github, I installed the directories and all that stuff but when I try to run it, it comes up with an error

#

C:\Users\NICK\Desktop\gpt-discord-bot-main>py -m src.main
Traceback (most recent call last):
File "C:\Users\NICK\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\NICK\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\NICK\Desktop\gpt-discord-bot-main\src\main.py", line 1, in <module>
import discord
ModuleNotFoundError: No module named 'discord'

C:\Users\NICK\Desktop\gpt-discord-bot-main>py -m src.main
Traceback (most recent call last):
File "C:\Users\NICK\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\NICK\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\NICK\Desktop\gpt-discord-bot-main\src\main.py", line 1, in <module>
import discord
ModuleNotFoundError: No module named 'discord'

C:\Users\NICK\Desktop\gpt-discord-bot-main>python -m src.main
Traceback (most recent call last):
File "C:\Users\NICK\AppData\Local\Programs\Python\Python38-32\lib\runpy.py", line 192, in _run_module_as_main
return run_code(code, main_globals, None,
File "C:\Users\NICK\AppData\Local\Programs\Python\Python38-32\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\NICK\Desktop\gpt-discord-bot-main\src\main.py", line 1, in <module>
import discord
File "C:\Users\NICK\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord_init
.py", line 25, in <module>
from .client import Client
File "C:\Users\NICK\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\client.py", line 33, in <module>
import aiohttp
File "C:\Users\NICK\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiohttp_init
.py", line 6, in <module>
from .client import BaseConnector as BaseConnector
File "C:\Users\NICK\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiohttp\client.py", line 32, in <module>
from . import hdrs, http, payload
File "C:\Users\NICK\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiohttp\http.py", line 7, in <module>
from .http_parser import HeadersParser as HeadersParser
File "C:\Users\NICK\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiohttp\http_parser.py", line 15, in <module>
from .helpers import NO_EXTENSIONS, BaseTimerContext
File "C:\Users\NICK\AppData\Local\Programs\Python\Python38-32\lib\site-packages\aiohttp\helpers.py", line 607, in <module>
class CeilTimeout(async_timeout.timeout):
TypeError: function() argument 'code' must be code, not str

weary summit
#

Pope

idle otter
#
ModuleNotFoundError: No module named 'discord'

I would start there.

also, it's much easier for others to digest error outputs if you wrap them in backticks

vestal radish
#

tony

#

with the most respect

#

i have no clue what you mean

#

i know nothing ab coding i just wanted to do this for fun

vestal radish
idle otter
#

ahhh.. ok. gotcha. no worries! We all start somewhere!

I would jump on udemy or udacity and learn some low level fundamentals of python and how it works, then move into a few youtube videos on building a simple slack or discord bot. With that new knowledge, getting through your issues with that error will be a breeze 🙂

hollow moat
#

same here for me

#

its just a grey screen.

#

rn i am trying to use it to generate some random idea for my essay

#

but its not workingD:

arctic topazBOT
#

@vestal radish

machete's message blocked by AutoMod

We are committed to fostering a positive atmosphere and have implemented additional filters to block any inappropriate or disruptive language and topics.

hollow moat
#

anyone know what is going on with it?

idle otter
#

I'm unfamiliar with the project you are trying to build, but you might be able to run pip3 install -r requirements.txt . that error indicates that you don't have the underlying code dependencies.

vestal radish
#

im getting this

#

C:\Users\NICK\Desktop\gpt-discord-bot-main>python -m src.main
Traceback (most recent call last):
File "C:\Users\NICK\AppData\Local\Programs\Python\Python38-32\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\NICK\AppData\Local\Programs\Python\Python38-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\NICK\Desktop\gpt-discord-bot-main\src\main.py", line 5, in <module>
from src.constants import (
File "C:\Users\NICK\Desktop\gpt-discord-bot-main\src\constants.py", line 21, in <module>
DISCORD_BOT_TOKEN = os.environ["DISCORD_BOT_TOKEN"]
File "C:\Users\NICK\AppData\Local\Programs\Python\Python38-32\lib\os.py", line 673, in getitem
raise KeyError(key) from None
KeyError: 'DISCORD_BOT_TOKEN'