← Back to Community
Hikari packages not working
Profile icon
st1xkz

[FIXED] i have a discord bot that i code in python on here and i used to use discord.py but since it's no longer being maintained, i'm switching over to a new library called hikari. when i used to work in d.py, it let me install the package and everything worked fine but now since i'm using hikari, it's not letting me install the package from the packages tab and i'd have to do pip install hikari and pip install hikari-lightbulb in the shell over and over again just to get my bot online and the commands working. it gives me this error whenever i try to install the packages from the tab and i don't know what to do, can anyone help? https://cdn.discordapp.com/attachments/884947546592641104/893021853185105920/image0.png

edit: I've figured this out with people helping, but if you want to use hikari in replacement of discord.py, paste this into your pyproject.toml file and it'll install the packages:

hikari = {version = "^2.0.0-alpha.105", python = "~3.8"} hikari-lightbulb = {version = "^2.1.3", python = "~3.8"}

if you want proof that it did install, you can do this in your main file:

import hikari import lightbulb print(f"hikari: {hikari.__version__}") print(f"lightbulb: {lightbulb.__version__}")
Voters
Profile icon
st1xkz
Profile icon
thatgurkangurk
Comments
hotnewtop
Profile icon
thatgurkangurk

I'm having the same issue. Any fixes?

Profile icon
st1xkz