I want to open an .nc file in python but I get the following problem, which I do not understand what it means.
from netCDF4 import Dataset
rootgrp = Dataset ("cdd_ACCESS1-3_OND_1979-2005_2.5bilineal.nc", format="NETCDF4")
print (rootgrp.data_model)
And I get:
In [6]: from netCDF4 import Dataset ...: rootgrp = Dataset ("cdd_ACCESS1-3_OND_1979-2005_2.5bilineal.nc", format="NETCDF4") ...: print (rootgrp.data_model)
Traceback (most recent call last):
File "", line 1, in from netCDF4 import Dataset
File "/home/florencia/.ipython/netCDF4/init.py", line 3, in from ._netCDF4 import *
ImportError: /home/florencia/.ipython/netCDF4/_netCDF4.so: undefined symbol: _Py_ZeroStruct
What does it mean? How can I fix it?