[Thread Prev][Thread Next][Index]

Re: [ferret_users] error in student_t_cutoff function



I appears the conda installation on Linux is not defining LD_LIBRARY_PATH so that the libpyferret library can be found.  (At least this is the case with my miniconda-python3 installation on RHEL7.)  If you defined the environment variable LD_LIBRARY_PATH to be the directory containing the libpyferret .so library then all works fine.
So in the bash shell:
    export LD_LIBRARY_PATH=/path/to/conda/envs/FERRET/lib/python3.7/site-packages/pyferret

Karl



On Tue, Jul 23, 2019 at 3:13 PM saurabh rathore <rohitsrb2020@xxxxxxxxx> wrote:
Dear Ryo,
G'day

this is my anaconda installation and ferret installation environment:-
base                  *  /home/srathore/anaconda3
FERRET               /home/srathore/anaconda3/envs/FERRET

This is the error message that I am getting on using external function:-
**ERROR in External Function student_t_cutoff:
  Dynamic linking call dlopen() returns --
  "libpyferret.cpython-37m-x86_64-linux-gnu.so: cannot open shared object file: No such file or directory".

this is the the file in the error message which I can see after applying your suggestion. So it seems it is there but not able to open:-
./pkgs/pyferret-7.5.0-py37ha0fb077_1/lib/python3.7/site-packages/pyferret/libpyferret.cpython-37m-x86_64-linux-gnu.so

Did I mess up with the installation procedure?

saurabh

On Tue, Jul 23, 2019 at 5:22 PM saurabh rathore <rohitsrb2020@xxxxxxxxx> wrote:
Dear Ryo,
Thank you for your reply. I would like to mention the installation process. 
1) first I installed Anaconda
2) then I created an environment named FERRET 
3) then I installed ferret in this environment

So if I am correct my anaconda installed in /use/local

But my Ferret is installed in the environment called FERRET rather then base. 

I don't know that is my installation is having any problem?

Cheers Saurabh

On Tue, Jul 23, 2019, 4:58 PM Ryo Furue <furue@xxxxxxxxxx> wrote:
Hi Saurabh,


On Tue, Jul 23, 2019 at 2:44 PM saurabh rathore <rohitsrb2020@xxxxxxxxx> wrote:

  "libpyferret.cpython-37m-x86_64-linux-gnu.so: cannot open shared object file: No such file or directory".

The error message "No such file or directory" suggests either 1) that the search path doesn't include the directory where the pyferret libraries reside or 2) that the library doesn't exist.

To check (1), what do you find from this command?

yes? SPAWN env | grep -i ferret

To check (2), go to your anaconda directory.  (I don't know where yours is, but mine is under /usr/local/ .)  Then, do this

$ find . -iname '*pyferret*'

I find the library, which is  /usr/local/miniconda3/envs/FERRET/lib/python3.6/site-packages/pyferret/libpyferret.cpython-36m-darwin.so  .

Cheers,
Ryo



--


REGARDS

Saurabh Rathore
Research Scholar (PhD.)
Centre For Oceans, Rivers, Atmosphere & Land Science Technology
Indian Institute Of Technology, Kharagpur
contact :- 91- 8345984434


--
Karl M. Smith, Ph.D.
JISAO Univ. Wash. and PMEL NOAA
"The contents of this message are mine personally and do
not necessarily reflect any position of the Government
or the National Oceanic and Atmospheric Administration."

[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement