Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing nc_inq_filter_avail HDF4 1.10.7 & netcdf 4.8.1 #1209

Closed
snowman2 opened this issue Nov 11, 2022 · 3 comments
Closed

Missing nc_inq_filter_avail HDF4 1.10.7 & netcdf 4.8.1 #1209

snowman2 opened this issue Nov 11, 2022 · 3 comments

Comments

@snowman2
Copy link

netCDF4-python==1.6.1

     reading from setup.cfg...
      using nc-config...
      checking /usr/include ...
      hdf5 headers not found in /usr/include
      checking /usr/include/hdf5/serial ...
      HDF5 library version: 1.10.7 headers found in /usr/include/hdf5/serial
      using netcdf library version b'4.8.1'
      using Cython to compile netCDF4.pyx...
      netcdf lib has group rename capability
      netcdf lib has nc_inq_path function
      netcdf lib has nc_inq_format_extended function
      netcdf lib has nc_open_mem function
      netcdf lib has nc_create_mem function
      netcdf lib has cdf-5 format capability
      netcdf lib does not have netcdf4 parallel functions
      netcdf lib does not have pnetcdf parallel functions
      netcdf lib does not have bit-grooming/quantization functions
      netcdf lib does not have zstandard compression functions
      netcdf lib does not have bzip2 compression functions
      netcdf lib does not have blosc compression functions
      netcdf lib has szip compression functions
      netcdf lib does not have nc_set_alignment function
      NETCDF_PLUGIN_DIR not set, no netcdf compression plugins installed
      /opt/venv/lib/python3.9/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
        warnings.warn(
      running install
      /opt/venv/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-39
      creating build/lib.linux-x86_64-cpython-39/netCDF4
      copying src/netCDF4/__init__.py -> build/lib.linux-x86_64-cpython-39/netCDF4
      copying src/netCDF4/utils.py -> build/lib.linux-x86_64-cpython-39/netCDF4
      running build_ext
      cythoning src/netCDF4/_netCDF4.pyx to src/netCDF4/_netCDF4.c
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      **`has_szip_filter(self)`**
      returns True if szip compression filter is available"""
              cdef int ierr
              IF HAS_SZIP_SUPPORT:
                  with nogil:
                      ierr = nc_inq_filter_avail(self._grpid, H5Z_FILTER_SZIP)
@jswhit
Copy link
Collaborator

jswhit commented Nov 12, 2022

thanks for reporting this @snowman2. Looks like we should not be using nc_inq_filter_avail for netcdf-c < 4.9.0.

jswhit added a commit that referenced this issue Nov 12, 2022
@jswhit
Copy link
Collaborator

jswhit commented Nov 13, 2022

closed by PR #1210. Should probably cut a new release for this.

jswhit added a commit that referenced this issue Nov 13, 2022
@snowman2
Copy link
Author

Thanks @jswhit 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants