Gibbs Sea Water module missing?

Hi folks,

Since the migration the GSW module seems to have gone missing, and import gsw now throws a ModuleNotFoundError

!pip install gsw also produces new and exciting error codes:

  gcc -pthread -B /srv/conda/envs/notebook/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/srv/conda/envs/notebook/lib/python3.7/site-packages/numpy/core/include -I/tmp/pip-install-gki2sp6x/gsw/src/c_gsw -I/srv/conda/envs/notebook/include/python3.7m -c src/_ufuncs.c -o build/temp.linux-x86_64-3.7/src/_ufuncs.o

unable to execute ‘gcc’: No such file or directory
error: command ‘gcc’ failed with exit status 1

ERROR: Failed building wheel for gsw

Any ideas where our teos10 goodness has gone?

1 Like

Thanks for reporting this. It should be there! It is in the environment file:

We will look into it.

Until we get this resolved, you could try fastjmd95:

The CSIRO seawater library (!pip install seawater) also works for those who are encountering similar issues. Not TEOS10 but for model data it hardly matters and does give you access to more functions than just insitu density. Cheers for working on GSW!

You can also install gsw with conda no problem

conda install -c conda-forge gsw