i have a problem to redeploy and i recived this message
haikal
HOBBYOP

8 months ago

i have a problem to redeploy

Attachments

$10 Bounty

4 Replies

8 months ago

Hey,
Can you share the full error please ?


mateodemuynck

Hey,Can you share the full error please ?

haikal
HOBBYOP

8 months ago

[stage-0 6/8] RUN --mount=type=cache,id=s/f24e7877-bcaf-4d25-84e0-a5a5b32f1cab-/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

attachment file error

Attachments


8 months ago

What are you trying to deploy ? Are you using a Dockerfile ?


haikal

[stage-0 6/8] RUN --mount=type=cache,id=s/f24e7877-bcaf-4d25-84e0-a5a5b32f1cab-/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: 1attachment file error

smolpaw
HOBBY

8 months ago

The likely issue here is that Pillow requires zlib as seen in logs
The headers or library files could not be found for zlib

If this is a Dockefile deployment then you need to install zlib1g-dev and libjpeg-dev before you run the pip install

if this is a nixpacks deployment, then you need to create a nixpacks.toml file at the root of your project and add these in it

[phases.setup]

nixPkgs = ["zlib", "libjpeg"]


Loading...