You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported workaround is a manual install from archived github repo: pipenv install https://github.com/kiki7000/discord.py-components/archive/refs/tags/2.1.2.tar.gz
The text was updated successfully, but these errors were encountered:
@frostyboskitzo I tried your workaround of doing the manual install of discord-components first and still ran into issues getting imports going:
Traceback (most recent call last):
File "run.py", line 1, in <module>
import bot
File "/home/steam/pavlov-bot/bot/__init__.py", line 8, in <module>
from discord_components import DiscordComponents
File "/home/steam/.local/share/virtualenvs/pavlov-bot-WoHbs0yw/lib/python3.8/site-packages/discord_components/__init__.py", line 1, in <module>
from .client import *
File "/home/steam/.local/share/virtualenvs/pavlov-bot-WoHbs0yw/lib/python3.8/site-packages/discord_components/client.py", line 12, in <module>
from .component import Component
File "/home/steam/.local/share/virtualenvs/pavlov-bot-WoHbs0yw/lib/python3.8/site-packages/discord_components/component.py", line 3, in <module>
from discord import PartialEmoji, Emoji, InvalidArgument
ImportError: cannot import name 'InvalidArgument' from 'discord' (/home/steam/.local/share/virtualenvs/pavlov-bot-WoHbs0yw/lib/python3.8/site-packages/discord/__init__.py)
Any chance you tried something else first?
EDIT
Figured out that the manual update of discord-components for some reason upgrades discord.py to the new 2.0.1 version that breaks the bot. Resync Pipfile.lock from git and then do a pipenv sync gets a working bot.
@Derpyhsi Any chance you are interested in helping sort some things out? Otherwise it seems likely that the entire buttons system is going to have to be ripped out unless we can get it working with the new libraries.
Discord-components (https://github.com/kiki7000/discord.py-components) is no longer being maintained and has been removed from pypi.
Reported workaround is a manual install from archived github repo:
pipenv install https://github.com/kiki7000/discord.py-components/archive/refs/tags/2.1.2.tar.gz
The text was updated successfully, but these errors were encountered: