R
Railway•13mo ago
Vasuxdev

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
Percy
Percy•13mo ago
Project ID: ddaf72cb-61dd-4983-badb-883624f55b44
Vasuxdev
Vasuxdev•13mo ago
ddaf72cb-61dd-4983-badb-883624f55b44
LaCrak27
LaCrak27•13mo ago
not a python expert, but seems like a dependecy error is the package inside your requirements.txt file?
Vasuxdev
Vasuxdev•13mo ago
there is no requirements.txt file there is only one main.py file
jonbeau
jonbeau•13mo ago
You need a requirements.txt file with your bots dependencies in it
LaCrak27
LaCrak27•13mo ago
you need to add one with all the packages you wanna use so that railway's container can install em
jonbeau
jonbeau•13mo ago
for example for nextcord you put nextcord==2.5.0 or whatever version you use on each line list a different one
Vasuxdev
Vasuxdev•13mo ago
but in my previous bot written in js nothing happens
LaCrak27
LaCrak27•13mo ago
js is different
Vasuxdev
Vasuxdev•13mo ago
and in my this project when i use pip install discord.py in build command then it shows command not found
LaCrak27
LaCrak27•13mo ago
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
Vasuxdev
Vasuxdev•13mo ago
just discord.py pakage
LaCrak27
LaCrak27•13mo ago
also, may i ask why you moved to python from js? this implies you at least use nexcord
Vasuxdev
Vasuxdev•13mo ago
more easy and useful i now chnged to discord.py coz i think it will work
LaCrak27
LaCrak27•13mo ago
@jonbeau python is not good :(
Want results from more Discord servers?
Add your server