a year ago
I am unable to push updates to my django app. I think this is due to a change of python version on my development machine. This caused some errors when running in development which I fixed by installing some dependencies via pip. I have also updated my runtime.txt to the current python version on my dev machine: 3.12.6. However the build process is still failing.
[stage-0 6/8] RUN --mount=type=cache,id=s/3e2af7df-0ec1-41c0-9602-9b67043f1d66-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt
"python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt" did not complete successfully: exit code: 1
Getting requirements to build wheel: finished with status 'error'.
9 Replies
a year ago
hello, can you try to switch to railpack in the service settings
Hi. Sorry for the slow response. I've been involved with other things for a few days. I'm on Windows so not sure I can use Railpack.
a year ago
Hey, this is related to the builder that Railway uses to build your Python service. You should be able to switch the builder from Nixpacks to Railpack under your service's settings.
Thanks. Could you tell me how to do this. I can't see anything in settings relating to Nixpacks.
process "pip install -r requirements.txt" did not complete successfully: exit code: 1
a year ago
Please show the full build logs containing the actual error
a year ago
It looks like that this is an issue with PyYAML https://github.com/yaml/pyyaml/issues/724. You may try out the suggested workarounds such as using a different version of PyYAML to circumvent this issue.