#can someone help me my code dose not work

1 messages · Page 1 of 1 (latest)

restive geyserBOT
#

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

open tide
#

Traceback (most recent call last):
File "/Users/thomaskoufalis/Desktop/Bot/legalsbot.py", line 3, in <module>
from interactions.events import MessageCreate
ModuleNotFoundError: No module named 'interactions.events'

severe token
#

pip show discord-py-interactions in your console and show the result.

#

And please delete the file, you are leaking your token.

#

Or at least hide it when pasting.

open tide
#

yeah i did

severe token
#

Alright.

open tide
#

i quickly just changed it

#

Name: discord-py-interactions
Version: 5.11.0
Summary: Easy, simple, scalable and modular: a Python API wrapper for interactions.
Home-page: https://github.com/interactions-py/interactions.py
Author: LordOfPolls
Author-email: [email protected]
License:
Location: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages
Requires: aiohttp, attrs, discord-typings, emoji, tomli
Required-by:

GitHub

A highly extensible, easy to use, and feature complete bot framework for Discord - interactions-py/interactions.py

#

thats what i got

#

@severe token so what do i need to do?

severe token
#

Can you uninstall i-py completely and reinstall?

#

And please don't specifically ping for help.

open tide
#

im on macos btw if that changes anything

severe token
#

Did you create an environment or something?

#

Or just pip install directly?

open tide
severe token
#

And did you have v4 installed previously?

open tide
#

but that was archived

#

and i dont think it works anymore

severe token
#

It was a different lib, not related to i-py.

#

I suggest uninstall everything then do a reinstall.

open tide
#

ill just try and do it on my pc with windows

#

because everything on there is new and organized

#

is there anything wrong with the code?

severe token
#

The code looks fine for me.

open tide
#

Traceback (most recent call last):
File "C:\Users\koufa\Desktop\bit\main.py", line 3, in <module>
from interactions.events import MessageCreate
ModuleNotFoundError: No module named 'interactions.events'

i tried it on my pc just fresh installed interactions

still same error

#

its with the code im pretty sure

#

it would mean such a grate deal for u to help me fix my code

severe token
#

Hmm.

#

How about you remove that line?

left sleet
#

and also change these to interactions.events.MessageCreate

open tide
#

Traceback (most recent call last):
File "C:\Users\koufa\Desktop\bit\main.py", line 3, in <module>
from interactions.events import MessageCreate
ModuleNotFoundError: No module named 'interactions.events'

still the same error

severe token
# left sleet

What if you just use interactions.events.MessageCreate in there?

#

Well, the problem seems to be about your python installation.

#

It can't even locate the interactions library now.