Hosting error
i am hosting my discord bot written in python using nextcord library and when i deploy it then it shows no module found 'nextcord'
45 Replies
Project ID:
ddaf72cb-61dd-4983-badb-883624f55b44
ddaf72cb-61dd-4983-badb-883624f55b44
not a python expert, but seems like a dependecy error
is the package inside your requirements.txt file?
there is no requirements.txt file
there is only one main.py file
You need a
requirements.txt
file with your bots dependencies in ityou need to add one with all the packages you wanna use
so that railway's container can install em
for example for nextcord you put
nextcord==2.5.0
or whatever version you use on each line list a different onebut in my previous bot written in js nothing happens
js is different
and in my this project when i use
pip install discord.py
in build command then it shows command not found
it auto adds the package-lock.json file
just do what we told you, you have to do it
look at what packages you use, and put em in the file
especifying the version
just discord.py pakage
also, may i ask why you moved to python from js?
this implies you at least use nexcord
more easy and useful
i now chnged to discord.py
coz i think it will work
@jonbeau python is not good :(