From 528777e401b389fc927e0e2b12f09607fcf2bf48 Mon Sep 17 00:00:00 2001 From: Daniel Hollas Date: Wed, 8 Apr 2026 10:15:04 +0100 Subject: [PATCH] Pin numpy to 1.x The current bokeh version in AWB is incompatible with numpy 2.x There might also be other issues in existing apps so for now we'll pin numpy to 1.x --- stack/base/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stack/base/Dockerfile b/stack/base/Dockerfile index dc274078..2b22df8f 100644 --- a/stack/base/Dockerfile +++ b/stack/base/Dockerfile @@ -60,9 +60,12 @@ COPY pip.conf "${CONDA_DIR}/pip.conf" # Update async_generator, certipy to satisfy `pip check` # https://github.com/aiidalab/aiidalab-docker-stack/issues/490 # Install aiida-core and other shared requirements. +# We need to pin numpy to 1.x due to AWB using old bokeh version, see: +# https://github.com/aiidalab/aiidalab-widgets-base/issues/733 RUN mamba update -y pip async_generator certipy && \ mamba install --yes \ - aiida-core==${AIIDA_VERSION} \ + aiida-core=${AIIDA_VERSION} \ + numpy=1.* \ mamba-bash-completion \ traitlets=5.9.0 \ && mamba clean --all -f -y && \