Trying nixpacks with python provider, but "python" not found
vhmth
PROOP
a year ago
Hey all! I'm trying to set up a python provider nixpacks.toml file (copied at bottom for convenience/full transparency). When I do this, I get the following error:
=> 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 foundI 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.txtFull config file:
providers = ["python"]
[phases.setup]
nixPkgs = ["ollama", "geoipupdate"]
[phases.setup-ollama]
cmds = ["ollama serve", "ollama run llama3.1"]
dependsOn = ["setup"]
[phases.setup-geoipupdate]
cmds = ["build-geoip-conf.sh", "geoipupdate -f ./GeoIP.conf -d ./maxmind-dbs"]
dependsOn = ["setup"]
[start]
cmd = "python3 ./webapp/main.py"2 Replies
vhmth
PROOP
a year ago
Quick video of what I'm seeing: https://www.loom.com/share/038294004aaa48dc9c0fe8a90c851336
vhmth
PROOP
a year ago
Got this resolved by Brody in Discord. I forgot ["..."] in the nixPkgs section to spread out python3 and gcc installation 🤦🏾♂️
Status changed to Solved brody • over 1 year ago