a year ago
I'm deploying a FastAPI app and I can seem to build it. I'm using the standard railway.json file with nixpacks.
Error:
[stage-0 7/11] COPY . /app/.
[stage-0 7/11] COPY . /app/. ✔ 142ms
[stage-0 8/11] RUN --mount=type=cache,id=s/0e4483d4-4f09-4b1f-ac74-1f8981470546-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt
Error: [Errno 26] Text file busy: '/opt/venv/bin/python'
✕ [stage-0 8/11] RUN --mount=type=cache,id=s/0e4483d4-4f09-4b1f-ac74-1f8981470546-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt
process "/bin/bash -ol pipefail -c python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt" did not complete successfully: exit code: 1
ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
a year ago
Hello,
Please make sure you do not have two python providers selected in the providers menu, the menu can be found within your service settings.