#Discord Bot Issues

1 messages · Page 1 of 1 (latest)

fallow flicker
#

This error started popping up and I don't know how to fix it

#

i've tried researching and there's nothing that can help me

surreal edge
#

you need to import app_commands from discord

#

for current version examples

fallow flicker
#

but when i do that

#

hang on

fallow flicker
surreal edge
#

have you been able to get the code to run yet? bot to connect? or are you just stuck on this starting off?

fallow flicker
#

this is the only error i'm getting that's preventing me from running the bot

#

it just started

surreal edge
#

you running the code in a virtual environment ? or is discord package installed globally?

fallow flicker
#

not sure what that means

surreal edge
#

lemme see what your pip has, do pip freeze > requirements.txt it will put all installed packages to that file

fallow flicker
surreal edge
#

try removing the discord package, update pip, then reinstall package

fallow flicker
#

actually, that's exactly what i did

#

but i'll try again

#

also, what's a fork?

#

...

#

apparently discord wasn't installed?

#

huh

#

but it's still giving the same error after both

surreal edge
fallow flicker
#

well i'm still not sure what i'm doing wrong

#

nothing has changed

surreal edge
#

so it was working before then stopped?

fallow flicker
#

yeah, idk what changed

surreal edge
#

what python version are you running?

fallow flicker
#

3.11.5

surreal edge
#

can you see if your python --version and pip --version match?

fallow flicker
#

...pip says its 23.2.1 but it won't update because it's the latest version

#

at least that's what it says

surreal edge
#

im pretty sure its an environment issue. Try making a virtual environment and installing the packages in the venv

fallow flicker
#

still not sure what that means

surreal edge
fallow flicker
#

...i give up