From 9f1ecc693d8bded8cb522102f293d6d1980d2476 Mon Sep 17 00:00:00 2001 From: hrodmn Date: Wed, 11 Jun 2025 09:26:00 -0500 Subject: [PATCH 1/2] fix: pin to numpy>=2.2.6,<2.3.0 and numexpr>=2.10.0<2.10.1 avoids numpy/numexpr build issues on Python 3.11 Lambda runtime --- lib/titiler-pgstac-api/runtime/requirements.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/titiler-pgstac-api/runtime/requirements.txt b/lib/titiler-pgstac-api/runtime/requirements.txt index 9ae9c3c..a6ff106 100644 --- a/lib/titiler-pgstac-api/runtime/requirements.txt +++ b/lib/titiler-pgstac-api/runtime/requirements.txt @@ -1,2 +1,4 @@ titiler.pgstac>=1.7,<1.8 +numpy>=2.2.6,<2.3.0 +numexpr>=2.10.0,<2.10.1 psycopg[binary, pool] From f999d362bbcf6376f55aba988a2876763ec6cecf Mon Sep 17 00:00:00 2001 From: hrodmn Date: Wed, 11 Jun 2025 10:04:15 -0500 Subject: [PATCH 2/2] pin numpy in stactools-item-generator image, too --- lib/stactools-item-generator/runtime/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stactools-item-generator/runtime/Dockerfile b/lib/stactools-item-generator/runtime/Dockerfile index 505b45a..bbfb7af 100644 --- a/lib/stactools-item-generator/runtime/Dockerfile +++ b/lib/stactools-item-generator/runtime/Dockerfile @@ -15,6 +15,6 @@ COPY stactools-item-generator/runtime/src/stactools_item_generator/ ${LAMBDA_TAS RUN uv export --no-dev --no-editable -o requirements.txt && \ uv pip install --target ${LAMBDA_TASK_ROOT} -r requirements.txt && \ - uv tool install --with requests stactools; + uv tool install --with "numpy<2.3.0",requests stactools; CMD ["stactools_item_generator.handler.handler"]