Ocean Modeling Discussion

ROMS/TOMS

Search for:
It is currently Sun Aug 25, 2019 2:46 am




Post new topic Reply to topic  [ 5 posts ] 

All times are UTC

Author Message
 Post subject: pyroms_toolbox error
PostPosted: Wed Mar 25, 2015 11:47 am 
Offline

Joined: Tue Feb 11, 2014 2:54 am
Posts: 3
Location: Freelance
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:
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 https://www.myroms.org/forum/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


Top
 Profile  
Reply with quote  
 Post subject: Re: pyroms_toolbox error
PostPosted: Wed Mar 25, 2015 2:35 pm 
Offline

Joined: Tue Feb 11, 2014 2:54 am
Posts: 3
Location: Freelance
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:
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)??


Top
 Profile  
Reply with quote  
 Post subject: Re: pyroms_toolbox error
PostPosted: Wed Mar 25, 2015 4:33 pm 
Offline
User avatar

Joined: Wed Jul 02, 2003 5:29 pm
Posts: 3646
Location: IMS/UAF, USA
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 144 times
Top
 Profile  
Reply with quote  
 Post subject: Re: pyroms_toolbox error
PostPosted: Thu Mar 26, 2015 2:52 pm 
Offline

Joined: Tue Feb 11, 2014 2:54 am
Posts: 3
Location: Freelance
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


Top
 Profile  
Reply with quote  
 Post subject: Re: pyroms_toolbox error
PostPosted: Tue Aug 13, 2019 11:55 pm 
Offline

Joined: Wed Oct 31, 2018 4:10 pm
Posts: 1
Location: LABOMAR, Federal University of Ceará, Brazil
I have the same problem.

Code:
>>> 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:
>>> 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,


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group