R
Railway3y ago
will

Deployment error

Hey! When trying to deploy my discord bot (nodeJS) using Nixpacks (no issues with heroku buildpacks), I'm getting this error during build:
#11 7.033 npm ERR! path /app/node_modules/erlpack
#11 7.035 npm ERR! command failed
#11 7.035 npm ERR! command sh /tmp/install-cc5b7eb4.sh
#11 7.035 npm ERR! gyp info it worked if it ends with ok
#11 7.035 npm ERR! gyp info using [email protected]
#11 7.035 npm ERR! gyp info using [email protected] | linux | x64
#11 7.035 npm ERR! gyp ERR! find Python
#11 7.035 npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration
#11 7.035 npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
#11 7.035 npm ERR! gyp ERR! find Python checking if "python3" can be used
#11 7.035 npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error
#11 7.035 npm ERR! gyp ERR! find Python checking if "python" can be used
#11 7.035 npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error
#11 7.035 npm ERR! gyp ERR! find Python
#11 7.035 npm ERR! gyp ERR! find Python **********************************************************
#11 7.035 npm ERR! gyp ERR! find Python You need to install the latest version of Python.
#11 7.035 npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
#11 7.035 npm ERR! gyp ERR! find Python you can try one of the following options:
#11 7.035 npm ERR! gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
#11 7.035 npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm)

#11 7.036 npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
#11 7.036 npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
#11 7.036 npm ERR! gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
#11 7.036 npm ERR! gyp ERR! find Python For more information consult the documentation at:
#11 7.036 npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
#11 7.036 npm ERR! gyp ERR! find Python **********************************************************
#11 7.036 npm ERR! gyp ERR! find Python
#11 7.036 npm ERR! gyp ERR! configure error
#11 7.036 npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
#11 7.036 npm ERR! gyp ERR! stack at PythonFinder.fail (/nix/store/6cdccplrjwga5rd3b2s7xb8zd25hnsix-nodejs-16.17.0/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47)
...
#11 7.033 npm ERR! path /app/node_modules/erlpack
#11 7.035 npm ERR! command failed
#11 7.035 npm ERR! command sh /tmp/install-cc5b7eb4.sh
#11 7.035 npm ERR! gyp info it worked if it ends with ok
#11 7.035 npm ERR! gyp info using [email protected]
#11 7.035 npm ERR! gyp info using [email protected] | linux | x64
#11 7.035 npm ERR! gyp ERR! find Python
#11 7.035 npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration
#11 7.035 npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
#11 7.035 npm ERR! gyp ERR! find Python checking if "python3" can be used
#11 7.035 npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error
#11 7.035 npm ERR! gyp ERR! find Python checking if "python" can be used
#11 7.035 npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error
#11 7.035 npm ERR! gyp ERR! find Python
#11 7.035 npm ERR! gyp ERR! find Python **********************************************************
#11 7.035 npm ERR! gyp ERR! find Python You need to install the latest version of Python.
#11 7.035 npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
#11 7.035 npm ERR! gyp ERR! find Python you can try one of the following options:
#11 7.035 npm ERR! gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
#11 7.035 npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm)

#11 7.036 npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
#11 7.036 npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
#11 7.036 npm ERR! gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
#11 7.036 npm ERR! gyp ERR! find Python For more information consult the documentation at:
#11 7.036 npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
#11 7.036 npm ERR! gyp ERR! find Python **********************************************************
#11 7.036 npm ERR! gyp ERR! find Python
#11 7.036 npm ERR! gyp ERR! configure error
#11 7.036 npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
#11 7.036 npm ERR! gyp ERR! stack at PythonFinder.fail (/nix/store/6cdccplrjwga5rd3b2s7xb8zd25hnsix-nodejs-16.17.0/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47)
...
any ideas?
13 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
will
willOP3y ago
thank you! however now I'm getting the below error:
will
willOP3y ago
I assume there must be some issue with zlib-sync
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
will
willOP3y ago
nope same thing :/ I guess I'll try it as a dev dependency even as a dev dependency doesn't seem to work–
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
will
willOP3y ago
overriding python39 or something else? and i greatly appreciate your help :)
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
will
willOP3y ago
yep it did fail, how do I have multiple? ah with spaces, and nope, same error from before ^^^
nebula
nebula3y ago
@eejit what's your NIXPACKS_PKGS var set to rn
will
willOP3y ago
checking... python39 nodePackages.node-gyp-build
nebula
nebula3y ago
okay, try removing nodePackages.node-gyp-build and instead adding gcc
will
willOP3y ago
you are a genius! it worked!! thank you so much!!! This has been annoying me for days!! tysm again :DD
Want results from more Discord servers?
Add your server