[GH-ISSUE #26] "make ava-run" command fails with error - Error 17 #2

Closed
opened 2026-03-03 16:41:13 +03:00 by kerem · 0 comments
Owner

Originally created by @sachins-eng on GitHub (Mar 29, 2025).
Original GitHub issue: https://github.com/neural-maze/ava-whatsapp-agent-course/issues/26

I have uv version - v0.6.10

When I run command "make ava-run" it fails during docker build. It fails for command - "RUN uv sync --frozen --no-cache"

Here is the complete stacktrace of the error -

`
docker compose up --build -d
[+] Building 4.3s (14/22) docker:desktop-linux
=> [whatsapp internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.13kB 0.0s
=> [chainlit internal] load build definition from Dockerfile.chainlit 0.0s
=> => transferring dockerfile: 1.08kB 0.0s
=> [chainlit internal] load metadata for ghcr.io/astral-sh/uv:python3.12-bookworm-slim 0.6s
=> [whatsapp internal] load metadata for ghcr.io/astral-sh/uv:python3.11-bookworm-slim 1.9s
=> [chainlit internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [chainlit 1/7] FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim@sha256:3047e2e59474aac735b9207b784a106f7e6a7e194b96c44ce5330106d9bffa 0.0s
=> [chainlit internal] load build context 0.0s
=> => transferring context: 2.55kB 0.0s
=> CACHED [chainlit 2/7] WORKDIR /app 0.0s
=> CACHED [chainlit 3/7] RUN apt-get update && apt-get install -y build-essential g++ && rm -rf /var/lib/apt/lists/* 0.0s
=> CACHED [chainlit 4/7] COPY uv.lock pyproject.toml /app/ 0.0s
=> ERROR [chainlit 5/7] RUN uv sync --frozen --no-cache 3.6s
=> [whatsapp internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> CANCELED [whatsapp 1/7] FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim@sha256:da4886148c187ca2f43b7db499bce3e3e4e78f1d13a7f31ec1c89 2.4s
=> => resolve ghcr.io/astral-sh/uv:python3.11-bookworm-slim@sha256:da4886148c187ca2f43b7db499bce3e3e4e78f1d13a7f31ec1c89784c2421c80 0.0s
=> => sha256:ea0a9288848aff54a32cdbb0434e912367eb72682e2af979cea18e0b02cc3bda 6.29MB / 15.71MB 2.4s
=> => sha256:da4886148c187ca2f43b7db499bce3e3e4e78f1d13a7f31ec1c89784c2421c80 2.22kB / 2.22kB 0.0s
=> => sha256:fb0fd7dc21d1e9a28873cafc644c514cca20c51422398e7434a545294bdfd024 1.25kB / 1.25kB 0.0s
=> => sha256:c785081cdb49abd914bc3731f734fef616d98744bed5c3737711605495312dc6 6.36kB / 6.36kB 0.0s
=> [whatsapp internal] load build context 0.0s
=> => transferring context: 2.55kB 0.0s

[chainlit 5/7] RUN uv sync --frozen --no-cache:
0.234 Using CPython 3.12.9 interpreter at: /usr/local/bin/python3
0.234 Creating virtual environment at: .venv
0.369 Building ai-companion @ file:///app
0.526 Downloading sympy (5.9MiB)
0.526 Downloading networkx (1.6MiB)
0.659 Downloading pydantic-core (1.7MiB)
0.659 Downloading grpcio-tools (2.2MiB)
0.659 Downloading virtualenv (4.1MiB)
0.659 Downloading setuptools (1.2MiB)
0.659 Downloading aiohttp (1.6MiB)
0.660 Downloading duckdb (17.4MiB)
0.660 Downloading pygments (1.1MiB)
0.660 Downloading chainlit (4.1MiB)
0.660 Downloading langchain-community (2.4MiB)
0.660 Downloading watchfiles (1.2MiB)
0.663 Downloading tiktoken (1.1MiB)
0.663 Downloading torch (87.6MiB)
0.663 Downloading scikit-learn (11.7MiB)
0.663 Downloading scipy (36.3MiB)
0.663 Downloading pyarrow (36.8MiB)
0.664 Downloading sqlalchemy (3.1MiB)
0.666 Downloading transformers (9.2MiB)
0.666 Downloading tokenizers (2.8MiB)
0.666 Downloading pillow (4.2MiB)
0.672 Downloading uvloop (4.4MiB)
0.679 Downloading grpcio (5.4MiB)
0.679 Downloading numpy (13.3MiB)
3.535 × Failed to build ai-companion @ file:///app
3.535 ├─▶ The build backend returned an error
3.535 ╰─▶ Call to hatchling.build.build_editable failed (exit status: 1)
3.535
3.535 [stderr]
3.535 Traceback (most recent call last):
3.535 File "", line 11, in
3.535 File
3.535 "/tmp/.tmp8IK23d/builds-v0/.tmpdJ0kaq/lib/python3.12/site-packages/hatchling/build.py",
3.535 line 83, in build_editable
3.535 return os.path.basename(next(builder.build(directory=wheel_directory,
3.535 versions=['editable'])))
3.535
3.535 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3.535 File
3.535 "/tmp/.tmp8IK23d/builds-v0/.tmpdJ0kaq/lib/python3.12/site-packages/hatchling/builders/plugin/interface.py",
3.535 line 90, in build
3.535 self.metadata.validate_fields()
3.535 File
3.535 "/tmp/.tmp8IK23d/builds-v0/.tmpdJ0kaq/lib/python3.12/site-packages/hatchling/metadata/core.py",
3.535 line 266, in validate_fields
3.535 self.core.validate_fields()
3.535 File
3.535 "/tmp/.tmp8IK23d/builds-v0/.tmpdJ0kaq/lib/python3.12/site-packages/hatchling/metadata/core.py",
3.535 line 1366, in validate_fields
3.535 getattr(self, attribute)
3.535 File
3.535 "/tmp/.tmp8IK23d/builds-v0/.tmpdJ0kaq/lib/python3.12/site-packages/hatchling/metadata/core.py",
3.535 line 531, in readme
3.535 raise OSError(message)
3.535 OSError: Readme file does not exist: README.md
3.535
3.535 hint: This usually indicates a problem with the package or the build
3.535 environment.


failed to solve: process "/bin/sh -c uv sync --frozen --no-cache" did not complete successfully: exit code: 1
make: *** [ava-run] Error 17
`

Originally created by @sachins-eng on GitHub (Mar 29, 2025). Original GitHub issue: https://github.com/neural-maze/ava-whatsapp-agent-course/issues/26 I have uv version - v0.6.10 When I run command "make ava-run" it fails during docker build. It fails for command - "RUN uv sync --frozen --no-cache" Here is the complete stacktrace of the error - ` docker compose up --build -d [+] Building 4.3s (14/22) docker:desktop-linux => [whatsapp internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 1.13kB 0.0s => [chainlit internal] load build definition from Dockerfile.chainlit 0.0s => => transferring dockerfile: 1.08kB 0.0s => [chainlit internal] load metadata for ghcr.io/astral-sh/uv:python3.12-bookworm-slim 0.6s => [whatsapp internal] load metadata for ghcr.io/astral-sh/uv:python3.11-bookworm-slim 1.9s => [chainlit internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [chainlit 1/7] FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim@sha256:3047e2e59474aac735b9207b784a106f7e6a7e194b96c44ce5330106d9bffa 0.0s => [chainlit internal] load build context 0.0s => => transferring context: 2.55kB 0.0s => CACHED [chainlit 2/7] WORKDIR /app 0.0s => CACHED [chainlit 3/7] RUN apt-get update && apt-get install -y build-essential g++ && rm -rf /var/lib/apt/lists/* 0.0s => CACHED [chainlit 4/7] COPY uv.lock pyproject.toml /app/ 0.0s => ERROR [chainlit 5/7] RUN uv sync --frozen --no-cache 3.6s => [whatsapp internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => CANCELED [whatsapp 1/7] FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim@sha256:da4886148c187ca2f43b7db499bce3e3e4e78f1d13a7f31ec1c89 2.4s => => resolve ghcr.io/astral-sh/uv:python3.11-bookworm-slim@sha256:da4886148c187ca2f43b7db499bce3e3e4e78f1d13a7f31ec1c89784c2421c80 0.0s => => sha256:ea0a9288848aff54a32cdbb0434e912367eb72682e2af979cea18e0b02cc3bda 6.29MB / 15.71MB 2.4s => => sha256:da4886148c187ca2f43b7db499bce3e3e4e78f1d13a7f31ec1c89784c2421c80 2.22kB / 2.22kB 0.0s => => sha256:fb0fd7dc21d1e9a28873cafc644c514cca20c51422398e7434a545294bdfd024 1.25kB / 1.25kB 0.0s => => sha256:c785081cdb49abd914bc3731f734fef616d98744bed5c3737711605495312dc6 6.36kB / 6.36kB 0.0s => [whatsapp internal] load build context 0.0s => => transferring context: 2.55kB 0.0s ------ > [chainlit 5/7] RUN uv sync --frozen --no-cache: 0.234 Using CPython 3.12.9 interpreter at: /usr/local/bin/python3 0.234 Creating virtual environment at: .venv 0.369 Building ai-companion @ file:///app 0.526 Downloading sympy (5.9MiB) 0.526 Downloading networkx (1.6MiB) 0.659 Downloading pydantic-core (1.7MiB) 0.659 Downloading grpcio-tools (2.2MiB) 0.659 Downloading virtualenv (4.1MiB) 0.659 Downloading setuptools (1.2MiB) 0.659 Downloading aiohttp (1.6MiB) 0.660 Downloading duckdb (17.4MiB) 0.660 Downloading pygments (1.1MiB) 0.660 Downloading chainlit (4.1MiB) 0.660 Downloading langchain-community (2.4MiB) 0.660 Downloading watchfiles (1.2MiB) 0.663 Downloading tiktoken (1.1MiB) 0.663 Downloading torch (87.6MiB) 0.663 Downloading scikit-learn (11.7MiB) 0.663 Downloading scipy (36.3MiB) 0.663 Downloading pyarrow (36.8MiB) 0.664 Downloading sqlalchemy (3.1MiB) 0.666 Downloading transformers (9.2MiB) 0.666 Downloading tokenizers (2.8MiB) 0.666 Downloading pillow (4.2MiB) 0.672 Downloading uvloop (4.4MiB) 0.679 Downloading grpcio (5.4MiB) 0.679 Downloading numpy (13.3MiB) 3.535 × Failed to build `ai-companion @ file:///app` 3.535 ├─▶ The build backend returned an error 3.535 ╰─▶ Call to `hatchling.build.build_editable` failed (exit status: 1) 3.535 3.535 [stderr] 3.535 Traceback (most recent call last): 3.535 File "<string>", line 11, in <module> 3.535 File 3.535 "/tmp/.tmp8IK23d/builds-v0/.tmpdJ0kaq/lib/python3.12/site-packages/hatchling/build.py", 3.535 line 83, in build_editable 3.535 return os.path.basename(next(builder.build(directory=wheel_directory, 3.535 versions=['editable']))) 3.535 3.535 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3.535 File 3.535 "/tmp/.tmp8IK23d/builds-v0/.tmpdJ0kaq/lib/python3.12/site-packages/hatchling/builders/plugin/interface.py", 3.535 line 90, in build 3.535 self.metadata.validate_fields() 3.535 File 3.535 "/tmp/.tmp8IK23d/builds-v0/.tmpdJ0kaq/lib/python3.12/site-packages/hatchling/metadata/core.py", 3.535 line 266, in validate_fields 3.535 self.core.validate_fields() 3.535 File 3.535 "/tmp/.tmp8IK23d/builds-v0/.tmpdJ0kaq/lib/python3.12/site-packages/hatchling/metadata/core.py", 3.535 line 1366, in validate_fields 3.535 getattr(self, attribute) 3.535 File 3.535 "/tmp/.tmp8IK23d/builds-v0/.tmpdJ0kaq/lib/python3.12/site-packages/hatchling/metadata/core.py", 3.535 line 531, in readme 3.535 raise OSError(message) 3.535 OSError: Readme file does not exist: README.md 3.535 3.535 hint: This usually indicates a problem with the package or the build 3.535 environment. ------ failed to solve: process "/bin/sh -c uv sync --frozen --no-cache" did not complete successfully: exit code: 1 make: *** [ava-run] Error 17 `
kerem closed this issue 2026-03-03 16:41:13 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ava-whatsapp-agent-course#2
No description provided.