R
Railwayβ€’4mo ago
chocobo

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
10 Replies
Percy
Percyβ€’4mo ago
Project ID: 6169d578-d99c-4cb2-8cae-61bbd5c416df
chocobo
chocoboOPβ€’4mo ago
6169d578-d99c-4cb2-8cae-61bbd5c416df
Brody
Brodyβ€’4mo ago
share your nixpacks.toml file please
chocobo
chocoboOPβ€’4mo ago
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"
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"
Brody
Brodyβ€’4mo ago
try this -
providers = ["python"]

[phases.setup]
nixPkgs = ["...", "ollama", "geoipupdate"]

[phases.setup-ollama]
dependsOn = ["setup"]
cmds = ["ollama serve", "ollama run llama3.1"]

[phases.setup-geoipupdate]
dependsOn = ["setup"]
cmds = ["build-geoip-conf.sh", "geoipupdate -f ./GeoIP.conf -d ./maxmind-dbs"]

[start]
cmd = "python3 ./webapp/main.py"
providers = ["python"]

[phases.setup]
nixPkgs = ["...", "ollama", "geoipupdate"]

[phases.setup-ollama]
dependsOn = ["setup"]
cmds = ["ollama serve", "ollama run llama3.1"]

[phases.setup-geoipupdate]
dependsOn = ["setup"]
cmds = ["build-geoip-conf.sh", "geoipupdate -f ./GeoIP.conf -d ./maxmind-dbs"]

[start]
cmd = "python3 ./webapp/main.py"
chocobo
chocoboOPβ€’4mo ago
πŸ€¦πŸΎβ€β™‚οΈ I am so dumb checking now Yep that did it THANK YOU BRODY
chocobo
chocoboOPβ€’4mo ago
πŸ™πŸΎ
Brody
Brodyβ€’4mo ago
no problem
chocobo
chocoboOPβ€’4mo ago
Yeah I even read that section and totally blanked on this Thank you
Want results from more Discord servers?
Add your server