From fb6bd60e3e1663606e6e0ad4420dd598a4078f0f Mon Sep 17 00:00:00 2001 From: Nathan Olson Date: Mon, 15 Sep 2025 11:36:44 -0700 Subject: [PATCH] fix GDAL/Numpy conflict by installing GDAL Python package from pip instead of apt --- configure.sh | 2 +- requirements.txt | 2 ++ snap/snapcraft24.yaml | 2 -- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.sh b/configure.sh index c11cc44a..6376c37d 100755 --- a/configure.sh +++ b/configure.sh @@ -134,7 +134,7 @@ installreqs() { # edt requires numpy to build venv/bin/pip install numpy==2.3.2 - venv/bin/pip install -r requirements.txt + venv/bin/pip install -r requirements.txt --ignore-installed #if [ ! -z "$GPU_INSTALL" ]; then #fi set +e diff --git a/requirements.txt b/requirements.txt index 4a2af857..54775b19 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,6 +19,8 @@ PyYAML==6.0.2 rasterio==1.4.3 ; sys_platform == 'linux' rasterio==1.4.3 ; sys_platform == 'darwin' https://github.com/OpenDroneMap/windows-deps/releases/download/2.6.0/rasterio-1.4.3-cp312-cp312-win_amd64.whl ; sys_platform == 'win32' +gdal[numpy]==3.8.4 ; sys_platform == 'linux' +gdal[numpy]==3.8.4 ; sys_platform == 'darwin' https://github.com/OpenDroneMap/windows-deps/releases/download/2.6.0/gdal-3.11.1-cp312-cp312-win_amd64.whl ; sys_platform == 'win32' repoze.lru==0.7 scikit-learn==1.7.1 diff --git a/snap/snapcraft24.yaml b/snap/snapcraft24.yaml index 9696cfd2..6e3f4d6b 100644 --- a/snap/snapcraft24.yaml +++ b/snap/snapcraft24.yaml @@ -46,7 +46,6 @@ parts: - pkg-config - pybind11-dev - python3-dev - - python3-gdal - python3-pip - python3-setuptools - python3-wheel @@ -63,7 +62,6 @@ parts: - proj-data - procps - python3 - - python3-gdal - python3-pkg-resources # required base package for core20 - python3-requests # required base package for core20 - python3-setuptools