[gradsusr] [EXTERNAL] GrADS 2.2.1 on macOS Catalina

Adams, Jennifer M. (GSFC-610.2)[ADNET SYSTEMS INC] jennifer.m.adams at nasa.gov
Tue May 19 16:50:59 EDT 2020


Hi, Mukesh –
Your LD_LIBRARY_PATH variable (~$HOME/grads-2.2.1/lib) might not be correct; try removing that leading ~
As a check, run `echo $LD_LIBRARY_PATH` and make sure that your libgradspy.dylib exists in the directory (or directories) listed.

You may also need to set the PYTHONPATH environment variable. On my mac it looks like this:
> echo $PYTHONPATH
/Users/jmadams1/anaconda3/lib/python3.7/site-packages:/Users/jmadams1/bin

> ls -1 /Users/jmadams1/anaconda3/lib/python3.7/site-packages/*gradspy*
/Users/jmadams1/anaconda3/lib/python3.7/site-packages/gradspy-1.0-py3.7.egg-info
/Users/jmadams1/anaconda3/lib/python3.7/site-packages/gradspy-1.1-py3.7.egg-info
/Users/jmadams1/anaconda3/lib/python3.7/site-packages/gradspy.cpython-37m-darwin.so*

Note: I see the documentation says, “We haven't done any testing with Python 3.” Actually, I do have a python3 version of gradspy and some new features  that make it easier to pass data back and forth between GrADS and Python. I just haven’t been able to find any spare time to put it all together into a new release.

--Jennifer

--
Jennifer Miletta Adams
ADNET Systems, Inc.
NASA/GSFC, Code 610.2
Building 32, Room S159
(301) 614-6070


From: gradsusr <gradsusr-bounces at gradsusr.org> on behalf of Mukesh Gupta <guptm at yahoo.com>
Reply-To: Mukesh Gupta <guptm at yahoo.com>, GrADS Users Forum <gradsusr at gradsusr.org>
Date: Tuesday, May 19, 2020 at 3:13 PM
To: "gradsusr at gradsusr.org" <gradsusr at gradsusr.org>
Subject: [EXTERNAL] [gradsusr] GrADS 2.2.1 on macOS Catalina

Hello,

I am writing to seek some help for the installation of GrADS 2.2.1 on macOS Catalina. I have successfully followed instructions (http://cola.gmu.edu/grads/gadoc/python.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__cola.gmu.edu_grads_gadoc_python.html&d=DwMFaQ&c=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk&r=M2mFZsxo0ZoztoK2Lyoypu1kKkBVKyEoM9CXGWO42zk&m=PtLkxnFdiXoIxQ-WaidMJIDPbVoUc97GKk5mxLuDcuE&s=6nss2yW7vVvCOgOpKTC_wCxwYpghNuXGc_2AgK1Nbfs&e=>) and ran 'python setup.py install' on Python 2.7; however, the last step did not work.

The environment variable 'LD_LIBRARY_PATH' path was updated to ~$HOME/grads-2.2.1/lib. Writing 'import gradspy' on python prompt gives this error:

>>> import gradspy
dlopen(libgradspy.dylib, 9): no suitable image found.  Did find:
    file system relative paths not allowed in hardened programs
>>>

The file 'libgradspy.dylib' exists in the ~$HOME/grads-2.2.1/lib and the build directory was created after running setup.py.

Does anyone have any recommendations or solutions to what is causing this error?

Many thanks in advance.

Regards,
Mukesh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20200519/ec94db8a/attachment.html>


More information about the gradsusr mailing list