Re: PyNIO TypeError?

From: Steve Sullivan <steves_at_nyahnyahspammersnyahnyah>
Date: Fri, 9 Jan 2009 08:50:07 -0700

Hi Mary,

Here's the tiny netcdf file ...

Steve

On Fri, Jan 09, 2009 at 08:10:18AM -0700, Mary Haley wrote:
>
> Hi Steve,
>
> I'm wondering if there's an issue with mixing Python 2.5 and 2.6
> here (since PyNIO was built with 2.5.x).
>
> Can you provide me with the NetCDF file? You can email me offline
> about this.
>
> Thanks,
>
> --Mary
>
> On Fri, 9 Jan 2009, Steve Sullivan wrote:
>
> >Hi,
> >
> >I installed the binary PyNIO PyNIO-1.3.0b1.linux-i686-gcc412-2.5.tar.gz
> >but when I try to use it I get ...
> >
> >$ python
> >Python 2.6 (r26:66714, Dec 2 2008, 12:21:28)
> >[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
> >Type "help", "copyright", "credits" or "license" for more information.
> >>>>import Nio
> >>>>ncdf = Nio.open_file( 'testa.nc', mode='r')
> >Traceback (most recent call last):
> > File "<stdin>", line 1, in <module>
> > File
> > "/d1/steves/ftp/python/tdi/lib/python2.6/site-packages/PyNIO/Nio.py",
> > line 514, in open_file
> > file_proxy = _proxy(file, 'str', create_variable=_create_variable)
> > File
> > "/d1/steves/ftp/python/tdi/lib/python2.6/site-packages/PyNIO/Nio.py",
> > line 227, in _proxy
> > instance = cls(obj)
> > File
> > "/d1/steves/ftp/python/tdi/lib/python2.6/site-packages/PyNIO/Nio.py",
> > line 168, in __init__
> > super(_Proxy, self).__init__(obj)
> >TypeError: object.__init__() takes no parameters
> >>>>
> >
> >Do you know how I can fix this?
> >
> >Thanks,
> >
> >Steve
> >
> >--
> >Steve Sullivan steves_at_ucar.edu 303-497-2823
> >
> >FL/2, Research Applications Laboratory
> >National Center for Atmospheric Research
> >PO Box 3000
> >Boulder CO 80307
> >USA
> >
> >_______________________________________________
> >pyngl-talk mailing list
> >List instructions, subscriber options, unsubscribe:
> >http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
> >

-- 
Steve Sullivan   steves_at_ucar.edu     303-497-2823
FL/2, Research Applications Laboratory
National Center for Atmospheric Research
PO Box 3000
Boulder CO  80307
USA

Received on Fri Jan 09 2009 - 08:50:07 MST

This archive was generated by hypermail 2.2.0 : Fri Jan 09 2009 - 11:01:37 MST