pyroms_toolbox error

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
jlopez
Posts: 3
Joined: Tue Feb 11, 2014 2:54 am
Location: Freelance

pyroms_toolbox error

#1 Post by jlopez » Wed Mar 25, 2015 11:47 am

Hi,
I'm trying to install pyroms (downloaded from https://github.com/kshedstrom/pyroms) in my laptop. My OS is Ubuntu 14.04, and my fortran compiler gfortran.
I have follow the instructions on the README file, but changing the fortran compiler.
After installing some necessary modules, now if I try to run an example (examples/Yellow_Sea) I obtain the following:

Code: Select all

scrip.so not found. Remapping function will not be available
Traceback (most recent call last):
  File "make_YELLOW_grd_v1.py", line 11, in <module>
    import pyroms_toolbox
  File "/usr/local/lib/python2.7/dist-packages/pyroms_toolbox/__init__.py", line 64, in <module>
    import Grid_HYCOM
  File "/usr/local/lib/python2.7/dist-packages/pyroms_toolbox/Grid_HYCOM/__init__.py", line 9, in <module>
    from flood_fast import flood_fast
  File "/usr/local/lib/python2.7/dist-packages/pyroms_toolbox/Grid_HYCOM/flood_fast.py", line 9, in <module>
    import creep
ImportError: No module named creep
I detect two errors:
1.- The "scrip.so" file is not found. Anyone has any hint to solve this problem?? I have check the forum, and I have found this viewtopic.php?f=14&t=3199#p12216 but it doesn't help me much.
2.- The "creep" python module is not found. Again, anyone can help me to solve this issue??

Thank you in advance,

Jaime

jlopez
Posts: 3
Joined: Tue Feb 11, 2014 2:54 am
Location: Freelance

Re: pyroms_toolbox error

#2 Post by jlopez » Wed Mar 25, 2015 2:35 pm

I have found the error for "scrip.so".
I have try to compile the scrip source with its makefile, and I have a problem with netcdf libraries.

Code: Select all

gfortran -g -fdefault-real-8 -ffixed-form -O2 -fPIC -I/usr/local/include -c ./kinds_mod.f
gfortran -g -fdefault-real-8 -ffixed-form -O2 -fPIC -I/usr/local/include -c ./constants.f
gfortran -g -fdefault-real-8 -ffixed-form -O2 -fPIC -I/usr/local/include -c ./iounits.f
gfortran -g -fdefault-real-8 -ffixed-form -O2 -fPIC -I/usr/local/include -c ./netcdf.f
gfortran -g -fdefault-real-8 -ffixed-form -O2 -fPIC -I/usr/local/include -c ./grids.f
gfortran -g -fdefault-real-8 -ffixed-form -O2 -fPIC -I/usr/local/include -c ./remap_vars.f
gfortran -g -fdefault-real-8 -ffixed-form -O2 -fPIC -I/usr/local/include -c ./remap_distwgt.f
gfortran -g -fdefault-real-8 -ffixed-form -O2 -fPIC -I/usr/local/include -c ./timers.f
gfortran -g -fdefault-real-8 -ffixed-form -O2 -fPIC -I/usr/local/include -c ./remap_conserv.f
gfortran -g -fdefault-real-8 -ffixed-form -O2 -fPIC -I/usr/local/include -c ./remap_bilinear.f
gfortran -g -fdefault-real-8 -ffixed-form -O2 -fPIC -I/usr/local/include -c ./remap_bicubic.f
gfortran -g -fdefault-real-8 -ffixed-form -O2 -fPIC -I/usr/local/include -c ./remap_write.f
gfortran -g -fdefault-real-8 -ffixed-form -O2 -fPIC -I/usr/local/include -c ./scrip.f
gfortran -g -fdefault-real-8 -ffixed-form -O2 -fPIC kinds_mod.o constants.o iounits.o netcdf.o grids.o remap_vars.o remap_distwgt.o remap_conserv.o remap_bilinear.o remap_bicubic.o timers.o remap_write.o scrip.o  -I/usr/local/include -o ./scrip
netcdf.o: En la función `__netcdf_mod_MOD_netcdf_error_handler':
/home/jaime/ROMSsvn/New_pyroms/pyroms-master/pyroms/external/scrip/source/./netcdf.f:67: referencia a `nf_strerror_' sin definir
grids.o: En la función `__grids_MOD_grid_init':
/home/jaime/ROMSsvn/New_pyroms/pyroms-master/pyroms/external/scrip/source/./grids.f:213: referencia a `nf_open_' sin definir
/home/jaime/ROMSsvn/New_pyroms/pyroms-master/pyroms/external/scrip/source/./grids.f:216: referencia a `nf_open_' sin definir
I will try to recompile them to solve this issue.

Any advice for the second problem (creep module)??

User avatar
kate
Posts: 3678
Joined: Wed Jul 02, 2003 5:29 pm
Location: IMS/UAF, USA

Re: pyroms_toolbox error

#3 Post by kate » Wed Mar 25, 2015 4:33 pm

Sorry about that. Raphael gave me the attached files. I guess I included the python script without bothering to put creep into the install procedure.

ETA: Actually, the files are in pyroms_toolbox/pyroms_toolbox/Grid_HYCOM/. You need to go there and type "make", then put creep.so in your PYTHONPATH.
Attachments
creep.tar
(20 KiB) Downloaded 146 times

jlopez
Posts: 3
Joined: Tue Feb 11, 2014 2:54 am
Location: Freelance

Re: pyroms_toolbox error

#4 Post by jlopez » Thu Mar 26, 2015 2:52 pm

Thank you Kate, that works. Now I have another problems but I expect to solve them soon, otherwise I would ask you again.

Thanks again!!

Jaime

caioerick
Posts: 2
Joined: Wed Oct 31, 2018 4:10 pm
Location: LABOMAR, Federal University of Ceará, Brazil

Re: pyroms_toolbox error

#5 Post by caioerick » Tue Aug 13, 2019 11:55 pm

I have the same problem.

Code: Select all

>>> import pyroms
scrip.so not found. Remapping function will not be available
And I try import lpsolve55, but has a problem that I can't solve with conda install -c conda-forge (as suggested in viewtopic.php?f=14&t=4954&hilit=scrip.so.

Code: Select all

>>> import lpsolve55
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dynamic module does not define module export function (PyInit_lpsolve55)
Does anyone have a similar problem?

Thanks,

Post Reply