Re: PyNIO for NumPy 1.6 and Debian 64 bit

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Wed May 23 2012 - 16:40:58 MDT

Hi Ivan,
Sorry you are having so much difficulty. No you should not need to have NCL or PyNGL installed. I think you may have encountered a bug that I think only would occur if you do not build the GRIB2 reader into PyNIO. Is that your situation?
I have been able to duplicate your error by building PyNIO without GRIB2. As a quick fix, you could make one change to the Nio.py file:
At about line 101, change:

            if not __formats__['grib2']:
                return None
            else:

to:

            if not __formats__['grib2']:
                return '' # 2 single quotes or 2 double quotes.
            else:

Let me know if you actually are building with GRIB2 or otherwise if this change does not work.
 -dave

On May 23, 2012, at 3:26 PM, Ivan Lima wrote:

> Since I can't get a pre-compiled version of PyNIO for my Debian system
> I tried to build it from source. I got it to build without problems
> but when I try to use it I get errors that seem to related to a
> NCL/PyNGL dependence. See below:
>
>>>> import Nio
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/usr/local/lib/python2.7/dist-packages/PyNIO/Nio.py", line
> 116, in <module>
> os.environ["NCARG_NCARG"] = pyniopath_ncarg()
> File "/usr/lib/python2.7/os.py", line 471, in __setitem__
> putenv(key, item)
> TypeError: must be string, not None
>
> I don't have NCL or PyNGL installed in my system. Is it possible to
> build PyNIO without NCL or PyNGL?
>
> Thanks,
> --
> Ivan Lima
> Woods Hole Oceanographic Institution, MC&G MS #25
> 360 Woods Hole Road, Woods Hole, MA 02543-1543 USA
>
>
> On Mon, May 21, 2012 at 9:03 PM, Ivan Lima <ivan@whoi.edu> wrote:
>> Hi Mary,
>>
>> After an upgrade of NumPy to 1.6.1 my old PyNIO 1.4.0 stopped working.
>> When I went to the ESG web site to grab a newer version to install I
>> did not find a 64 bit version for Debian. I tried installing the
>> RedHat version but it doesn't work and complains about a missing
>> library (libssl.so.6). Why there is no 64 bit version for Debian? Are
>> you planning on releasing one?
>>
>> Thank you,
>>
>> - Ivan
>> --
>> Ivan Lima
>> Woods Hole Oceanographic Institution, MC&G MS #25
>> 360 Woods Hole Road, Woods Hole, MA 02543-1543 USA
>
> _______________________________________________
> 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 May 23 16:41:07 2012

This archive was generated by hypermail 2.1.8 : Tue Jul 03 2012 - 15:43:36 MDT