Pip not able to install climetlab (v0.11.31) in windows with Python 3.7 : HDF5 headers not found
See original GitHub issueThe title is quite explicit :p . I get this error in the tests for the release of a new version of the EUMETNET benchmark climetlab plugin. Is climetlab still supported in Python 3.7?
See the error log here:
Collecting climetlab
Downloading climetlab-0.11.31.tar.gz (128 kB)
-------------------------------------- 128.1/128.1 kB 3.8 MB/s eta 0:00:00
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting numpy
Downloading numpy-1.21.6-cp37-cp37m-win_amd64.whl (14.0 MB)
--------------------------------------- 14.0/14.0 MB 46.7 MB/s eta 0:00:00
Collecting pandas
Downloading pandas-1.3.5-cp37-cp37m-win_amd64.whl (10.0 MB)
--------------------------------------- 10.0/10.0 MB 57.9 MB/s eta 0:00:00
Collecting xarray>=0.19.0
Downloading xarray-0.20.2-py3-none-any.whl (845 kB)
------------------------------------- 845.2/845.2 kB 26.9 MB/s eta 0:00:00
Collecting requests
Downloading requests-2.28.1-py3-none-any.whl (62 kB)
---------------------------------------- 62.8/62.8 kB 3.3 MB/s eta 0:00:00
Collecting dask
Downloading dask-2022.2.0-py3-none-any.whl (1.1 MB)
---------------------------------------- 1.1/1.1 MB 22.2 MB/s eta 0:00:00
Collecting netcdf4
Downloading netCDF4-1.6.0.tar.gz (774 kB)
------------------------------------- 774.2/774.2 kB 24.6 MB/s eta 0:00:00
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error
python setup.py egg_info did not run successfully.
exit code: 1
[25 lines of output]
reading from setup.cfg...
HDF5_DIR environment variable not set, checking some standard locations ..
checking C:\Users\runneradmin\include ...
hdf5 headers not found in C:\Users\runneradmin\include
checking /usr/local\include ...
hdf5 headers not found in /usr/local\include
checking /sw\include ...
hdf5 headers not found in /sw\include
checking /opt\include ...
hdf5 headers not found in /opt\include
checking /opt/local\include ...
hdf5 headers not found in /opt/local\include
checking /opt/homebrew\include ...
hdf5 headers not found in /opt/homebrew\include
checking /usr\include ...
hdf5 headers not found in /usr\include
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\RUNNER~1\AppData\Local\Temp\pip-install-wpzd3q9h\netcdf4_0e84f88a843e43dab815c3ef9955b375\setup.py", line 444, in <module>
_populate_hdf5_info(dirstosearch, inc_dirs, libs, lib_dirs)
File "C:\Users\RUNNER~1\AppData\Local\Temp\pip-install-wpzd3q9h\netcdf4_0e84f88a843e43dab815c3ef9955b375\setup.py", line 385, in _populate_hdf5_info
Error: raise ValueError('did not find HDF5 headers')
ValueError: did not find HDF5 headers
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error while generating package metadata.
See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Error: Process completed with exit code 1.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
HDF5 headers error on install #901 - Unidata/netcdf4-python
The install does not fail when using netcdf4-python version 1.4.3, ... to install climetlab (v0.11.31) in windows with Python 3.7 : HDF5 headers...
Read more >Unable to install library due to error with hdf5 - Stack Overflow
I found a solution works on Windows 10 with Visual Studio 2019 Community and Python 3.9.1. Download HDF5 and install.
Read more >Installing — CliMetLab 0.12.8 documentation - Read the Docs
The CliMetLab pip package has been tested successfully with the latest versions of its dependencies (build logs). Conda install¶. No conda package has...
Read more >Error installing 3.5.2 - can't locate install HDF5 library
ERROR:: Could not find a local HDF5 installation. You may need to explicitly state where your local HDF5 headers and. library can be...
Read more >climetlab - PyPI
CliMetLab is a Python package aiming at simplifying access to climate and meteorological datasets, allowing users to focus on science instead of technical ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, droping support for Windows python 3.7 would make sense IMO, depending on your users of course.
You can achieve this in the .github/workflow yaml file using
exclude
as in:Indeed, apparently, the issue comes from the netcdf4 package, there is not much that we can do from climetlab.