Golang with python script
4hoeschele
TRIALOP

a year ago

Hello, I'm currently trying to run my applications backend. The backend consists of a golang application which calls a couple of python scripts. The logs keep telling me this:
"python3": executable file not found in $PATH
I'm not sure what to do, because I don't have much experience when it comes to infrastructure.

Solved

14 Replies

brody
EMPLOYEE

a year ago

Hello,

Have you tried adding python to the list of providers in your service settings?

You will also need to set CGO_ENABLED=1

Attachments


Status changed to Awaiting User Response Railway 12 months ago


brody

Hello,Have you tried adding python to the list of providers in your service settings?You will also need to set CGO_ENABLED=1

4hoeschele
TRIALOP

a year ago

Hey brody, thanks for the fast response!
CGO_ENABLED=1 this as one of the variables?
Do I have to reference it in my code or is it only for the internal pipeline?


Status changed to Awaiting Railway Response Railway 12 months ago


brody
EMPLOYEE

a year ago

It is a service variable, you do not need to use it in code, it is used only by Nixpacks.


Status changed to Awaiting User Response Railway 12 months ago


brody

It is a service variable, you do not need to use it in code, it is used only by Nixpacks.

4hoeschele
TRIALOP

a year ago

Ok, just to make sure:


Status changed to Awaiting Railway Response Railway 12 months ago


brody

It is a service variable, you do not need to use it in code, it is used only by Nixpacks.

4hoeschele
TRIALOP

a year ago

Ok, just to make sure:


brody

It is a service variable, you do not need to use it in code, it is used only by Nixpacks.

4hoeschele
TRIALOP

a year ago

Ok, just to make sure:


brody

It is a service variable, you do not need to use it in code, it is used only by Nixpacks.

4hoeschele
TRIALOP

a year ago

Ok, just to make sure:

Attachments


4hoeschele

Ok, just to make sure:

4hoeschele
TRIALOP

a year ago

sorry for the spam. My "v" key got stuck lel.
This is the correct place, right?


brody
EMPLOYEE

a year ago

Unless I'm blind, I do not see the variable set in any of those screenshots?


Status changed to Awaiting User Response Railway 12 months ago


4hoeschele
TRIALOP

a year ago

lol Just wanted to make sure that's the correct place before setting it.


Status changed to Awaiting Railway Response Railway 12 months ago


4hoeschele
TRIALOP

a year ago

Is there a documentation where I could've found the answers you just gave me?


brody
EMPLOYEE

a year ago

This basics page would be very helpful for people new to Railway, it will get you caught up on the terminology -

https://docs.railway.com/overview/the-basics#service-variables


Status changed to Awaiting User Response Railway 12 months ago


4hoeschele
TRIALOP

a year ago

Sick, it worked! Thanks a lot!


Status changed to Awaiting Railway Response Railway 12 months ago


brody
EMPLOYEE

a year ago

Awsome!


Status changed to Awaiting User Response Railway 12 months ago


Status changed to Solved brody 12 months ago


Loading...