Closed xYanzu closed 1 year ago
You seem to have multiple conflicting packages using the discord namespace in the same environment. Uninstall them all, and reinstall this library. If you want to use this library with upstream, see the relevant section in the README.
I only have discord.py-self installed
??
Your traceback proves that is not the case. Even if it is true now, it wasn't when you installed the library overtop an existing package. You need to uninstall everything using the discord
namespace in the environment and reinstall the library.
With version 1.9.2 the script works perfectly, but when I update the module the error appears
???
Summary
Error when launching via the new version of the module
Reproduction Steps
pip install git+https://github.com/dolfies/discord.py-self.git
python3 main.py
When I run my code with version 2.0.0 of the module, an error appears here:
Traceback (most recent call last): File "/home/yanzu/Bureau/Core Project/main.py", line 3, in import discord File "/home/yanzu/.local/lib/python3.10/site-packages/discord/init.py", line 22, in from . import abc as abc, opus as opus, utils as utils File "/home/yanzu/.local/lib/python3.10/site-packages/discord/abc.py", line 62, in from .commands import ApplicationCommand, BaseCommand, SlashCommand, UserCommand, MessageCommand, _command_factory File "/home/yanzu/.local/lib/python3.10/site-packages/discord/commands/init.py", line 26, in from .context import * File "/home/yanzu/.local/lib/python3.10/site-packages/discord/commands/context.py", line 30, in from discord.interactions import InteractionMessage, InteractionResponse, Interaction ImportError: cannot import name 'InteractionMessage' from 'discord.interactions' (/home/yanzu/.local/lib/python3.10/site-packages/discord/interactions.py)
Code
No response
Expected Results
Run my script
Actual Results
An error appears
System Information
Checklist
Additional Information
No response