#Weird error with starting, bad install?

1 messages · Page 1 of 1 (latest)

drowsy fable
#
/home/container/main.py:2: DeprecationWarning: The v4 is now deprecated and won't be supported in the future. Please, migrate to v5. https://github.com/interactions-py/interactions.py
  from interactions import Client, Intents, listen, OptionType, slash_option, slash_command
Traceback (most recent call last):
  File "/home/container/main.py", line 2, in <module>
    from interactions import Client, Intents, listen, OptionType, slash_option, slash_command
ImportError: cannot import name 'listen' from 'interactions' (/home/container/.local/lib/python3.9/site-packages/interactions/__init__.py)
I have no name!@b4f54e5b-2529-46c9-aaf8-b388daf3620f:~$ python3 main.py
/home/container/main.py:2: DeprecationWarning: The v4 is now deprecated and won't be supported in the future. Please, migrate to v5. https://github.com/interactions-py/interactions.py
  from interactions import Client, Intents, OptionType, slash_option, slash_command
Traceback (most recent call last):
  File "/home/container/main.py", line 2, in <module>
    from interactions import Client, Intents, OptionType, slash_option, slash_command
ImportError: cannot import name 'slash_option' from 'interactions' (/home/container/.local/lib/python3.9/site-packages/interactions/__init__.py)

I also need help updating to v5.

heady lintelBOT
#

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

onyx python
#

You need to use python 3.10 or greater

drowsy fable
#

@onyx python

onyx python
#

Yeah, you're using python 3.9

#

The current version of the library can only be installed on python 3.10 or greater, and trying to install it on lower versions gets you an older and unsupported version

drowsy fable
#

Ohh I see, I thought it said something else. I will see if I can update the python versino first.