Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discord-components removed from pypi #140

Open
invicta-nz opened this issue Aug 16, 2022 · 2 comments
Open

Discord-components removed from pypi #140

invicta-nz opened this issue Aug 16, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@invicta-nz
Copy link
Collaborator

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

@invicta-nz invicta-nz added the bug Something isn't working label Aug 16, 2022
@invicta-nz
Copy link
Collaborator Author

invicta-nz commented Sep 2, 2022

@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.

@invicta-nz
Copy link
Collaborator Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant