HI,
I think both PYTHONPATH and LD_LIBRARY_PATH are correctly defined in the paths script(attached). What I found is that I have python2.7 where as pyferret look for python2.6. I tried renaming python_subdir to python2.7, still this error appears; Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/nuncio/PyFerret/lib/python2.7/site-packages/pyferret/__init__.py", line 52, in <module> from libpyferret import * ImportError: libpython2.6.so.1.0: cannot open shared object file: No such file or directory >>> nuncio Nuncio Murukesh
National Centre for Antarctic and Ocean Research Goa-403804 Ph:91 832 2525530 From: Karl Smith - NOAA Affiliate
Sent: 06 December 2014 00:53 To: Dr. Nuncio Murukesh Cc: Sudheer Joseph; ferret_users@xxxxxxxx Subject: Re: [ferret_users] running pyferret Hi,
When Python cannot find the pyferret module, it is because PYTHONPATH is not defined, or does not include the pyferret module directory. One also needs to define LD_LIBRARY_PATH so the pyferret module can find the pyferret library it needs.If you are using a ferret_paths script from an older version, you should regenerate the ferret_paths scripts using Finstall (option 2) found in the PyFerret bin subdirectory (requires that you extracted the environment tar.gz file for this version or PyFerret), If you using a highly customized ferret_paths script that you do not want to regenerate, you need to add the definition of PYTHONPATH and LD_LIBRARY_PATH to this ferret_paths script. Their definitions (and the definition of "pysite" that they use) can be found near the end of the ferret_paths_template.sh and ferret_paths_template.csh scripts in the PyFerret bin subdirectory. These definitions can be copied as-is from the appropriate template script (.sh for a Bourne-shell script, or .csh for a C-shell script). Karl On Fri, Dec 5, 2014 at 1:09 AM, Dr. Nuncio Murukesh
<nuncio@xxxxxxxxxxxx> wrote:
-- 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." |
Attachment:
ferret_paths.sh
Description: ferret_paths.sh