#How to install python3 on railway server for Node.js project
19 messages · Page 1 of 1 (latest)
Project ID: N/A
N/A
add a nixpacks.toml file to your project with this
[phases.setup]
nixPkgs = ["...", "python3"]
please keep your questions in #1006629907067064482
spamming other channels will result in a kick
my apologies
that's all? does the ellipses need to be anything?
appreciate your help
do i install other pip packages here as well?
getting an issue with an installed module
do you need to install python packages?
okay I will circle back around to this thread later, in the mean time can you please provide me with your repo so that once I get back I'll be able to create a nixpacks.toml file for you
i'm just running a python script using the
"spawn" command from "child_process" in my node controller and that python script imports the module "telethon"
from telethon.sync import TelegramClient
import sys
import json
import os
for which on my local i ran "pip3 install telethon"
the rest of the codebase is irrelevant, your suggestion got the python file running it is just missing this telethon module and i'm not sure how to install it
(can i ssh into the railway server? or do i need to do something in this .toml file?)
I'm sorry but userbots are not allowed on railway
https://railway.app/legal/fair-use
telethon counts as a userbot unfortunately
oh drats thanks for letting me know, ill find a different solution