PyTables: blosc2 install directory not found

Hi, First of all thank you for building and maintaining this package!

I’ve encountered the following error while installing tables on MacOS:

Collecting tables
  Using cached tables-3.8.0.tar.gz (8.0 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [21 lines of output]
      Error in sitecustomize; set PYTHONVERBOSE for traceback:
      AssertionError:
      cpuinfo failed, assuming no CPU features: 'flags'
      * Using Python 3.10.9 (main, Dec 15 2022, 10:44:50) [Clang 14.0.0 (clang-1400.0.29.202)]
      * Found cython 0.29.32
      Traceback (most recent call last):
        File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
          main()
        File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/build_meta.py", line 320, in _get_build_requires
          self.run_setup()
        File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/build_meta.py", line 335, in run_setup
          exec(code, locals())
        File "<string>", line 265, in <module>
        File "<string>", line 132, in get_blosc2_directories
      NotADirectoryError: Install directory for blosc2 not found in /opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Setup: Python 3.10.9 (main, Dec 15 2022, 10:44:50) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin

blosc2 is installed and can be imported in python:

>>> blosc2.__path__
['/opt/homebrew/lib/python3.10/site-packages/blosc2']

It looks like the installer is looking for blosc2 in the wrong place, is there a way to point it to the right directory? Thanks a lot in advance!

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 26 (12 by maintainers)

Most upvoted comments

Thanks for checking, the b2env is indeed repeated. To clarify, running:

ls /Users/iwok/Documents/pytables_test/b2env/b2env/

yields:

bin        include    lib        pyvenv.cfg

Hi @avalentino, Thanks for a quick reply and the suggestion! Indeed this is an arm-based Mac. I am managing python packages with brew/pip and I am a bit weary of bringing conda into the mix, as it has caused me some problems in the past. But I guess there might be no other solution? In paralell, I’ve been building some ubuntu-based container and installing your package, no problems there.

Thanks a lot!