[ncl-install] Nio.open_file problem : object.__init__() takes no parameters
Sourish Basu
sbasu at physics.cornell.edu
Mon Feb 8 08:11:00 MST 2010
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
More information about the ncl-install
mailing list