Re: stuck on install

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed, 8 Apr 2009 08:28:16 -0600

Gavin,

Can you type:

python
import Ngl
dir(Ngl)
Ngl.pynglpath("ncarg")

and send me the output.

--Mary

On Apr 8, 2009, at 7:16 AM, Gavin Burris wrote:

> I had to link the PyNGL directory to Ngl as well.
>
> # cd /usr/local/pyngl/lib64/python2.4/site-packages
> # ln -s PyNGL Ngl
>
> Now "import Ngl" works without error, but I am getting the following:
>
> # pynglex -a
> Traceback (most recent call last):
> File "/usr/local/pyngl/bin/pynglex", line 118, in ?
> os.environ["NCARG_NCARG"] = Ngl.pynglpath("ncarg")
> AttributeError: 'module' object has no attribute 'pynglpath'
>
>
> Mary Haley wrote:
>>
>> On Tue, 7 Apr 2009, Gavin Burris wrote:
>>
>>> Hi Mary,
>>>
>>> Any help is appreciated. I receive the same error from the binary
>>> download or my own source build. Here is the session log:
>>>
>>> # which python
>>> /usr/bin/python
>>> # ls /usr/local/pyngl/lib64/python2.4/site-packages
>>> PyNGL PyNGL.pth
>>> # ls /usr/local/pyngl/lib64/python2.4/site-packages/PyNGL
>>> fplib.so hlu.pyc __init__.py ncarg Ngl.pyc
>>> pyngl_version.pyc
>>> hlu.py _hlu.so __init__.pyc Ngl.py pyngl_version.py
>>> # echo $PYTHONPATH
>>> /usr/local/pyngl/lib64/python2.4/site-packages:
>>
>> Gavin,
>>
>> Sorry for the hassle.
>>
>> I think there's a problem with the PyNGL installation that I need to
>> fix. The "PyNGL.pth" file should be "Ngl.pth".
>>
>> Try copying PyNGL.pth to Ngl.pth:
>>
>> cp /usr/local/pyngl/lib64/python2.4/site-packages/PyNGL/PyNGL.pth
>> /usr/local/pyngl/lib64/python2.4/site-packages/PyNGL/Ngl.pth
>>
>> Now, when you "import Ngl", it should look in your PYTHONPATH,
>> see the "Ngl.pth" which contains the directory name "PyNGL",
>> and know where to get the "Ngl" module.
>>
>> --Mary
>>
>>
>>
>>> # python
>>> Python 2.4.3 (#1, May 24 2008, 13:57:05)
>>> [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2
>>> Type "help", "copyright", "credits" or "license" for more
>>> information.
>>>>>> import numpy
>>>>>> import Ngl
>>> Traceback (most recent call last):
>>> File "<stdin>", line 1, in ?
>>> ImportError: No module named Ngl
>>>>>>
>>>
>>>
>>> Mary Haley wrote:
>>>>
>>>> Hi Gavin,
>>>>
>>>> Sorry I haven't responded sooner, I've been on vacation.
>>>>
>>>> Can you type the following and email me the output:
>>>>
>>>> which python
>>>> ls /usr/local/pyngl/lib64/python2.4/site-packages
>>>> ls /usr/local/pyngl/lib64/python2.4/site-packages/PyNGL
>>>>
>>>> And then type the following python session and send me the output:
>>>>
>>>> python
>>>> import numpy
>>>> import Ngl
>>>>
>>>> Thanks,
>>>>
>>>> --Mary
>>>>
>>>>
>>>> On Fri, 3 Apr 2009, Gavin Burris wrote:
>>>>
>>>>> Hello PyNGL people,
>>>>>
>>>>> I hope you can give me some pointers. I am trying to install
>>>>> PyNGL on
>>>>> Red Hat / CentOS 5 x86-64, and I am stuck. I have tried the
>>>>> binaries
>>>>> and I have also built successfully from source code, but I
>>>>> still get
>>>>> "unable to import" for Ngl.
>>>>>
>>>>>
>>>>> # export NCARG_ROOT=/usr/local/ncarg
>>>>> # export PATH=$NCARG_ROOT/bin:$PATH
>>>>> # export LD_LIBRARY_PATH=$NCARG_ROOT/lib:$LD_LIBRARY_PATH
>>>>> # export PATH=/usr/local/pyngl/bin:$PATH
>>>>> # export LD_LIBRARY_PATH=/usr/local/pyngl/lib64:$LD_LIBRARY_PATH
>>>>> # export
>>>>> PYTHONPATH=/usr/local/pyngl/lib64/python2.4/site-packages:
>>>>> $PYTHONPATH
>>>>> # export
>>>>> PYNGL_NCARG=/usr/local/pyngl/lib64/python2.4/site-packages/
>>>>> PyNGL/ncarg
>>>>> # export
>>>>> NCARG_NCARG=/usr/local/pyngl/lib64/python2.4/site-packages/
>>>>> PyNGL/ncarg
>>>>> # pynglex -a
>>>>>
>>>>> Error: I am unable to import the NumPy version of Ngl via
>>>>> 'import Ngl'.
>>>>>
>>>>>
>>>>> Thank you for your time.
>>>>> _______________________________________________
>>>>> 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 08 2009 - 08:28:16 MDT

This archive was generated by hypermail 2.2.0 : Fri Apr 24 2009 - 15:35:01 MDT