[ncl-install] Nio.open_file problem : object.__init__() takes no parameters
Mary Haley
haley at ucar.edu
Tue Feb 9 10:20:31 MST 2010
Hi Sourish,
It would be okay to post any PyNGL/PyNIO question to pyngl-talk,
since there's not a lot of traffic there.
But meanwhile, I'm not sure what's going on here. I think Dave said
he might know, but he's out today.
Is this file a true NetCDF4 file, or a NetCDF 4 classic file? NCL and
PyNIO cannot yet read true NetCDF 4 files.
--Mary
On Feb 8, 2010, at 8:11 AM, Sourish Basu wrote:
> Hi All,
>
> Recently, I installed NCL and PyNIO on Ubuntu 9.10 (x86_64). The
> install went smoothly, but when I try to actually use Nio to read a
> NetCDF4 file, I get the following error:
>
> [13]: fid = Nio.open_file("SampleNetCDF.nc4",'r')
> ----------------------------------------------------------------------
> -----
> TypeError Traceback (most recent
> call last)
>
> /home/i/ResearchCode/Cost function/<ipython console> in <module>()
>
> /usr/local/lib/python2.6/dist-packages/PyNIO/Nio.pyc in
> open_file(filename, mode, options, history, format)
> 513 file = _Nio.open_file
> (filename,mode,options,history,format)
> 514
> --> 515 file_proxy = _proxy(file, 'str',
> create_variable=_create_variable)
> 516 setattr(file_proxy.__class__,'set_option',set_option)
> 517 file_proxy.file = file
>
> /usr/local/lib/python2.6/dist-packages/PyNIO/Nio.pyc in _proxy(obj,
> *specials, **regulars)
> 226 _known_proxy_classes[key] = cls
> 227 # instantiate and return the needed proxy
>
> --> 228 instance = cls(obj)
> 229 return instance
> 230
>
> /usr/local/lib/python2.6/dist-packages/PyNIO/Nio.pyc in __init__
> (self, obj)
> 167
> 168 def __init__(self, obj):
> --> 169 super(_Proxy, self).__init__(obj)
> 170 super(_Proxy,self).__setattr__('_obj', obj)
> 171 super(_Proxy,self).__setattr__('attributes',{})
>
> TypeError: object.__init__() takes no parameters
>
> I'm not sure which mailing list would be appropriate to ask for help,
> but I think this is an installation issue. Has anyone seen this
> before?
>
> Thanks,
>
> -Sourish
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
More information about the ncl-install
mailing list