gyp ERR! find Python

hammer0x419PRO

3 months ago

…/.pnpm/usb@2.14.0/node_modules/usb install: gyp ERR! find Python

…/.pnpm/usb@2.14.0/node_modules/usb install: gyp ERR! configure error

…/.pnpm/usb@2.14.0/node_modules/usb install: gyp ERR! stack Error: Could not find any Python installation to use

…/.pnpm/usb@2.14.0/nodemodules/usb install: gyp ERR! stack at PythonFinder.fail (/nix/store/ha0znbr6xrplqbk7ndijw7pp77c4ffs8-pnpm/dist/nodemodules/node-gyp/lib/find-python.js:306:11)

…/.pnpm/usb@2.14.0/nodemodules/usb install: gyp ERR! stack at PythonFinder.findPython (/nix/store/ha0znbr6xrplqbk7ndijw7pp77c4ffs8-pnpm/dist/nodemodules/node-gyp/lib/find-python.js:164:17)

…/.pnpm/usb@2.14.0/nodemodules/usb install: gyp ERR! stack at process.processTicksAndRejections (node:internal/process/taskqueues:105:5)

…/.pnpm/usb@2.14.0/nodemodules/usb install: gyp ERR! stack at async configure (/nix/store/ha0znbr6xrplqbk7ndijw7pp77c4ffs8-pnpm/dist/nodemodules/node-gyp/lib/configure.js:27:18)

…/.pnpm/usb@2.14.0/nodemodules/usb install: gyp ERR! stack at async run (/nix/store/ha0znbr6xrplqbk7ndijw7pp77c4ffs8-pnpm/dist/nodemodules/node-gyp/bin/node-gyp.js:81:18)

…/.pnpm/usb@2.14.0/node_modules/usb install: gyp ERR! System Linux 6.1.0-28-cloud-amd64

…/.pnpm/usb@2.14.0/nodemodules/usb install: gyp ERR! command "/nix/store/0xvgzkl74v6jrh79ibh7ss770dh4hb69-nodejs-22.10.0/bin/node" "/nix/store/ha0znbr6xrplqbk7ndijw7pp77c4ffs8-pnpm/dist/nodemodules/node-gyp/bin/node-gyp.js" "rebuild"

…/.pnpm/usb@2.14.0/nodemodules/usb install: gyp ERR! cwd /app/nodemodules/.pnpm/usb@2.14.0/node_modules/usb

…/.pnpm/usb@2.14.0/node_modules/usb install: gyp ERR! node -v v22.10.0

…/.pnpm/usb@2.14.0/node_modules/usb install: gyp ERR! node-gyp -v v10.3.1

…/.pnpm/usb@2.14.0/node_modules/usb install: gyp ERR! not ok

…/.pnpm/usb@2.14.0/node_modules/usb install: Failed

 ELIFECYCLE  Command failed with exit code 1.

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

2 Replies

3 months ago

Just banged my head with Brandon on a call to fix this issue, circle back if this is resolved.


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


hammer0x419PRO

3 months ago

Thanks Angelo for all the help. The issue was that we needed some dependencies that required some C and Python libraries and the best solution was to create a Dockerfile that included these. Specifically, we believe the build-essentialis what was missing


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


Status changed to Solved brody 3 months ago


gyp ERR! find Python - Railway Help Station