Skip to content
Python and Pip not working, using railpack
steveb0tr21
OP

a year 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

a year ago

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

why do you have a start.sh ?


steveb0tr21
OP

a year ago

im using it for start command


steveb0tr21
OP

a year ago

bash start.sh


steveb0tr21
OP

a year ago

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


steveb0tr21
OP

a year ago

for some reason


a year 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
OP

a year ago

yh thats mainly why I did start.sh


steveb0tr21
OP

a year ago

I assumed it was necessary from that error


a year ago

Alright, I figured as much, no worries


a year 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
OP

a year ago

yes its python project, let me send screenshot wait


steveb0tr21
OP

a year ago

which files are the root-level ones


a year 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
OP

a year ago

ok wait a second


fiskyna

a year ago

like bot.py or any cogs files i think so


steveb0tr21
OP

a year ago

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

1455232037903532112


a year 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
OP

a year ago

yh absolutely rubbish


steveb0tr21
OP

a year ago

gonna roll back later tho


a year ago

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


steveb0tr21
OP

a year ago

isolated


a year ago

perfect, this will be much easier then


a year 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
OP

a year ago

alright


a year ago

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


steveb0tr21
OP

a year ago

thank you


a year ago

no worries


steveb0tr21
OP

a year ago

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


a year ago

makes sense 🤣


a year ago

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


steveb0tr21
OP

a year ago

railway works with fastAPI backend right


a year ago

for sure


steveb0tr21
OP

a year ago

thanks


a year ago

here's an example fastapi app working on Railway:


steveb0tr21
OP

a year ago

thanks


a year ago

did you get it working?


steveb0tr21
OP

a year ago

yes, thank you


a year ago

awesome!


Status changed to Solved dev • 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...