Nixpacks NodeJS Deployment failing due to unsupported Python version

technetium-coTRIAL

a year ago

Hi, I just migrated my Postgres & Redis plugins to v2 as requested & tried to redeploy my service (a841e3a3-3230-49dd-a6f3-572bc8a5fc94).

It looks like it is failing due to unsupported Python version. I tried setting NIXPACKS_PYTHON_VERSION to 3.10 which is supported but didn't help. I'm using Node 14 if it helps.

Error:
Node.js configure: Found Python 3.11.5…
Please use python3.10 or python3.9 or python3.8 or python3.7 or python3.6 or python3.5 or python2.7.
error: builder for '/nix/store/hh8n2lf9hxvjrp2rgp6542acrcyg153i-nodejs-14.21.3.drv' failed with exit code 1

Solved

6 Replies

technetium-coTRIAL

a year ago

found a similar issue which seems to be resolved by downgrading nixpacksVersion to "1.17.0", trying that.

https://community.railway.app/discuss/thread/deployment-failure-due-to-python-version-c2ea27b3#p-7


technetium-coTRIAL

a year ago

This seems to have solved the build issue but deployment failed with Build timed out error, checking how can we fix that.


a year ago

Any update on this, I'm facing the same issue. I'm using node 14 and I can't upgrade to a higher version now, any workaround available?
I already tried to downgrade nixpacksVersion but it didn't work.


vitorregisrrHOBBY

a year ago

@mostafa-de, maybe the way you are setting nixpack is wrong.


vitorregisrrHOBBY

a year ago

Any update on this, I'm facing the same issue. I'm using node 14 and I can't upgrade to a higher version now, any workaround available?
I already tried to downgrade nixpacksVersion but it didn't work.

See my last comment on https://community.railway.app/questions/deployment-failure-due-to-python-version-c2ea27b3#p-9


a year ago

node 14 is indeed not supported, for continued support you would need to provide your own Dockerfile


Status changed to Solved railway[bot] over 1 year ago