I already tried upgrading aiohttp after which I (still) got this error:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed.
This behaviour is the source of the following dependency conflicts.
discord-py 2.0.1 requires aiohttp<4,>=3.7.4, but you have aiohttp 3.6.3 which is incompatible.
After upgrading pip itself I got the following error instead:
Failed to download plugin, check logs for error.
<class 'cogs.plugins.InvalidPluginError'>: Cannot load extension, plugin invalid.
When I checked the logs using ?debug this is what it said:
discord.ext.commands.errors.ExtensionFailed: Extension 'plugins.Taaku18.modmail-plugins.music-master.music' raised an error: Error: Incorrect padding
2022-10-26 16:24:26 cogs.plugins[389] - WARNING: Unable to load plugin Taaku18/modmail-plugins/music@master.
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 946, in _load_from_module_spec
await setup(self)
File "/modmailbot/plugins/Taaku18/modmail-plugins/music-master/music.py", line 1371, in setup
bot.add_cog(Music(bot))
File "/modmailbot/plugins/Taaku18/modmail-plugins/music-master/music.py", line 75, in __init__
BOT_ID = int(b64decode(self.bot.token.split(".")[0]).decode())
File "/usr/local/lib/python3.9/base64.py", line 87, in b64decode
return binascii.a2b_base64(s)
binascii.Error: Incorrect padding
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/modmailbot/cogs/plugins.py", line 259, in load_plugin
await self.bot.load_extension(plugin.ext_string)
File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 1012, in load_extension
await self._load_from_module_spec(spec, name)
File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 951, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
discord.ext.commands.errors.ExtensionFailed: Extension 'plugins.Taaku18.modmail-plugins.music-master.music' raised an error: Error: Incorrect padding
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/modmailbot/cogs/plugins.py", line 387, in plugins_add
await self.load_plugin(plugin)
File "/modmailbot/cogs/plugins.py", line 265, in load_plugin
raise InvalidPluginError("Cannot load extension, plugin invalid.") from exc
cogs.plugins.InvalidPluginError: Cannot load extension, plugin invalid.
I run the bot in an to internet exposed docker container with all requirements installed.
My modmail version is 4.0.1
After every step I took I both reinstalled the plugin and restarted the docker container (and therefore also the discord bot)
I already tried upgrading aiohttp after which I (still) got this error:
After upgrading pip itself I got the following error instead:
When I checked the logs using ?debug this is what it said:
I run the bot in an to internet exposed docker container with all requirements installed.
My modmail version is 4.0.1
After every step I took I both reinstalled the plugin and restarted the docker container (and therefore also the discord bot)