#I upgraded interactions into v5, but it doesn't work

1 messages · Page 1 of 1 (latest)

lost charm
#

I runed pip install --upgrade interaction.py, and it installed correctly, but after that it throws that error message. Do I have to delete interactions v5 and reinstall interactions v4?

simple walrusBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

lost charm
#

The error message

See you soon!
Traceback (most recent call last):
  File "main.py", line 1186, in <module>
    bot = interactions.Client(token=os.environ['TOKEN'])
AttributeError: module 'interactions' has no attribute 'Client'```
hearty crypt
#

You should run pip install --upgrade discord-py-interactions

lost charm
#

Let me try.

hearty crypt
#

Also pretty much everything changed in v5

lost charm
#

Huh, requirment already satisfied

#

Maybe I should just uninstall it and reinstall it?

teal delta
#

Which python version are you on

#

V5 only support python3.10 and up. Your error suggests that's your issue. Also, you should probably read the migration guide

lost charm
#

Uhhhhh

#

Kinda fixed

#

Basiclly for the sake of time, I reverted to v4, and I will try to migrate into v5 once i read the docks
Now it throws this DeprecationMigration warning, which I will just ignore untill i figure it out

#

Thanks!