[Thread Prev][Thread Next][Index]

Re: [ferret_users] running pyferret


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.

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. 

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).

Best regards,

On Fri, Dec 5, 2014 at 1:09 AM, Dr. Nuncio Murukesh <nuncio@xxxxxxxxxxxx> wrote:
 I followed the steps as described here

You mean, I have to add  /path/to/pyferret/PyFerret/bin "bin" included when sourcing it

Nuncio Murukesh
National Centre for Antarctic and Ocean Research
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

Hi Nuncio,
                    Can you send the steps you followed after downloading 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.

$ll pyferret
-rwxr-xr-x 1 root root 1185 Nov 21 14:13 pyferre

with best regards


Dr. Sudheer Joseph                                                                
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@xxxxxxxxxsjo@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 Murukesh
National Centre for Antarctic and Ocean Research
Ph:91 832 2525530

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