Closed xytxytxyt closed 4 years ago
solved with
diff --git a/c-blosc/internal-complibs/zlib-1.2.8/gzguts.h b/c-blosc/internal-complibs/zlib-1.2.8/gzguts.h
index d87659d..fb91985 100644
--- a/c-blosc/internal-complibs/zlib-1.2.8/gzguts.h
+++ b/c-blosc/internal-complibs/zlib-1.2.8/gzguts.h
@@ -3,6 +3,8 @@
* For conditions of distribution and use, see copyright notice in zlib.h
*/
+#include <unistd.h>
+
#ifdef _LARGEFILE64_SOURCE
# ifndef _LARGEFILE_SOURCE
# define _LARGEFILE_SOURCE 1
BLOSC_DIR=/usr/local/Cellar/c-blosc/ python setup.py build_ext --inplace
python setup.py install
Hmmm, I cannot reproduce this. My MacOSX box is 10.15.5 and python 3.7.6. I wonder whether a new version of zlib can fix your problem.
@xytxytxyt Same issue, same resolution. Any chance we can patch this soon?
I have just updated to latest Mac OSX 10.15.6, but I can still compile the beast with Python 3.7.6. I suppose this is a Python 3.8 thing. We will try to appy your patch to C-Blosc sources and propagate this back to python-blosc soon.
Understood, thanks. For the time being, I'll just build from source with your recommendations above
python-blosc 1.9.2 has been released and fixes this. Closing.
Thank you so much @FrancescAlted !!
(
pip install blosc
also results in the same errors; the following is my attempt to build from source)macOS version 10.15.6 (19G73) Python 3.8.5
My Python has among others cmake==3.18.0 scikit-build==0.11.1
output: