#running python in node.js
66 messages · Page 1 of 1 (latest)
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
what's spawn from? child_process?
looks like that env doesn't have a python binary.
that's how u run python on node.js
childproccess is a module
i know what child_process is, im asking to confirm that's how you've defined it
that's how
._.
sidenote; you can't run python in node.js without a interpreter for python, child_process lets you run python from nodejs
they're still kinda separate
anyways yeah ENOENT is short for "Error: No Entry" so looks like this is the case
wdym no entry
._.
"entry" here refers to something in a directory (folder)
so like no such file exists?
so basically there's no binary called python, or at least the shell didn't find one
yes
doing fs.readFile or whatever on a non-existant file will give the same error
that's not the missing thing
what is?
the python interpreter is missing
python itself is the missing thing
@subtle bay ._.
????
huh
so I have to download python? tf
.______.
isn't that replit
@subtle bay it is
you don't need to ping me, im right here
._. ok
anyways yeah i wouldn't recommend trying to access other executables (or at least, expecting that to be reliable) on an environment you don't/can't control
the library isn't available in js it's for a private insta api ._.
you could try some other calls to probe what the environment does have, but the environment can change at any time so don't expect it to be reliable
why not just run that locally?
you can know and modify the environment locally.
the entire thing is for verifying insta followers
and I don't have a server to do so
or a domain ._.
so you want this to be on 24/7?
ye
im not so sure instagram is going to like that
bruh it's just accepting insta follow requests
._.
that's not the problem
what is?
the (potential) problem is it being on perpetually
?
a bot that's always on and accessing private instagram apis
does that not sound at least somewhat questionable
how they gonna know hes a bot💀
they don't really need to
.-.
bruh my little brain is getting smoooooshhheeeed
please be considerate of other services when making your projects
anything else i can tell you, i've already said
._. so u can't run python on replit cuz replit doesn't have it installed from there side?
you can run python on replit, but i guess not from the environment configured for js
or at least, not under python
you could probably install it from shell
well what's can i do?
uhm how do u install python from shell?
may i have a command line cuz I only installed packages never anything else beyond that
sounds pretty questionable to do it for an environment you don't actually control.