Closed FeelsBadMan1 closed 2 years ago
That exception is not from the library...
The exception happen, because it somehow use discord.py even tho discord.py-self is installed. i already tried to removing discord and discord.py libary but this threw some now issues. i think a simple solution would be to change the lib import name so it dont conflict with discord and discord.py libary installed.
I'm using the lib and I don't face any issue like this unless
you try to use await bot.logout()
and you can solve it. from this issue
@FeelsBadMan1 If you uninstalled discord.py (and any variants such as enhanced-discord.py or nextcord), as well as reinstalled discord.py-self, all should be good. If you want a renamed version, use the renamed branch directly from git.
i still had nextcord installed. it worked when uninstalling however i not want to install, uninstall these packages depending on what i working on i think this is relateable. Is there a better solution so the libarys not conflict each other?
Yes. virtualenvs
, installing the renamed branch through git
, or removing the discord alias from nextcord.
Summary
running the script cause the issue
Reproduction Steps
i just installed the newest version from discord.py-self and noticed this issue. i think it would be good to replace the importname so you use import selfcord and from selfcord.ext import ... instead of discord so you can have both packages installed at the same time
Code
Expected Results
i expected it to work fine
Actual Results
not working fine
System Information
Checklist
Additional Information
No response