Merubokkusu / Discord-S.C.U.M

A Discord API Wrapper for Userbots/Selfbots written in Python.
MIT License
590 stars 166 forks source link

Cant import #392

Open GSstarGamer opened 2 years ago

GSstarGamer commented 2 years ago

Exception has occurred: AttributeError partially initialized module 'discum' has no attribute 'Client' (most likely due to a circular import)

please help

NeutronBlast commented 2 years ago

How do you have your import specified?

RadicoLabs commented 1 year ago

Also getting the above error. My Code is as follows:

import discum
bot = discum.Client(token="")
bot.sendMessage("ACCOUNT_ID", "Hello :)")

Installed via:

python -m pip install --user --upgrade git+https://github.com/Merubokkusu/Discord-S.C.U.M.git#egg=discum Python 3.10.9

@NeutronBlast Any ideas ?

fwinn commented 1 year ago

For me, the problem was that my python file was also named "discum.py", just like the module. Renaming it to something else fixed it.