[gradsusr] [EXTERNAL] GrADS 2.2.1 on macOS Catalina

Mukesh Gupta guptm at yahoo.com
Wed May 20 06:10:20 EDT 2020

 Hi Jennifer,
Thank you very much for your reply and instructions. The same error still shows up. I have set up PYTHONPATH, which was empty, and re-run setup.py, I got this:
>>> python setup.py install
running install
running build
running build_ext
running install_lib
running install_egg_info
Removing /Library/Python/2.7/site-packages/gradspy-1.0-py2.7.egg-info
Writing /Library/Python/2.7/site-packages/gradspy-1.0-py2.7.egg-info>>>
The command 'echo $PYTHONPATH' gives this:
>>> echo $PYTHONPATH
>>> ls -1 /Library/Python/2.7/site-packages/

It seems python is still not linked to grads for some reason. I am not sure what is missing.


    On Tuesday, May 19, 2020, 10:51:07 p.m. GMT+2, Adams, Jennifer M. (GSFC-610.2)[ADNET SYSTEMS INC] <jennifer.m.adams at nasa.gov> wrote:  
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:

> ls -1 /Users/jmadams1/anaconda3/lib/python3.7/site-packages/*gradspy*
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 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
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) 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20200520/9e064e33/attachment-0001.html>

More information about the gradsusr mailing list