From d80c3ccbb75ff573244cedfb1289edf87e0a9be1 Mon Sep 17 00:00:00 2001 From: Murilo Marinho Date: Fri, 23 Oct 2026 16:35:47 +0100 Subject: [PATCH] docker/install.sh: install a scipy built for numpy 2 On the sas images, the pip numpy 2 that dqrobotics brings breaks the apt scipy ("numpy.core.multiarray failed to import"), so sas_datalogger_node.py cannot import scipy.io and neither starts nor saves. Install a scipy built for numpy 2 over the apt one. Co-Authored-By: Claude Opus 5.5 --- docker/install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/install.sh b/docker/install.sh index d482cd6..1d8d645 100644 --- a/docker/install.sh +++ b/docker/install.sh @@ -3,5 +3,9 @@ set -e sudo apt-get update && sudo apt-get upgrade -y sudo apt-get install -y libxcb-cursor-dev python3 -m pip install PyQt6 pyqtgraph --break-system-packages +# The apt scipy is built for numpy 1, so it fails to import ("numpy.core.multiarray failed to import") +# under the pip numpy 2 that dqrobotics brings; sas_datalogger saves with scipy.io. Install a scipy +# built for numpy 2 over it (pip cannot uninstall Debian's, and numpy is already there). +python3 -m pip install "scipy>=1.14" --ignore-installed --no-deps --break-system-packages # https://github.com/bhowiebkr/laser-level-webcam/issues/28 python3 -m pip install pyqtdarktheme==2.1.0 --ignore-requires-python --break-system-packages