chocobo
chocobo
RRailway
Created by chocobo on 8/8/2024 in #✋|help
python not found
Hello! I'm trying my hand at nixpacks.toml for the first time. During the install step, it tells me:
=> ERROR [stage-0 6/14] RUN --mount=type=cache,id=kfWxs0zicKI-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt 0.1s
------
> [stage-0 6/14] RUN --mount=type=cache,id=kfWxs0zicKI-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt:
0.067 /bin/bash: line 1: python: command not found
=> ERROR [stage-0 6/14] RUN --mount=type=cache,id=kfWxs0zicKI-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt 0.1s
------
> [stage-0 6/14] RUN --mount=type=cache,id=kfWxs0zicKI-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt:
0.067 /bin/bash: line 1: python: command not found
I don't know much about nixpacks, but I'm assuming this is because I'm running on my Mac, which uses python3 and pip3 by default? This is coming from the tool-supplied install step:
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
This is a loom of what I'm seeing: https://www.loom.com/share/038294004aaa48dc9c0fe8a90c851336
17 replies