[gradsusr] [EXTERNAL] GrADS 2.2.1 on macOS Catalina

Mukesh Gupta guptm at yahoo.com
Wed May 20 08:14:16 EDT 2020


 Hi. Here is the LD_LIBRARY_PATH:
>>> echo $LD_LIBRARY_PATH
/Users/mukeshgupta/grads-2.2.1/lib

The location of 'libgradspy.dylib' is here:
>>> pwd
/Users/mukeshgupta/grads-2.2.1/lib
>>> ls -1 libgrads*
 libgradspy.0.dylib*libgradspy.dylib@
libgradspy.la*
>>>
Note that 'libgradspy.dylib@' is a link to 'libgradspy.0.dylib'. That's all.

Thanks,Mukesh

    On Wednesday, May 20, 2020, 1:27:13 p.m. GMT+2, Adams, Jennifer M. (GSFC-610.2)[ADNET SYSTEMS INC] <jennifer.m.adams at nasa.gov> wrote:  
 
 
What is your $LD_LIBRARY_PATH? Where is your libgradspy.dylib?
 
--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: Wednesday, May 20, 2020 at 6:29 AM
To: GrADS Users Forum <gradsusr at gradsusr.org>
Subject: Re: [gradsusr] [EXTERNAL] GrADS 2.2.1 on macOS Catalina
 
  
 
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
/usr/bin/:/Library/Python/2.7/site-packages/:/Library/Frameworks/Houdini.framework/Versions/15.5.523/Resources/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
 
  
 
>>> ls -1 /Library/Python/2.7/site-packages/
 
Extras.pth*
README
gradspy-1.0-py2.7.egg-info
gradspy.so*
 
It seems python is still not linked to grads for some reason. I am not sure what is missing.
 
  
 
Thanks,
 
Mukesh
 
  
 
  
 
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:
 
> 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) 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/20200520/2b34fac7/attachment.html>


More information about the gradsusr mailing list