Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: failed to solve: process "/bin/sh -c uv sync --frozen --no-install-project --no-dev" did not complete successfully: exit code: 1 #37

Open
trananhtung opened this issue Dec 28, 2024 · 2 comments
Labels
question Further information is requested

Comments

@trananhtung
Copy link

=> ERROR [stage-0 3/5] RUN --mount=type=cache,target=/root/.cache/uv 21.5s

[stage-0 3/5] RUN --mount=type=cache,target=/root/.cache/uv --mount=type=bind,source=uv.lock,target=uv.lock --mount=type=bind,source=pyproject.toml,target=pyproject.toml uv sync --frozen --no-install-project --no-dev:
0.156 Using CPython 3.12.8 interpreter at: /usr/local/bin/python3
0.156 Creating virtual environment at: .venv
21.47 × Failed to download watchfiles==0.23.0
21.47 ├─▶ Failed to fetch:
21.47 │ https://files.pythonhosted.org/packages/03/f1/fdacfdbffb0635a7d0140ecca6ef7b5bce6566a085f76a65eb796ee54ddd/watchfiles-0.23.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
21.47 ├─▶ Could not connect, are you offline?
21.47 ├─▶ Request failed after 3 retries
21.47 ├─▶ error sending request for url
21.47 │ (https://files.pythonhosted.org/packages/03/f1/fdacfdbffb0635a7d0140ecca6ef7b5bce6566a085f76a65eb796ee54ddd/watchfiles-0.23.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl)
21.47 ├─▶ client error (Connect)
21.47 ├─▶ dns error: failed to lookup address information: Try again
21.47 ╰─▶ failed to lookup address information: Try again
21.47 help: watchfiles (v0.23.0) was included because uv-docker-example
21.47 (v0.1.0) depends on fastapi[standard] (v0.112.2) which depends on
21.47 uvicorn[standard] (v0.30.6) which depends on watchfiles


Dockerfile:14

13 | # Install the project's dependencies using the lockfile and settings
14 | >>> RUN --mount=type=cache,target=/root/.cache/uv
15 | >>> --mount=type=bind,source=uv.lock,target=uv.lock
16 | >>> --mount=type=bind,source=pyproject.toml,target=pyproject.toml
17 | >>> uv sync --frozen --no-install-project --no-dev
18 |

ERROR: failed to solve: process "/bin/sh -c uv sync --frozen --no-install-project --no-dev" did not complete successfully: exit code: 1

Can someone tell me why the problem?

@zanieb
Copy link
Member

zanieb commented Dec 28, 2024

I think the error above shows that something is wrong with your internet connection in the container?

@zanieb zanieb added the question Further information is requested label Dec 28, 2024
@trananhtung
Copy link
Author

@zanieb Do you have any suggestion for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants