OpenDrift / opendrift

Open source framework for ocean trajectory modelling
https://opendrift.github.io
GNU General Public License v2.0
249 stars 120 forks source link

Problems while installing opendrift via PyPi (v1.11.2) #1275

Open RicardoRibeiroRodrigues opened 7 months ago

RicardoRibeiroRodrigues commented 7 months ago

On 22.04.1-Ubuntu and Python 3.10.12.

While executing "pip install opendrift" got the error:

gdal_config_error: [Errno 2] No such file or directory: 'gdal-config'
Could not find gdal-config. Make sure you have installed the GDAL native library and development headers.

Ran the command "sudo apt-get install libgdal-dev" to install the gdal-binary and dev packages

Tried to run "pip install opendrift" again, got the error:

Exception: Python bindings of GDAL 3.8.5 require at least libgdal 3.8.5, but 3.4.1 was found

It seems that the bindings used cannot be downloaded via ubuntu apt, as it uses a latest GDAL version. We had planned to add opendrift as a dependency in a library that we are developing.

On our machine we were able to fix the problem locking GDAL version to 3.4.1.

Segato-Iago commented 6 months ago

I'm having the same issue. Do you have any solutions? @gauteh @knutfrode