NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi all, I'm new to Python and reaching out here for information on an issue I ran into. My issue is that I'm unable to close a netCDF4 object and write a file to disk without error if I import h5py and netcdf4 in the same script. If I remove the "import h5py" line, the script works fine. Is this a known/common issue? Is there a way in which I can use both h5py and netcdf4 modules in the same Python script without generating these types of errors? What's the best workaround for this? I'm not providing an example script here, but some environment details are below. I can provide other info as needed. Environment: CentOS 7 Python 3.6 pip virtual environment with h5py and netcdf4 and dependencies installed. HDF5 and netCDF-4 C compiled from scratch. Thanks, Aaron Funk
python-users
archives: