[Thread Prev][Thread Next][Index]
[ferret_users] installation problem with pyferret
Dear Ferret users,
a tip for anyone trying to use the pyferret module from python:
when trying to follow the tutorial for calling ferret from python,
note that setting PYTHONPATH is not enough: you also need to set
LD_LIBRARY_PATH to include
$FER_DIR/lib/python2.7/site-packages/pyferret .
If you don't, ferret will complain that it cannot load
$FER_LIBS/ferret_ef_mem_subsc.so when called from a pure python
script. Everything works fine when calling ferret with the pyferret
script, as it sets LD_LIBRARY_PATH for you.
Perhaps it's worth updating the manual with this information.
I also have a question: what is the difference between
pyferret.start() and pyferret.init()? When I call pyferret.init() I
get an error:
> Python 2.7.3 (default, Aug 1 2012, 05:14:39)
> [GCC 4.6.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import pyferret
> WARNING: Unable to import cdms2 and/or cdtime;
> the Python functions pyferret.get and pyferret.put are not available
> >>> pyferret.init()
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/net/nas/data/applications/ferret/pyferret-6.8.2/64/lib/python2.7/site-packages/pyferret/__init__.py", line 136, in init
> if not '-secure' in arglist:
> TypeError: argument of type 'NoneType' is not iterable
What am I doing wrong here?
Kind regards,
Hein
--
Dr. Hein Zelle
Senior consultant meteorology & oceanography
BMT ARGOSS
Tel: +31 (0)527-242299
Fax: +31 (0)527-242016
E-mail: hein.zelle@xxxxxxxxxxxxx
Website: www.bmtargoss.com
BMT ARGOSS b.v.
Voorsterweg 28, 8316 PT Marknesse, the Netherlands
Postal address: P.O. Box 61, 8325 ZH Vollenhove, the Netherlands
Registered in The Netherlands, Registered no. 39060160.
Unless otherwise agreed by BMT ARGOSS in writing, all work,
services, goods or products supplied by BMT ARGOSS shall be subject
to and governed by BMT ARGOSS' own terms and conditions which are
available for inspection from BMT ARGOSS on request.
E-mail confidentiality notice and disclaimer:
The contents of this e-mail and any attachments are intended for the
use of the mail addressee(s) shown. If you are not that person, you
are not allowed to read it, to take any action based upon it or to
copy it, forward, distribute or disclose the contents of it and you
should please delete it from your system. BMT ARGOSS does not accept
liability for any errors or omissions in the context of this e-mail or
its attachments which arise as a result of internet transmission, nor
accept liability for statements which are those of the author and
clearly not made on behalf of BMT ARGOSS.
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement