R
Railway

✋|help

Adding support for python with isolated-vm npm package

Cched_dev9/19/2023
Hello, I am using a project that requires the isolated-vm npm package (https://www.npmjs.com/package/isolated-vm) which depends on a python installation for building. Currently I run node@18.12.1, but how can I add python to run along with it? Some logs attached in thread.
BBrody9/19/2023
add a nixpacks.toml to your project that contains this
[phases.setup]
nixPkgs = ['...', 'python38']
[phases.setup]
nixPkgs = ['...', 'python38']
Cched_dev9/19/2023
Great! that got me further, but still errors. Seems vague, would you happen to have any idea where I can go from here?
#10 32.88 npm ERR! make: g++: No such file or directory

#10 32.88 npm ERR! make: *** [nortti.target.mk:158: Release/obj.target/nortti/src/isolate/allocator_nortti.o] Error 127

#10 32.88 npm ERR! make: *** Waiting for unfinished jobs....

#10 32.88 npm ERR! make: g++: No such file or directory

#10 32.88 npm ERR! make: *** [nortti.target.mk:158: Release/obj.target/nortti/src/external_copy/serializer_nortti.o] Error 127

#10 32.88 npm ERR! gyp ERR! build error

#10 32.88 npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2

#10 32.88 npm ERR! gyp ERR! stack at ChildProcess.onExit (/app/node_modules/node-gyp/lib/build.js:194:23)

#10 32.88 npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)

#10 32.88 npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12)

#10 32.88 npm ERR! gyp ERR! System Linux 5.10.0-25-cloud-amd64

#10 32.88 npm ERR! gyp ERR! command "/nix/store/7ppnyqmp1c92gkfrixbz99sw7q6ifkg1-nodejs-18.12.1/bin/node" "/app/node_modules/.bin/node-gyp" "rebuild" "--release" "-j" "4"

#10 32.88 npm ERR! gyp ERR! cwd /app/node_modules/isolated-vm

#10 32.88 npm ERR! gyp ERR! node -v v18.12.1
#10 32.88 npm ERR! make: g++: No such file or directory

#10 32.88 npm ERR! make: *** [nortti.target.mk:158: Release/obj.target/nortti/src/isolate/allocator_nortti.o] Error 127

#10 32.88 npm ERR! make: *** Waiting for unfinished jobs....

#10 32.88 npm ERR! make: g++: No such file or directory

#10 32.88 npm ERR! make: *** [nortti.target.mk:158: Release/obj.target/nortti/src/external_copy/serializer_nortti.o] Error 127

#10 32.88 npm ERR! gyp ERR! build error

#10 32.88 npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2

#10 32.88 npm ERR! gyp ERR! stack at ChildProcess.onExit (/app/node_modules/node-gyp/lib/build.js:194:23)

#10 32.88 npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)

#10 32.88 npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12)

#10 32.88 npm ERR! gyp ERR! System Linux 5.10.0-25-cloud-amd64

#10 32.88 npm ERR! gyp ERR! command "/nix/store/7ppnyqmp1c92gkfrixbz99sw7q6ifkg1-nodejs-18.12.1/bin/node" "/app/node_modules/.bin/node-gyp" "rebuild" "--release" "-j" "4"

#10 32.88 npm ERR! gyp ERR! cwd /app/node_modules/isolated-vm

#10 32.88 npm ERR! gyp ERR! node -v v18.12.1
BBrody9/19/2023
try this now
[phases.setup]
nixPkgs = ['...', 'python38', 'gcc']
[phases.setup]
nixPkgs = ['...', 'python38', 'gcc']
also for sending logs, it would be easier for both of us if you could use this https://bookmarklets.up.railway.app/log-downloader/
Cched_dev9/19/2023
got the bookmarlet set up for next time. That solved it! thanks for your help brody! you da best.
BBrody9/19/2023
no problem! 🙂

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
Listmonk; Static FilesNot sure why my post was deleted, but here it is again: Hello, I've deployed Listmonk on Railway, ConcurrencyWill concurrent requests to a single endpoint work? And where would the logs appear for each individProblem with Flask-Caching/ RedisI'm trying to setup a simple caching mecanism to my Plotly Dash (Flask) application deployed to railWorker Killed IssueI'm getting the attached error when I try to request my app from a React frontend, whereas I wasn't Need help with deploymentSubject: Seeking Guidance on Loading Environment Variables in Railway for My Go API Deployment Hi ebun: command not foundHello, I'm trying to migrate my project to bun to make TS easier, and I'm when deploying, the logs Metrics on Number of Web RequestsI just deployed a web API and would like to keep track of the number of requests made to the API. DoIs there a timeout on my api functions when deploying a nextjs app?I coudnt find anything about this on google or the docs, Thanks for helpingI have problems with the database when I do a deploy.I have a mongo DB database that is connected to a node js, to connect to mongo I use the url that moI have problems with the database when I do a deploy.I have a mongo DB database that is connected to a node js, to connect to mongo I use the url that moError comunicate with internal servicecsI'm trying to make a post on a route that is in an internal service on railway = api-ecompleto.railwUnchanged repo fails to deploy on env var change.I had this exact setup running last night, and this morning when I changed an environment variable iIs it possible to host Unity project?I have a unity game development project which runs C# Since I already use railway for my other projCan't see organizations reposTitle.Please my images are not displaying after deploying on railway. I am new in web development.Please I am new to web development and first time deploying to railway. I have django drf backend wiISO 27001Hi this might be a dumb question but does Railway have the ISO 27001 certification or is that irreledeploying react with viteI've deployed a react app with vite, exposing network ip but I can't access it - says Application faOpenSSL error when using Bun + PrismaGetting an error when using Bun and prisma together. Prisma requires node to work, so start command