I've been trying to install pyroms on Mac OS10.13.6. I'm running Python 3.7.
Whatever strategy I'm using to install pyroms, it's not working. I tried pip install, or running python setup.py build, python setup-.py install. I've got all the required packages except for SCRIP, but I think that shouldn't be required for running pyroms.grid. I can use pyroms_toolbox and bathy_smoother succesfully though. Also importing pyroms doesn't give me errors. I've tried pretty much all hints on other forum posts about the following issue with pyroms.grid that I'm getting:
I've manually tried to install and copy libgridgen.so to my python path '/opt/anaconda3/lib/python3.7/site-packages/pyroms', but this isn't working. I'm confused about what's going wrong here. Is there someone willing to help me and/or provide me with a foolproof explanation of how to install this package? Thanks.hgrd = pyroms.grid.Gridgen(lonp, latp, beta, (Mm+3, Lm+3), proj=map)
File "/opt/anaconda3/lib/python3.7/site-packages/pyroms/hgrid.py", line 1046, in __init__
self._libgridgen = np.ctypeslib.load_library('libgridgen', pyroms.__path__[0])
File "/opt/anaconda3/lib/python3.7/site-packages/numpy/ctypeslib.py", line 157, in load_library
raise OSError("no file with expected extension")
OSError: no file with expected extension
Exception ignored in: <function Gridgen.__del__ at 0x10e6dbae8>
Traceback (most recent call last):
File "/opt/anaconda3/lib/python3.7/site-packages/pyroms/hgrid.py", line 1163, in __del__
self._libgridgen.gridnodes_destroy(self._gn)
AttributeError: 'Gridgen' object has no attribute '_libgridgen'