dopeghoti / DiscordCurrentlyCastingBot

Python-based bot which uses the Discord and Twitch APIs to monitor a list of approved channels. When one goes live, a message will be posted. Any links to channels not on the air or approved will be removed.
5 stars 0 forks source link

`ModuleNotFoundError: No module named 'discord.ext'` on startup #19

Open CrystalSpore opened 2 years ago

CrystalSpore commented 2 years ago

Running into an issue upon migrating to a new system.

Steps I have ran: pip3 install -U -r requirements.txt python3 bot.py

Which produces the results:

# python3 bot.py
/usr/local/lib/python3.10/dist-packages/discord/__init__.py:47: UserWarning:
The next major version of discord.py (v0.10.0) will have major breaking changes
that will require updating/changing your code.
Please check the migrating guide to alleviate yourself of unexpected issues.
http://discordpy.readthedocs.org/en/latest/migrating.html
It is strongly recommended to make the switch as soon as possible.

  warnings.warn(_warning_message, UserWarning)
Traceback (most recent call last):
  File "/mnt/lgbteacafe_currently_casting/bot.py", line 4, in <module>
    from discord.ext import commands, tasks
ModuleNotFoundError: No module named 'discord.ext'

^^ This is happening both on the main branch & the DiscordExceptionHandling branch

Debug information:

# uname -a
Linux machina 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
# python3 --version
Python 3.10.4

Attempted troubleshooting steps: Re-installed discord.py, tried switching to git+https://github.com/Rapptz/discord.py@async from the standard discord.py

Please let me know if there is anything else you need for helping troubleshoot this issue.