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
Best regards,Starting with PyFerret 1.1.0, the ferret_paths.sh or ferret_paths.csh script that come with PyFerret defines these variables. Previously, this was done in the pyferret.sh (or pyferret.csh) script.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:
Hi,
I followed the steps as described here
http://ferret.pmel.noaa.gov/Ferret/documentation/pyferret/build-install/
You mean, I have to add /path/to/pyferret/PyFerret/bin "bin" included when sourcing it
nuncio
Nuncio Murukesh
National Centre for Antarctic and Ocean Research
Goa-403804
Ph:91 832 2525530
From: Sudheer Joseph
Sent: 05 December 2014 13:42
To: Dr. Nuncio Murukesh
Cc: ferret_users@xxxxxxxx
Subject: Re: [ferret_users] running pyferret
In my case I have ran Finstall which sets the path. Python is not able to see the module pyferret which need to get imported to its environment.Hi Nuncio,Can you send the steps you followed after downloading pyferret?.
/home/sjo/pkgs/PyFerret/bin
$ll pyferret
-rwxr-xr-x 1 root root 1185 Nov 21 14:13 pyferre
with best regards
Sudheer
**********************************************************************************
Dr. Sudheer Joseph
Scientist,
INCOIS, MoES, Govt. of India.
"OCEAN VALLEY" , Pragathi Nagar (BO), Nizampet SO, Telangana, India. PIN- 500 090.
Tel:+91-9440832534(Mobile) Tel:+91-40-23886047(O),Fax:+91-40-23892910(O)
E-mail: sjo.India@xxxxxxxxx; sjo@xxxxxxxxxxxxx.
-------------------* --------------------
"The ultimate measure of a man is not where he stands in moments of
comfort and convenience, but where he stands at times of challenge and controversy."
Martin Luther King, Jr.
***********************************************************************************
On Fri, Dec 5, 2014 at 12:05 PM, Dr. Nuncio Murukesh <nuncio@xxxxxxxxxxxx> wrote:
Hi all,
When I try to start pyferret from terminal the following error pops up
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named pyferret
I use bash in opensuse with python 2.7
any suggestions
thank you
nuncio
--
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."