From 7c3e726376ab85cde9b16ec550f121ee6fc349dd Mon Sep 17 00:00:00 2001 From: Markus Metz Date: Wed, 15 Jan 2025 16:21:20 +0100 Subject: [PATCH 1/2] scikit learn fix --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6061d94..33224ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,8 @@ ENV PROJ_NETWORK=ON ENV GRASS_ADDON_BASE=/usr/local/grass84 # install external dependencies -RUN pip3 install py7zr tqdm requests psutil scikit-learn pyproj pandas +# do not use scikit-learn >=1.6 because it introduced breaking changes incompatible with r.learn.ml2 +RUN pip3 install py7zr tqdm requests psutil scikit-learn==1.5.2 pyproj pandas # install official addons RUN grass --tmp-location EPSG:4326 --exec g.extension r.mapcalc.tiled -s From a434c474528d05cc9cb02ff8b138e7da7f178a1d Mon Sep 17 00:00:00 2001 From: Markus Metz Date: Wed, 15 Jan 2025 16:52:14 +0100 Subject: [PATCH 2/2] quote-protect fixed version --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 33224ce..51ae266 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,7 @@ ENV GRASS_ADDON_BASE=/usr/local/grass84 # install external dependencies # do not use scikit-learn >=1.6 because it introduced breaking changes incompatible with r.learn.ml2 -RUN pip3 install py7zr tqdm requests psutil scikit-learn==1.5.2 pyproj pandas +RUN pip3 install py7zr tqdm requests psutil "scikit-learn==1.5.2" pyproj pandas # install official addons RUN grass --tmp-location EPSG:4326 --exec g.extension r.mapcalc.tiled -s