Python and Pip not working, using railpack
steveb0tr21
FREEOP

3 months ago

start.sh: line 4: pip: command not found
start.sh: line 9: python: command not found
start.sh: line 4: pip: command not found
start.sh: line 9: python: command not found
start.sh: line 4: pip: command not found
start.sh: line 9: python: command not found
start.sh: line 4: pip: command not found
start.sh: line 9: python: command not found
start.sh: line 4: pip: command not found
start.sh: line 9: python: command not found
start.sh: line 4: pip: command not found
start.sh: line 9: python: command not found
start.sh: line 4: pip: command not found
start.sh: line 9: python: command not found
start.sh: line 4: pip: command not found
start.sh: line 9: python: command not found
start.sh: line 4: pip: command not found
start.sh: line 9: python: command not found
start.sh: line 4: pip: command not found
start.sh: line 9: python: command not found
start.sh: line 4: pip: command not found
start.sh: line 9: python: command not found

What am I doing wrong? I am beginner dev so sorry if this question is stupid.

Solved

38 Replies

3 months ago

There's no stupid questions in this server, dont worry

why do you have a start.sh ?


steveb0tr21
FREEOP

3 months ago

im using it for start command


steveb0tr21
FREEOP

3 months ago


steveb0tr21
FREEOP

3 months ago

when i try to do a python file on start command just doesnt work


steveb0tr21
FREEOP

3 months ago

for some reason


3 months ago

the reason I ask is because Railpack, when it doesn't figure out what kind of project you're running, will default to a state where it assumes its some sort of custom project where it'll then look for a start.sh (iirc) and if not found it'll tell you something like:

"Railpack couldn't figure out a build plan for this project. start.sh not found"
-# this is paraphrasing

if you decided to add a start.sh because of that then there's a more root level issue we need to tackle


steveb0tr21
FREEOP

3 months ago

yh thats mainly why I did start.sh


steveb0tr21
FREEOP

3 months ago

I assumed it was necessary from that error


3 months ago

Alright, I figured as much, no worries


3 months ago

based on the error, I'm guessing this is a python project? could you send me a screenshot of your root-level files?


steveb0tr21
FREEOP

3 months ago

yes its python project, let me send screenshot wait


steveb0tr21
FREEOP

3 months ago

which files are the root-level ones


3 months ago

just the top-most ones

  • on a github repo, just take click on the repo and send a screenshot of what you see

  • if youre not using github for this and using railway up instead, then just open the folder in which youre running railway-up and send a screenshot of the contents of that folder


steveb0tr21
FREEOP

3 months ago

ok wait a second


fiskyna
FREE

3 months ago

like bot.py or any cogs files i think so


steveb0tr21
FREEOP

3 months ago

bit messy bc i got ai to help with the error before I came here but here os screenshot

1455232037903532000


3 months ago

yea the AI seems to have made a mess of things, railway.json and railway.toml is redundant and nixpacks.toml isn't up-to-date anymore because nixpacks is deprecated


steveb0tr21
FREEOP

3 months ago

yh absolutely rubbish


steveb0tr21
FREEOP

3 months ago

gonna roll back later tho


3 months ago

alright, no worries, it looks like you're running a monorepo, is this a shared monorepo or isolated monorepo?


steveb0tr21
FREEOP

3 months ago

isolated


3 months ago

perfect, this will be much easier then


3 months ago

you'll want to create 2 services, one for each service in your monorepo (in this case frontend and backend)
provide the repo as the source for each but set the root directory on one to backend and the other to frontend


steveb0tr21
FREEOP

3 months ago

alright


3 months ago

here's a guide with pictures if you get stuck:


steveb0tr21
FREEOP

3 months ago

thank you


3 months ago

no worries


steveb0tr21
FREEOP

3 months ago

was looking for smth like this but there were too much documentation couldnt find it


3 months ago

makes sense 🤣


3 months ago

good luck!! I need to step away for a bit (power went out), I'll check back once my power is back


steveb0tr21
FREEOP

3 months ago

railway works with fastAPI backend right


3 months ago

for sure


steveb0tr21
FREEOP

3 months ago

thanks


3 months ago

here's an example fastapi app working on Railway:


steveb0tr21
FREEOP

3 months ago

thanks


3 months ago

did you get it working?


steveb0tr21
FREEOP

3 months ago

yes, thank you


3 months ago

awesome!


Status changed to Solved dev 3 months ago


Loading...