Golang with python script

4hoescheleTRIAL

4 months 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

4 months 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[bot] 4 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

4hoescheleTRIAL

4 months 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[bot] 4 months ago


4 months 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[bot] 4 months ago


brody

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

4hoescheleTRIAL

4 months ago

Ok, just to make sure:

Attachments


Status changed to Awaiting Railway Response railway[bot] 4 months ago


brody

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

4hoescheleTRIAL

4 months ago

Ok, just to make sure:

Attachments


brody

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

4hoescheleTRIAL

4 months ago

Ok, just to make sure:

Attachments


brody

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

4hoescheleTRIAL

4 months ago

Ok, just to make sure:

Attachments


4hoeschele

Ok, just to make sure:

4hoescheleTRIAL

4 months ago

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


4 months ago

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


Status changed to Awaiting User Response railway[bot] 4 months ago


4hoescheleTRIAL

4 months ago

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


Status changed to Awaiting Railway Response railway[bot] 4 months ago


4hoescheleTRIAL

4 months ago

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


4 months 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[bot] 4 months ago


4hoescheleTRIAL

4 months ago

Sick, it worked! Thanks a lot!


Status changed to Awaiting Railway Response railway[bot] 4 months ago


4 months ago

Awsome!


Status changed to Awaiting User Response railway[bot] 4 months ago


Status changed to Solved brody 4 months ago


Golang with python script - Railway Help Station