Re: problem while installing PyNGL and PyNIO languages for Linux localhost.localdomain 2.6.31.5-127.fc12.x86_64 #1 SMP Sat Nov 7 21:11:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed Apr 06 2011 - 13:04:57 MDT

Hi,

Sorry I missed this question in my mailbox.

You should use PYTHONPATH to set the paths for where python looks for modules.

What does it report when you run python interactively and type:

import sys
sys.path

If you don't see /usr/local/lib64/PyNGL/lib/python2.6/site-packages or /usr/local/lib64/PyNIO/lib/python2.6/site-packages as part of the path, then try adding them to your PYTHONPATH:

  export PYTHONPATH $PYTHONPATH:/usr/local/lib64/PyNGL/lib/python2.6/site-packages:/usr/local/lib64/PyNIO/lib/python2.6/site-packages

--Mary

On Apr 1, 2011, at 5:28 AM, nagarjuna rao wrote:

> **********************************************************************************************************
> problem installing PyNGL and PyNIO from precompiled binaries : the following tar files are which I have downloaded from ESG
> PyNIO-1.4.0.linux-redhat-x86_64-gcc412-py265-numpy141.tar.gz
> PyNGL-1.3.1.linux-redhat-x86_64-gcc412-py265-numpy141.tar.gz
>
> *************************************************************************************************************
> this is my .bashrc file
>
> export PYNGL_NCARG=/usr/local/lib64/PyNGL/lib/python2.6/site-packages/PyNGL/ncarg
> export PATH=$PYNGL_NCARG/bin:$PATH
>
> export PYNIO_NCARG=/usr/local/lib64/PyNIO/lib/python2.6/site-packages/PyNIO/ncarg
> export PATH=$PYNIO_NCARG/bin:$PATH
>
> ***********************************************************************************************************
>
> > hi together,
> >
> > After a lot of trouble i managed to compile and install PyNIO and PyNGL
> > successfully (on Suse Linux 11.1 x64), at least according to the output
> > of setup.py.
> >
> > However, Python can't find a module named Nio (or Ngl). import PyNio and
> > PyNGL does work, but not properly, e.g.:
> > >>> import Nio
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named Nio
> >>> import Ngl
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named Ngl
> >>>> dir(PyNGL)
> > ['__builtins__', '__doc__', '__file__', '__name__', '__package__',
> > '__path__']
> >
> > The files/dirs : are as follows
> > PyNGL
> > PyNGL-1.3.1-py2.6.egg-info
> > PyNIO
> > PyNIO-1.4.0-py2.6.egg-info
> > Nio.pth
> >Ngl.pth
> > are in /usr/local/lib64/PyNGL/lib/python2.6/site-packages, which is in sys.path...
> > /usr/local/lib64/PyNIO/lib/python2.6/site-packages
> > Any idea what went wrong?
> >
> > Thanks in advance for any help , Nagarjuna
>
>
>
> --
> D.Nagarjuna Rao
> CSIR Research Fellow,
> Climate and Global modeling division,
> IITM,Pune-411008.
> Phone no: 8087706223(old)
> 8055912879(new)
> 9689410009(new idea)
>
> _______________________________________________
> pyngl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk

_______________________________________________
pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Wed Apr 6 13:05:02 2011

This archive was generated by hypermail 2.1.8 : Wed May 18 2011 - 12:00:50 MDT