getting PyNgl installed...

From: Pascale Gerbault <p.gerbault_at_nyahnyahspammersnyahnyah>
Date: Mon Nov 09 2009 - 07:43:44 MST

Hello PyNGL users,

I have sent a first email about PyNgl installation, and I got a first
answer (Mary thank you very much). I've tried, but it still doesn't
work.
To repeat what my system is, here is the information:
- My system is: MacOS X 10.5
- the gcc version is: 4.0.1
- and the version of python installed is: 2.5
 From the ESG site, I have first downloaded the binary file:
PyNGL1.3.0b1 Intel Mac (Mac OS 10.5), python 2.5
Then I moved this file PyNGL-1.3.0b1.macosx-10.5-i386-2.5 to the path
where numpy is, in:
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages

(Because the command sys.path in Python gives the following:
['', '/Library/Frameworks/Python.framework/Versions/2.5/lib/
python25.zip', '/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5', '/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/plat-darwin', '/Library/Frameworks/Python.framework/Versions/
2.5/lib/python2.5/plat-mac', '/Library/Frameworks/Python.framework/
Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages', '/Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk', '/
Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-
dynload', '/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages'])

I should tell that the file I have downloaded
(PyNGL-1.3.0b1.macosx-10.5-i386-2.5) from ESG site has two folders in
it:
/PyNGL-1.3.0b1.macosx-10.5-i386-2.5/bin
/PyNGL-1.3.0b1.macosx-10.5-i386-2.5/lib
And in the latter, there are three PyNGL* located in the following
directory:
/PyNGL-1.3.0b1.macosx-10.5-i386-2.5/lib/python2.5/site-packages

Then, according to what Mary asked me to do, if I understood properly,
this is what I have done:
export PYTHONPATH=../../Library/Frameworks/Python.framework/Versions/
2.5/lib/python2.5/site-packages/PyNGL-1.3.0b1.macosx-10.5-i386-2.5/lib/
python2.5/site-packages/PyNGL:$PYTHONPATH
(After this, the command sys.path gives:
['', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
site-packages/PyNGL-1.3.0b1.macosx-10.5-i386-2.5/lib/python2.5/site-
packages/PyNGL', '/Library/Frameworks/Python.framework/Versions/2.5/
lib/python2.5/site-packages/PyNGL', '/Users/pascalegerbault', '/
Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip', '/
Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5', '/
Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-
darwin', '/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/plat-mac', '/Library/Frameworks/Python.framework/Versions/
2.5/lib/python2.5/plat-mac/lib-scriptpackages', '/Library/Frameworks/
Python.framework/Versions/2.5/lib/python2.5/lib-tk', '/Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload', '/
Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages'])

And when I try to import Ngl in python, I get the following message:
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/PyNGL-1.3.0b1.macosx-10.5-i386-2.5/lib/
python2.5/site-packages/PyNGL/Ngl.py", line 38, in <module>
     import fplib
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/
lib/python2.5/site-packages/PyNGL-1.3.0b1.macosx-10.5-i386-2.5/lib/
python2.5/site-packages/PyNGL/fplib.so, 2): Library not loaded: /usr/
local/gfortran/lib/libgfortran.3.dylib
   Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/
lib/python2.5/site-packages/PyNGL-1.3.0b1.macosx-10.5-i386-2.5/lib/
python2.5/site-packages/PyNGL/fplib.so
   Reason: image not found

Shall I extract each file and folder from
  /PyNGL-1.3.0b1.macosx-10.5-i386-2.5/bin
/PyNGL-1.3.0b1.macosx-10.5-i386-2.5/lib/python2.5/site-packages
and put them in the directory (where numpy is)
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages
and then try to export PYTHONPATH again?

I am stuck and I don't really know what to try next...
Maybe I misunderstood what your first said Mary?

Have a good day,
Cheers,

Pascale

_______________________________________________
pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Mon Nov 9 07:43:07 2009

This archive was generated by hypermail 2.1.8 : Tue Dec 01 2009 - 09:32:36 MST