opendrift icon indicating copy to clipboard operation
opendrift copied to clipboard

Problems while installing opendrift via PyPi (v1.11.2)

Open RicardoRibeiroRodrigues opened this issue 1 year ago • 2 comments

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.

RicardoRibeiroRodrigues avatar Apr 12 '24 16:04 RicardoRibeiroRodrigues

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

Segato-Iago avatar Apr 24 '24 20:04 Segato-Iago