From 77650e8092eb02223a73b27844660c50bb7a99bb Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Fri, 22 May 2026 00:28:13 +0200 Subject: [PATCH] Use 'timefold' (not 'timefold-solver') and revert to ARM platform MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Python distribution is published on PyPI as 'timefold' — only the Java module is called 'timefold-solver'. With the correct package the ARM64 wheel resolves cleanly, so revert the linux/amd64 workaround. Co-Authored-By: Claude Opus 4.7 (1M context) --- docker-compose.yml | 5 +---- timetable-solver-service/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1c111d8..b2796b2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -302,10 +302,7 @@ services: context: ./timetable-solver-service dockerfile: Dockerfile container_name: bp-lehrer-timetable-solver - # timefold-solver only ships x86_64 wheels — emulate via Rosetta on - # the ARM Mac Mini. Cloud target (memory says cloud OK for this svc) - # would be linux/amd64 native. - platform: linux/amd64 + platform: linux/arm64 ports: - "8095:8095" environment: diff --git a/timetable-solver-service/requirements.txt b/timetable-solver-service/requirements.txt index ed767e3..8c20e25 100644 --- a/timetable-solver-service/requirements.txt +++ b/timetable-solver-service/requirements.txt @@ -3,6 +3,6 @@ uvicorn[standard]==0.32.0 asyncpg==0.30.0 pydantic==2.9.2 pydantic-settings==2.6.0 -timefold-solver==1.21.1 +timefold==1.24.0b0 httpx==0.27.2 python-multipart==0.0.12