PyTables: Install failure on macOS 11.0.1 Homebrew python 3.9 on Intel Hardware

Pip install of PyTables fails with an error.

On a freshly installed MacOS 11.0.1, on Intel CPU based MBP, using Homebrew python 3.9. (3.9.0_1):

>> pip3 install tables
Collecting tables
  Using cached tables-3.6.1.tar.gz (4.6 MB)
Requirement already satisfied: numpy>=1.9.3 in /usr/local/lib/python3.9/site-packages (from tables) (1.19.4)
Requirement already satisfied: numexpr>=2.6.2 in /usr/local/lib/python3.9/site-packages (from tables) (2.7.1)
Building wheels for collected packages: tables
  Building wheel for tables (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/x6/37vsz40n4nbfx0nb9xdq0ghr0000gn/T/pip-install-do9yfy3k/tables/setup.py'"'"'; __file__='"'"'/private/var/folders/x6/37vsz40n4nbfx0nb9xdq0ghr0000gn/T/pip-install-do9yfy3k/tables/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/x6/37vsz40n4nbfx0nb9xdq0ghr0000gn/T/pip-wheel-3hnmjui6
       cwd: /private/var/folders/x6/37vsz40n4nbfx0nb9xdq0ghr0000gn/T/pip-install-do9yfy3k/tables/
  Complete output (297 lines):
  * Using Python 3.9.0 (default, Oct 27 2020, 14:15:17)
  * USE_PKGCONFIG: True
  * Found HDF5 headers at ``/usr/local/include``, library at ``/usr/local/lib``.
  * Found LZO 2 headers at ``/usr/local/include``, library at ``/usr/local/lib``.
  * Skipping detection of LZO 1 since LZO 2 has already been found.
  /var/folders/x6/37vsz40n4nbfx0nb9xdq0ghr0000gn/T/BZ2_bzlibVersion9v9eowo8.c:2:5: error: implicit declaration of function 'BZ2_bzlibVersion' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      BZ2_bzlibVersion();
      ^
  1 error generated.
  * Could not find bzip2 headers and library; disabling support for it.
  /var/folders/x6/37vsz40n4nbfx0nb9xdq0ghr0000gn/T/blosc_list_compressorsqnh3sxrx.c:2:5: error: implicit declaration of function 'blosc_list_compressors' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      blosc_list_compressors();
      ^
  1 error generated.
  * Could not find blosc headers and library; using internal sources.
  SSE2 detected and enabled
  AVX2 detected and enabled
  /usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'extra_require'
    warnings.warn(msg)

.....

c-blosc/internal-complibs/zlib-1.2.8/gzlib.c:256:24: error: implicit declaration of function 'lseek' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
          state->start = LSEEK(state->fd, 0, SEEK_CUR);
                         ^
  c-blosc/internal-complibs/zlib-1.2.8/gzlib.c:14:17: note: expanded from macro 'LSEEK'
  #  define LSEEK lseek
                  ^
  c-blosc/internal-complibs/zlib-1.2.8/gzlib.c:256:24: note: did you mean 'fseek'?
  c-blosc/internal-complibs/zlib-1.2.8/gzlib.c:14:17: note: expanded from macro 'LSEEK'
  #  define LSEEK lseek
                  ^
  /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:162:6: note: 'fseek' declared here
  int      fseek(FILE *, long, int);
           ^
  c-blosc/internal-complibs/zlib-1.2.8/gzlib.c:355:9: error: implicit declaration of function 'lseek' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      if (LSEEK(state->fd, state->start, SEEK_SET) == -1)
          ^
  c-blosc/internal-complibs/zlib-1.2.8/gzlib.c:14:17: note: expanded from macro 'LSEEK'
  #  define LSEEK lseek
                  ^
  c-blosc/internal-complibs/zlib-1.2.8/gzlib.c:396:15: error: implicit declaration of function 'lseek' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
          ret = LSEEK(state->fd, offset - state->x.have, SEEK_CUR);
                ^
  c-blosc/internal-complibs/zlib-1.2.8/gzlib.c:14:17: note: expanded from macro 'LSEEK'
  #  define LSEEK lseek
                  ^
  c-blosc/internal-complibs/zlib-1.2.8/gzlib.c:492:14: error: implicit declaration of function 'lseek' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      offset = LSEEK(state->fd, 0, SEEK_CUR);
               ^
  c-blosc/internal-complibs/zlib-1.2.8/gzlib.c:14:17: note: expanded from macro 'LSEEK'
  #  define LSEEK lseek
                  ^
  4 errors generated.
  error: command '/usr/bin/clang' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for tables
  Running setup.py clean for tables
Failed to build tables
Installing collected packages: tables
    Running setup.py install for tables ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/x6/37vsz40n4nbfx0nb9xdq0ghr0000gn/T/pip-install-do9yfy3k/tables/setup.py'"'"'; __file__='"'"'/private/var/folders/x6/37vsz40n4nbfx0nb9xdq0ghr0000gn/T/pip-install-do9yfy3k/tables/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/x6/37vsz40n4nbfx0nb9xdq0ghr0000gn/T/pip-record-wyb_qo9g/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/tables
         cwd: /private/var/folders/x6/37vsz40n4nbfx0nb9xdq0ghr0000gn/T/pip-install-do9yfy3k/tables/
    Complete output (297 lines):
    * Using Python 3.9.0 (default, Oct 27 2020, 14:15:17)
    * USE_PKGCONFIG: True
    * Found HDF5 headers at ``/usr/local/include``, library at ``/usr/local/lib``.
    * Found LZO 2 headers at ``/usr/local/include``, library at ``/usr/local/lib``.
    * Skipping detection of LZO 1 since LZO 2 has already been found.
    /var/folders/x6/37vsz40n4nbfx0nb9xdq0ghr0000gn/T/BZ2_bzlibVersion6dn80ei1.c:2:5: error: implicit declaration of function 'BZ2_bzlibVersion' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        BZ2_bzlibVersion();
        ^
    1 error generated.
    * Could not find bzip2 headers and library; disabling support for it.
    /var/folders/x6/37vsz40n4nbfx0nb9xdq0ghr0000gn/T/blosc_list_compressorsab9_e1pl.c:2:5: error: implicit declaration of function 'blosc_list_compressors' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        blosc_list_compressors();
        ^
    1 error generated.
    * Could not find blosc headers and library; using internal sources.
    SSE2 detected and enabled
    AVX2 detected and enabled
    /usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'extra_require'
      warnings.warn(msg)
    running install
....
c-blosc/internal-complibs/zlib-1.2.8/gzlib.c:256:24: error: implicit declaration of function 'lseek' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
            state->start = LSEEK(state->fd, 0, SEEK_CUR);
                           ^
    c-blosc/internal-complibs/zlib-1.2.8/gzlib.c:14:17: note: expanded from macro 'LSEEK'
    #  define LSEEK lseek
                    ^
    c-blosc/internal-complibs/zlib-1.2.8/gzlib.c:256:24: note: did you mean 'fseek'?
    c-blosc/internal-complibs/zlib-1.2.8/gzlib.c:14:17: note: expanded from macro 'LSEEK'
    #  define LSEEK lseek
                    ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:162:6: note: 'fseek' declared here
    int      fseek(FILE *, long, int);
             ^
    c-blosc/internal-complibs/zlib-1.2.8/gzlib.c:355:9: error: implicit declaration of function 'lseek' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        if (LSEEK(state->fd, state->start, SEEK_SET) == -1)
            ^
    c-blosc/internal-complibs/zlib-1.2.8/gzlib.c:14:17: note: expanded from macro 'LSEEK'
    #  define LSEEK lseek
                    ^
    c-blosc/internal-complibs/zlib-1.2.8/gzlib.c:396:15: error: implicit declaration of function 'lseek' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
            ret = LSEEK(state->fd, offset - state->x.have, SEEK_CUR);
                  ^
    c-blosc/internal-complibs/zlib-1.2.8/gzlib.c:14:17: note: expanded from macro 'LSEEK'
    #  define LSEEK lseek
                    ^
    c-blosc/internal-complibs/zlib-1.2.8/gzlib.c:492:14: error: implicit declaration of function 'lseek' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        offset = LSEEK(state->fd, 0, SEEK_CUR);
                 ^
    c-blosc/internal-complibs/zlib-1.2.8/gzlib.c:14:17: note: expanded from macro 'LSEEK'
    #  define LSEEK lseek
                    ^
    4 errors generated.
    error: command '/usr/bin/clang' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/x6/37vsz40n4nbfx0nb9xdq0ghr0000gn/T/pip-install-do9yfy3k/tables/setup.py'"'"'; __file__='"'"'/private/var/folders/x6/37vsz40n4nbfx0nb9xdq0ghr0000gn/T/pip-install-do9yfy3k/tables/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/x6/37vsz40n4nbfx0nb9xdq0ghr0000gn/T/pip-record-wyb_qo9g/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/tables Check the logs for full command output.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 28 (4 by maintainers)

Commits related to this issue

Most upvoted comments

FWIW i came here with the same problem as the OP, based on this suggestion appear to have solved it with

brew install c-blosc
pip3 install tables
brew install hdf5 c-blosc

by itself didn’t work for me. I adapted this comment: https://github.com/freqtrade/freqtrade/issues/4162#issuecomment-890377818 to let the build process find my brew-installed HDF5 and Blosc:

brew install hdf5 c-blosc
export HDF5_DIR="$(brew --prefix hdf5)"
export BLOSC_DIR="$(brew --prefix c-blosc)"

@YubinXie could you try executing brew install hdf5 c-blosc lzo bzip2? Probably you forgot to link c-blosc or any other library with brew link --overwrite c-blosc.

I tried these commands on my MAC but second command fails on my system.

Collecting tables
  Using cached tables-3.6.1.tar.gz (4.6 MB)
Requirement already satisfied: numpy>=1.9.3 in /usr/local/lib/python3.9/site-packages (from tables) (1.19.5)
Requirement already satisfied: numexpr>=2.6.2 in /usr/local/lib/python3.9/site-packages (from tables) (2.7.2)
Building wheels for collected packages: tables
  Building wheel for tables (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/sv/f00rtph94cj0k1ntrvxxpsnh0000gn/T/pip-install-pabgwm9h/tables_d2bf2083e4874fdd86cf36dd19131197/setup.py'"'"'; __file__='"'"'/private/var/folders/sv/f00rtph94cj0k1ntrvxxpsnh0000gn/T/pip-install-pabgwm9h/tables_d2bf2083e4874fdd86cf36dd19131197/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/sv/f00rtph94cj0k1ntrvxxpsnh0000gn/T/pip-wheel-olrxkv7v
       cwd: /private/var/folders/sv/f00rtph94cj0k1ntrvxxpsnh0000gn/T/pip-install-pabgwm9h/tables_d2bf2083e4874fdd86cf36dd19131197/
  Complete output (161 lines):
  * Using Python 3.9.1 (default, Dec 29 2020, 09:45:39)
  * USE_PKGCONFIG: True
  * Found HDF5 headers at ``/usr/local/include``, library at ``/usr/local/lib``.
  clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11'
  * Could not find LZO 2 headers and library; disabling support for it.
  clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11'
  * Could not find LZO 1 headers and library; disabling support for it.
  clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11'
  * Could not find bzip2 headers and library; disabling support for it.
  * pkg-config header dirs for blosc: /usr/local/Cellar/c-blosc/1.21.0/include
  * pkg-config library dirs for blosc: /usr/local/Cellar/c-blosc/1.21.0/lib
  * Found blosc headers at ``/usr/local/Cellar/c-blosc/1.21.0/include``, library at ``/usr/local/Cellar/c-blosc/1.21.0/lib``.
  /usr/local/Cellar/python@3.9/3.9.1_4/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'extra_require'
    warnings.warn(msg)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-11-x86_64-3.9
  creating build/lib.macosx-11-x86_64-3.9/tables
  copying tables/link.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/description.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/index.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/attributeset.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/registry.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/leaf.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/carray.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/__init__.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/unimplemented.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/req_versions.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/conditions.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/file.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/indexes.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/utils.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/undoredo.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/group.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/parameters.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/exceptions.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/table.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/idxutils.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/node.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/array.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/path.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/expression.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/atom.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/filters.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/earray.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/vlarray.py -> build/lib.macosx-11-x86_64-3.9/tables
  copying tables/flavor.py -> build/lib.macosx-11-x86_64-3.9/tables
  creating build/lib.macosx-11-x86_64-3.9/tables/misc
  copying tables/misc/__init__.py -> build/lib.macosx-11-x86_64-3.9/tables/misc
  copying tables/misc/proxydict.py -> build/lib.macosx-11-x86_64-3.9/tables/misc
  copying tables/misc/enum.py -> build/lib.macosx-11-x86_64-3.9/tables/misc
  creating build/lib.macosx-11-x86_64-3.9/tables/nodes
  copying tables/nodes/__init__.py -> build/lib.macosx-11-x86_64-3.9/tables/nodes
  copying tables/nodes/filenode.py -> build/lib.macosx-11-x86_64-3.9/tables/nodes
  creating build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_utils.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_tree.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_all.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_basics.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_tables.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_expression.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/check_leaks.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_do_undo.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_timetype.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_backcompat.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_array.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_aux.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/__init__.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_earray.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/create_backcompat_indexes.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_index_backcompat.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/common.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_timestamps.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_queries.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_suite.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_lists.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_create.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_indexes.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_indexvalues.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_vlarray.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_garbage.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_tablesMD.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_carray.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_links.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_numpy.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_hdf5compat.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_attributes.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_types.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_enum.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_nestedtypes.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
  creating build/lib.macosx-11-x86_64-3.9/tables/scripts
  copying tables/scripts/ptrepack.py -> build/lib.macosx-11-x86_64-3.9/tables/scripts
  copying tables/scripts/pttree.py -> build/lib.macosx-11-x86_64-3.9/tables/scripts
  copying tables/scripts/__init__.py -> build/lib.macosx-11-x86_64-3.9/tables/scripts
  copying tables/scripts/pt2to3.py -> build/lib.macosx-11-x86_64-3.9/tables/scripts
  copying tables/scripts/ptdump.py -> build/lib.macosx-11-x86_64-3.9/tables/scripts
  creating build/lib.macosx-11-x86_64-3.9/tables/nodes/tests
  copying tables/nodes/tests/__init__.py -> build/lib.macosx-11-x86_64-3.9/tables/nodes/tests
  copying tables/nodes/tests/test_filenode.py -> build/lib.macosx-11-x86_64-3.9/tables/nodes/tests
  copying tables/tests/indexes_2_0.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/itemsize.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/smpl_SDSextendible.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/smpl_i32le.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/python2.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/python3.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/elink2.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/array_mdatom.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/smpl_i64le.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/smpl_enum.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/indexes_2_1.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/Tables_lzo2.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/issue_368.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/time-table-vlarray-1_x.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/zerodim-attrs-1.4.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/Tables_lzo1_shuffle.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/times-nested-be.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/scalar.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/smpl_f64be.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/non-chunked-table.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/float.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/Table2_1_lzo_nrv2e_shuffle.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/issue_560.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/smpl_f64le.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/bug-idx.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/nested-type-with-gaps.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/elink.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/Tables_lzo1.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_szip.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/Tables_lzo2_shuffle.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/slink.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/zerodim-attrs-1.3.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/flavored_vlarrays-format1.6.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/smpl_i64be.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/smpl_unsupptype.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/oldflavor_numeric.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/attr-u16.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/idx-std-1.x.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/vlstr_attr.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/smpl_compound_chunked.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/vlunicode_endian.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/blosc_bigendian.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/ex-noattr.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/smpl_i32be.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_ref_array1.mat -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/test_ref_array2.mat -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/tests/matlab_file.mat -> build/lib.macosx-11-x86_64-3.9/tables/tests
  copying tables/nodes/tests/test_filenode.dat -> build/lib.macosx-11-x86_64-3.9/tables/nodes/tests
  copying tables/nodes/tests/test_filenode.xbm -> build/lib.macosx-11-x86_64-3.9/tables/nodes/tests
  copying tables/nodes/tests/test_filenode_v1.h5 -> build/lib.macosx-11-x86_64-3.9/tables/nodes/tests
  running build_ext
  building 'tables.utilsextension' extension
  creating build/temp.macosx-11-x86_64-3.9
  creating build/temp.macosx-11-x86_64-3.9/hdf5-blosc
  creating build/temp.macosx-11-x86_64-3.9/hdf5-blosc/src
  creating build/temp.macosx-11-x86_64-3.9/src
  creating build/temp.macosx-11-x86_64-3.9/tables
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG=1 -DHAVE_BLOSC_LIB=1 -Ihdf5-blosc/src -I/usr/local/include -I/sw/include -I/opt/include -I/opt/local/include -I/usr/include -I/include -I/usr/local/Cellar/c-blosc/1.21.0/include -I/usr/local/lib/python3.9/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python@3.9/3.9.1_4/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c hdf5-blosc/src/blosc_filter.c -o build/temp.macosx-11-x86_64-3.9/hdf5-blosc/src/blosc_filter.o -Isrc -DH5_USE_18_API -DH5Acreate_vers=2 -DH5Aiterate_vers=2 -DH5Dcreate_vers=2 -DH5Dopen_vers=2 -DH5Eclear_vers=2 -DH5Eprint_vers=2 -DH5Epush_vers=2 -DH5Eset_auto_vers=2 -DH5Eget_auto_vers=2 -DH5Ewalk_vers=2 -DH5E_auto_t_vers=2 -DH5Gcreate_vers=2 -DH5Gopen_vers=2 -DH5Pget_filter_vers=2 -DH5Pget_filter_by_id_vers=2 -DH5Tarray_create_vers=2 -DH5Tget_array_dims_vers=2 -DH5Z_class_t_vers=2
  clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11'
  error: command '/usr/bin/clang' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for tables
  Running setup.py clean for tables
Failed to build tables
Installing collected packages: tables
    Running setup.py install for tables ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/sv/f00rtph94cj0k1ntrvxxpsnh0000gn/T/pip-install-pabgwm9h/tables_d2bf2083e4874fdd86cf36dd19131197/setup.py'"'"'; __file__='"'"'/private/var/folders/sv/f00rtph94cj0k1ntrvxxpsnh0000gn/T/pip-install-pabgwm9h/tables_d2bf2083e4874fdd86cf36dd19131197/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/sv/f00rtph94cj0k1ntrvxxpsnh0000gn/T/pip-record-5z4n97qi/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/tables
         cwd: /private/var/folders/sv/f00rtph94cj0k1ntrvxxpsnh0000gn/T/pip-install-pabgwm9h/tables_d2bf2083e4874fdd86cf36dd19131197/
    Complete output (161 lines):
    * Using Python 3.9.1 (default, Dec 29 2020, 09:45:39)
    * USE_PKGCONFIG: True
    * Found HDF5 headers at ``/usr/local/include``, library at ``/usr/local/lib``.
    clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11'
    * Could not find LZO 2 headers and library; disabling support for it.
    clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11'
    * Could not find LZO 1 headers and library; disabling support for it.
    clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11'
    * Could not find bzip2 headers and library; disabling support for it.
    * pkg-config header dirs for blosc: /usr/local/Cellar/c-blosc/1.21.0/include
    * pkg-config library dirs for blosc: /usr/local/Cellar/c-blosc/1.21.0/lib
    * Found blosc headers at ``/usr/local/Cellar/c-blosc/1.21.0/include``, library at ``/usr/local/Cellar/c-blosc/1.21.0/lib``.
    /usr/local/Cellar/python@3.9/3.9.1_4/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'extra_require'
      warnings.warn(msg)
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-11-x86_64-3.9
    creating build/lib.macosx-11-x86_64-3.9/tables
    copying tables/link.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/description.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/index.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/attributeset.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/registry.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/leaf.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/carray.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/__init__.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/unimplemented.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/req_versions.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/conditions.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/file.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/indexes.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/utils.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/undoredo.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/group.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/parameters.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/exceptions.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/table.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/idxutils.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/node.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/array.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/path.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/expression.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/atom.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/filters.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/earray.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/vlarray.py -> build/lib.macosx-11-x86_64-3.9/tables
    copying tables/flavor.py -> build/lib.macosx-11-x86_64-3.9/tables
    creating build/lib.macosx-11-x86_64-3.9/tables/misc
    copying tables/misc/__init__.py -> build/lib.macosx-11-x86_64-3.9/tables/misc
    copying tables/misc/proxydict.py -> build/lib.macosx-11-x86_64-3.9/tables/misc
    copying tables/misc/enum.py -> build/lib.macosx-11-x86_64-3.9/tables/misc
    creating build/lib.macosx-11-x86_64-3.9/tables/nodes
    copying tables/nodes/__init__.py -> build/lib.macosx-11-x86_64-3.9/tables/nodes
    copying tables/nodes/filenode.py -> build/lib.macosx-11-x86_64-3.9/tables/nodes
    creating build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_utils.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_tree.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_all.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_basics.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_tables.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_expression.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/check_leaks.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_do_undo.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_timetype.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_backcompat.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_array.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_aux.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/__init__.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_earray.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/create_backcompat_indexes.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_index_backcompat.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/common.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_timestamps.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_queries.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_suite.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_lists.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_create.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_indexes.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_indexvalues.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_vlarray.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_garbage.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_tablesMD.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_carray.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_links.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_numpy.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_hdf5compat.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_attributes.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_types.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_enum.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_nestedtypes.py -> build/lib.macosx-11-x86_64-3.9/tables/tests
    creating build/lib.macosx-11-x86_64-3.9/tables/scripts
    copying tables/scripts/ptrepack.py -> build/lib.macosx-11-x86_64-3.9/tables/scripts
    copying tables/scripts/pttree.py -> build/lib.macosx-11-x86_64-3.9/tables/scripts
    copying tables/scripts/__init__.py -> build/lib.macosx-11-x86_64-3.9/tables/scripts
    copying tables/scripts/pt2to3.py -> build/lib.macosx-11-x86_64-3.9/tables/scripts
    copying tables/scripts/ptdump.py -> build/lib.macosx-11-x86_64-3.9/tables/scripts
    creating build/lib.macosx-11-x86_64-3.9/tables/nodes/tests
    copying tables/nodes/tests/__init__.py -> build/lib.macosx-11-x86_64-3.9/tables/nodes/tests
    copying tables/nodes/tests/test_filenode.py -> build/lib.macosx-11-x86_64-3.9/tables/nodes/tests
    copying tables/tests/indexes_2_0.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/itemsize.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/smpl_SDSextendible.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/smpl_i32le.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/python2.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/python3.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/elink2.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/array_mdatom.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/smpl_i64le.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/smpl_enum.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/indexes_2_1.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/Tables_lzo2.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/issue_368.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/time-table-vlarray-1_x.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/zerodim-attrs-1.4.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/Tables_lzo1_shuffle.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/times-nested-be.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/scalar.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/smpl_f64be.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/non-chunked-table.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/float.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/Table2_1_lzo_nrv2e_shuffle.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/issue_560.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/smpl_f64le.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/bug-idx.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/nested-type-with-gaps.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/elink.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/Tables_lzo1.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_szip.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/Tables_lzo2_shuffle.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/slink.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/zerodim-attrs-1.3.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/flavored_vlarrays-format1.6.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/smpl_i64be.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/smpl_unsupptype.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/oldflavor_numeric.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/attr-u16.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/idx-std-1.x.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/vlstr_attr.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/smpl_compound_chunked.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/vlunicode_endian.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/blosc_bigendian.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/ex-noattr.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/smpl_i32be.h5 -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_ref_array1.mat -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/test_ref_array2.mat -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/tests/matlab_file.mat -> build/lib.macosx-11-x86_64-3.9/tables/tests
    copying tables/nodes/tests/test_filenode.dat -> build/lib.macosx-11-x86_64-3.9/tables/nodes/tests
    copying tables/nodes/tests/test_filenode.xbm -> build/lib.macosx-11-x86_64-3.9/tables/nodes/tests
    copying tables/nodes/tests/test_filenode_v1.h5 -> build/lib.macosx-11-x86_64-3.9/tables/nodes/tests
    running build_ext
    building 'tables.utilsextension' extension
    creating build/temp.macosx-11-x86_64-3.9
    creating build/temp.macosx-11-x86_64-3.9/hdf5-blosc
    creating build/temp.macosx-11-x86_64-3.9/hdf5-blosc/src
    creating build/temp.macosx-11-x86_64-3.9/src
    creating build/temp.macosx-11-x86_64-3.9/tables
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG=1 -DHAVE_BLOSC_LIB=1 -Ihdf5-blosc/src -I/usr/local/include -I/sw/include -I/opt/include -I/opt/local/include -I/usr/include -I/include -I/usr/local/Cellar/c-blosc/1.21.0/include -I/usr/local/lib/python3.9/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python@3.9/3.9.1_4/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c hdf5-blosc/src/blosc_filter.c -o build/temp.macosx-11-x86_64-3.9/hdf5-blosc/src/blosc_filter.o -Isrc -DH5_USE_18_API -DH5Acreate_vers=2 -DH5Aiterate_vers=2 -DH5Dcreate_vers=2 -DH5Dopen_vers=2 -DH5Eclear_vers=2 -DH5Eprint_vers=2 -DH5Epush_vers=2 -DH5Eset_auto_vers=2 -DH5Eget_auto_vers=2 -DH5Ewalk_vers=2 -DH5E_auto_t_vers=2 -DH5Gcreate_vers=2 -DH5Gopen_vers=2 -DH5Pget_filter_vers=2 -DH5Pget_filter_by_id_vers=2 -DH5Tarray_create_vers=2 -DH5Tget_array_dims_vers=2 -DH5Z_class_t_vers=2
    clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11'
    error: command '/usr/bin/clang' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/sv/f00rtph94cj0k1ntrvxxpsnh0000gn/T/pip-install-pabgwm9h/tables_d2bf2083e4874fdd86cf36dd19131197/setup.py'"'"'; __file__='"'"'/private/var/folders/sv/f00rtph94cj0k1ntrvxxpsnh0000gn/T/pip-install-pabgwm9h/tables_d2bf2083e4874fdd86cf36dd19131197/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/sv/f00rtph94cj0k1ntrvxxpsnh0000gn/T/pip-record-5z4n97qi/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/tables Check the logs for full command output.

If it helps, had the same problem when tried to install tables in a venv and tried every possible solution listed here and elsewhere without success. Also tried to install tables with brew without success. Today I tried one more time with

python3 -m pip install tables

and it worked. No explanation to it whatsoever as, if memory serves me well (because I’ve been working on this for almost two weeks) I am pretty sure I tried with pip and pip3 with no success.

Hope this helps in the future.

P.S. I have a M2 Mac and py3.11.5

I worked around the use of pytables in my python code base by replacing x.to_hdf( ) with x.to_pickle( ). Saved files are smaller and the code is faster.

I also verified that on the Intel machine in which pytables fails with a run-time crash, h5py works just fine for creating and reading hdf5 files. So, this means that hdf5 installation under brew works for h5py but not for pytables.

Moreover, h5py.run_tests() also crashes when running tables.openfile( ) with the same crash on hdf5 version mismatch. Using

HDF5_VERSION=1.12.1 pip install --no-binary=h5py h5py 

fixed the crash in h5py.runt_tests() in tables.openfile().

Now I am on Mac OS 11.5.2, Homebrew version 3.2.6 Python version 3.9.6.

pip3 install tables. works fine after

brew install hdf5
brew install c-blosc

Homebrew reports hdf5 version 1.12.1, c-blosc version 1.20.1. Components of hdf5 work fine in other software packages under brew (octave version 3.6.3). Yet, tables reports linking to hdf5 version 1.12.0 and crashes at runtime.

See #903

@avalentino,

I reinstalled using brew but issue isn’t solved.

Log of reinstallation using brew:

brew reinstall python hdf5
==> Downloading https://homebrew.bintray.com/bottles/python%403.9-3.9.1_5.big_sur.bottle.tar.gz
Already downloaded: /Users/michel/Library/Caches/Homebrew/downloads/d4dd56aba32136b38e111fc03b2fafd67529986735c535cce50ce274acbe88bd--python@3.9-3.9.1_5.big_sur.bottle.tar.gz
==> Reinstalling python@3.9
==> Pouring python@3.9-3.9.1_5.big_sur.bottle.tar.gz
==> /usr/local/Cellar/python@3.9/3.9.1_5/bin/python3 -m ensurepip
==> /usr/local/Cellar/python@3.9/3.9.1_5/bin/pip3 install -v --global-option=--no-user-cfg --install-option=--force --install-option=--single-version-externally-managed --install-option=--record=installed.txt --upgrade --target=/usr/loc
==> /usr/local/Cellar/python@3.9/3.9.1_5/bin/pip3 wheel --wheel-dir=/usr/local/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/ensurepip/_bundled /usr/local/Cellar/python@3.9/3.9.1_5/libexec/setuptools /
==> Caveats
Python has been installed as
  /usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /usr/local/opt/python@3.9/libexec/bin

You can install Python packages with
  pip3 install <package>
They will install into the site-package directory
  /usr/local/lib/python3.9/site-packages

See: https://docs.brew.sh/Homebrew-and-Python
==> Summary
🍺  /usr/local/Cellar/python@3.9/3.9.1_5: 3,932 files, 65.4MB
==> Downloading https://homebrew.bintray.com/bottles/hdf5-1.12.0_1.big_sur.bottle.1.tar.gz
Already downloaded: /Users/michel/Library/Caches/Homebrew/downloads/ce35a8710ef7c35b8e61c4a0a8cc881ac43d55546ee082354e18f51af26212a5--hdf5-1.12.0_1.big_sur.bottle.1.tar.gz
==> Reinstalling hdf5
==> Pouring hdf5-1.12.0_1.big_sur.bottle.1.tar.gz
🍺  /usr/local/Cellar/hdf5/1.12.0_1: 268 files, 16.9MB
==> Caveats
==> python@3.9
Python has been installed as
  /usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /usr/local/opt/python@3.9/libexec/bin

You can install Python packages with
  pip3 install <package>
They will install into the site-package directory
  /usr/local/lib/python3.9/site-packages

See: https://docs.brew.sh/Homebrew-and-Python

Dear @sunilshah,

I believe this is related to the switch to clang 12 starting with macOS 10.15 (Catalina), see also https://github.com/microsoft/jericho/issues/37 and https://github.com/kaldi-asr/kaldi/issues/4155.

Maybe you can apply the gist how @FrancescAlted fixed this with https://github.com/Blosc/c-blosc/commit/5fc66f7cdcff969b47332ed843be5f344a5543cc and https://github.com/Blosc/c-blosc/commit/406f5960da86f0932bd3609dae0bc70d5c785919, originally coming from https://github.com/Blosc/python-blosc/issues/229 by @xytxytxyt.

With kind regards, Andreas.