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

MacOs poetry install of tensorflow failing #1617

Open
ricoms opened this issue Jan 22, 2022 · 21 comments
Open

MacOs poetry install of tensorflow failing #1617

ricoms opened this issue Jan 22, 2022 · 21 comments

Comments

@ricoms
Copy link

ricoms commented Jan 22, 2022

Hello

I'm trying to install tensorflow on MacOs with poetry and I get the following error:

Unable to find installation candidates for tensorflow-io-gcs-filesystem (0.23.1)

For a more complete view (I hope) here is the operation and full log:

» poetry add tensorflow          
Using version ^2.7.0 for tensorflow

Updating dependencies
Resolving dependencies... (1.2s)

Writing lock file

Package operations: 31 installs, 0 updates, 0 removals

  • Installing pyasn1 (0.4.8)
  • Installing cachetools (5.0.0)
  • Installing oauthlib (3.1.1)
  • Installing pyasn1-modules (0.2.8)
  • Installing rsa (4.8)
  • Installing zipp (3.7.0)
  • Installing google-auth (2.4.0)
  • Installing importlib-metadata (4.10.1)
  • Installing requests-oauthlib (1.3.0)
  • Installing absl-py (1.0.0)
  • Installing google-auth-oauthlib (0.4.6)
  • Installing grpcio (1.43.0)
  • Installing markdown (3.3.6)
  • Installing tensorboard-data-server (0.6.1)
  • Installing tensorboard-plugin-wit (1.8.1)
  • Installing werkzeug (2.0.2)
  • Installing astunparse (1.6.3): Pending...
  • Installing flatbuffers (2.0): Pending...
  • Installing gast (0.4.0): Pending...
  • Installing google-pasta (0.2.0): Pending...
  • Installing h5py (3.6.0): Pending...
  • Installing keras (2.7.0): Pending...
  • Installing keras-preprocessing (1.1.2): Pending...
  • Installing libclang (12.0.0): Pending...
  • Installing opt-einsum (3.3.0): Pending...
  • Installing gast (0.4.0): Pending...
  • Installing google-pasta (0.2.0): Pending...
  • Installing h5py (3.6.0): Pending...
  • Installing keras (2.7.0): Pending...
  • Installing keras-preprocessing (1.1.2): Pending...
  • Installing libclang (12.0.0): Pending...
  • Installing opt-einsum (3.3.0): Pending...
  • Installing flatbuffers (2.0): Installing...
  • Installing gast (0.4.0): Pending...
  • Installing google-pasta (0.2.0): Pending...
  • Installing h5py (3.6.0): Pending...
  • Installing keras (2.7.0): Pending...
  • Installing keras-preprocessing (1.1.2): Pending...
  • Installing libclang (12.0.0): Pending...
  • Installing opt-einsum (3.3.0): Pending...
  • Installing flatbuffers (2.0): Installing...
  • Installing gast (0.4.0): Pending...
  • Installing google-pasta (0.2.0): Pending...
  • Installing h5py (3.6.0): Pending...
  • Installing keras (2.7.0): Pending...
  • Installing keras-preprocessing (1.1.2): Pending...
  • Installing libclang (12.0.0): Pending...
  • Installing opt-einsum (3.3.0): Pending...
  • Installing astunparse (1.6.3): Installing...
  • Installing flatbuffers (2.0): Installing...
  • Installing gast (0.4.0): Pending...
  • Installing google-pasta (0.2.0): Pending...
  • Installing h5py (3.6.0): Pending...
  • Installing keras (2.7.0): Pending...
  • Installing keras-preprocessing (1.1.2): Pending...
  • Installing libclang (12.0.0): Pending...
  • Installing opt-einsum (3.3.0): Pending...
  • Installing h5py (3.6.0): Pending...
  • Installing keras (2.7.0): Pending...
  • Installing keras-preprocessing (1.1.2): Pending...
  • Installing libclang (12.0.0): Pending...
  • Installing opt-einsum (3.3.0): Pending...
  • Installing google-pasta (0.2.0): Installing...
  • Installing h5py (3.6.0): Pending...
  • Installing keras (2.7.0): Pending...
  • Installing keras-preprocessing (1.1.2): Pending...
  • Installing libclang (12.0.0): Pending...
  • Installing opt-einsum (3.3.0): Pending...
  • Installing opt-einsum (3.3.0): Installing...
  • Installing libclang (12.0.0): Pending...
  • Installing opt-einsum (3.3.0): Installing...
  • Installing keras-preprocessing (1.1.2): Installing...
  • Installing libclang (12.0.0): Pending...
  • Installing opt-einsum (3.3.0): Installing...
  • Installing keras (2.7.0): Pending...
  • Installing keras-preprocessing (1.1.2): Installing...
  • Installing libclang (12.0.0): Pending...
  • Installing opt-einsum (3.3.0): Installing...
  • Installing h5py (3.6.0): Installing...
  • Installing keras (2.7.0): Pending...
  • Installing keras-preprocessing (1.1.2): Installing...
  • Installing libclang (12.0.0): Pending...
  • Installing opt-einsum (3.3.0): Installing...
  • Installing keras-preprocessing (1.1.2): Installing...
  • Installing libclang (12.0.0): Pending...
  • Installing opt-einsum (3.3.0): Installing...
  • Installing keras (2.7.0): Installing...
  • Installing keras-preprocessing (1.1.2): Installing...
  • Installing libclang (12.0.0): Pending...
  • Installing opt-einsum (3.3.0): Installing...
  • Installing opt-einsum (3.3.0): Installing...
  • Installing libclang (12.0.0): Installing...
  • Installing opt-einsum (3.3.0): Installing...
  • Installing tensorboard (2.8.0): Installing...
  • Installing google-pasta (0.2.0): Installing...
  • Installing h5py (3.6.0): Installing...
  • Installing keras (2.7.0): Installing...
  • Installing keras-preprocessing (1.1.2): Installing...
  • Installing libclang (12.0.0): Installing...
  • Installing opt-einsum (3.3.0): Installing...
  • Installing tensorboard (2.8.0): Installing...
  • Installing gast (0.4.0): Installing...
  • Installing google-pasta (0.2.0): Installing...
  • Installing h5py (3.6.0): Installing...
  • Installing keras (2.7.0): Installing...
  • Installing keras-preprocessing (1.1.2): Installing...
  • Installing libclang (12.0.0): Installing...
  • Installing opt-einsum (3.3.0): Installing...
  • Installing tensorboard (2.8.0): Installing...
  • Installing flatbuffers (2.0): Installing...
  • Installing gast (0.4.0): Installing...
  • Installing google-pasta (0.2.0): Installing...
  • Installing h5py (3.6.0): Installing...
  • Installing keras (2.7.0): Installing...
  • Installing keras-preprocessing (1.1.2): Installing...
  • Installing libclang (12.0.0): Installing...
  • Installing opt-einsum (3.3.0): Installing...
  • Installing tensorboard (2.8.0): Installing...
  • Installing astunparse (1.6.3)
  • Installing flatbuffers (2.0): Installing...
  • Installing gast (0.4.0): Installing...
  • Installing google-pasta (0.2.0): Installing...
  • Installing h5py (3.6.0): Installing...
  • Installing keras (2.7.0): Installing...
  • Installing keras-preprocessing (1.1.2): Installing...
  • Installing libclang (12.0.0): Installing...
  • Installing opt-einsum (3.3.0): Installing...
  • Installing tensorboard (2.8.0): Installing...
  • Installing tensorflow-estimator (2.7.0): Installing...
  • Installing h5py (3.6.0): Installing...
  • Installing keras (2.7.0): Installing...
  • Installing keras-preprocessing (1.1.2): Installing...
  • Installing libclang (12.0.0): Installing...
  • Installing opt-einsum (3.3.0): Installing...
  • Installing tensorboard (2.8.0): Installing...
  • Installing tensorflow-estimator (2.7.0): Installing...
  • Installing google-pasta (0.2.0)
  • Installing h5py (3.6.0): Installing...
  • Installing keras (2.7.0): Installing...
  • Installing keras-preprocessing (1.1.2): Installing...
  • Installing libclang (12.0.0): Installing...
  • Installing opt-einsum (3.3.0): Installing...
  • Installing tensorboard (2.8.0): Installing...
  • Installing tensorflow-estimator (2.7.0): Installing...
  • Installing gast (0.4.0): Installing...
  • Installing google-pasta (0.2.0)
  • Installing h5py (3.6.0): Installing...
  • Installing keras (2.7.0): Installing...
  • Installing keras-preprocessing (1.1.2): Installing...
  • Installing libclang (12.0.0): Installing...
  • Installing opt-einsum (3.3.0): Installing...
  • Installing tensorboard (2.8.0): Installing...
  • Installing tensorflow-estimator (2.7.0): Installing...
  • Installing flatbuffers (2.0)
  • Installing gast (0.4.0): Installing...
  • Installing google-pasta (0.2.0)
  • Installing h5py (3.6.0): Installing...
  • Installing keras (2.7.0): Installing...
  • Installing keras-preprocessing (1.1.2): Installing...
  • Installing libclang (12.0.0): Installing...
  • Installing opt-einsum (3.3.0): Installing...
  • Installing tensorboard (2.8.0): Installing...
  • Installing tensorflow-estimator (2.7.0): Installing...
  • Installing tensorboard (2.8.0): Installing...
  • Installing tensorflow-estimator (2.7.0): Installing...
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0): Installing...
  • Installing tensorflow-estimator (2.7.0): Installing...
  • Installing libclang (12.0.0): Installing...
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0): Installing...
  • Installing tensorflow-estimator (2.7.0): Installing...
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0): Installing...
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0): Installing...
  • Installing tensorflow-estimator (2.7.0): Installing...
  • Installing google-pasta (0.2.0)
  • Installing h5py (3.6.0): Installing...
  • Installing keras (2.7.0): Installing...
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0): Installing...
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0): Installing...
  • Installing tensorflow-estimator (2.7.0): Installing...
  • Installing gast (0.4.0)
  • Installing google-pasta (0.2.0)
  • Installing h5py (3.6.0): Installing...
  • Installing keras (2.7.0): Installing...
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0): Installing...
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0): Installing...
  • Installing tensorflow-estimator (2.7.0): Installing...
  • Installing tensorflow-estimator (2.7.0)
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0): Installing...
  • Installing tensorflow-estimator (2.7.0)
  • Installing libclang (12.0.0)
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0): Installing...
  • Installing tensorflow-estimator (2.7.0)
  • Installing tensorflow-estimator (2.7.0)
  • Installing tensorboard (2.8.0)
  • Installing tensorflow-estimator (2.7.0)
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0)
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0)
  • Installing tensorflow-estimator (2.7.0)
  • Installing keras (2.7.0)
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0)
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0)
  • Installing tensorflow-estimator (2.7.0)
  • Installing keras (2.7.0)
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0)
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0)
  • Installing tensorflow-estimator (2.7.0)
  • Installing h5py (3.6.0): Failed
  • Installing keras (2.7.0)
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0)
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0)
  • Installing tensorflow-estimator (2.7.0)

  • Installing keras (2.7.0)
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0)
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0)
  • Installing tensorflow-estimator (2.7.0)
  EnvCommandError
  • Installing keras (2.7.0)
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0)
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0)
  • Installing tensorflow-estimator (2.7.0)

  • Installing keras (2.7.0)
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0)
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0)
  • Installing tensorflow-estimator (2.7.0)
  Command ['/Users/ricardosavii/Library/Caches/pypoetry/virtualenvs/recsys-experimentation-p4tsPwsS-py3.9/bin/pip', 'install', '--no-deps', 'file:///Users/ricardosavii/Library/Caches/pypoetry/artifacts/c2/ba/1e/f21554c9352a9da1bce7cc94ea2a3c793e11e4cd6482cc32891246fd76/h5py-3.6.0.tar.gz'] errored with the following return code 1, and output: 
  Processing /Users/ricardosavii/Library/Caches/pypoetry/artifacts/c2/ba/1e/f21554c9352a9da1bce7cc94ea2a3c793e11e4cd6482cc32891246fd76/h5py-3.6.0.tar.gz
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
      Preparing wheel metadata: started
      Preparing wheel metadata: finished with status 'done'
  Building wheels for collected packages: h5py
    Building wheel for h5py (PEP 517): started
    Building wheel for h5py (PEP 517): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /Users/ricardosavii/Library/Caches/pypoetry/virtualenvs/recsys-experimentation-p4tsPwsS-py3.9/bin/python /Users/ricardosavii/Library/Caches/pypoetry/virtualenvs/recsys-experimentation-p4tsPwsS-py3.9/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /var/folders/q0/vs7566mx0v9b77h9v4w929jr0000gn/T/tmpkf3p8jo0
         cwd: /private/var/folders/q0/vs7566mx0v9b77h9v4w929jr0000gn/T/pip-req-build-3803ipxi
    Complete output (71 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.macosx-12-arm64-3.9
    creating build/lib.macosx-12-arm64-3.9/h5py
    copying h5py/h5py_warnings.py -> build/lib.macosx-12-arm64-3.9/h5py
    copying h5py/version.py -> build/lib.macosx-12-arm64-3.9/h5py
    copying h5py/__init__.py -> build/lib.macosx-12-arm64-3.9/h5py
    copying h5py/ipy_completer.py -> build/lib.macosx-12-arm64-3.9/h5py
    creating build/lib.macosx-12-arm64-3.9/h5py/_hl
    copying h5py/_hl/files.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
    copying h5py/_hl/compat.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
    copying h5py/_hl/__init__.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
    copying h5py/_hl/selections.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
    copying h5py/_hl/dataset.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
    copying h5py/_hl/vds.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
    copying h5py/_hl/selections2.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
    copying h5py/_hl/group.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
    copying h5py/_hl/datatype.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
    copying h5py/_hl/attrs.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
    copying h5py/_hl/dims.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
    copying h5py/_hl/base.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
    copying h5py/_hl/filters.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
    creating build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_dimension_scales.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_attribute_create.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_file_image.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/conftest.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_h5d_direct_chunk.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_h5f.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_dataset_getitem.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_group.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_errors.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_dataset_swmr.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_slicing.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_h5pl.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_attrs.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/__init__.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_attrs_data.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_h5t.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_big_endian_file.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_h5p.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_dims_dimensionproxy.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_h5o.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_datatype.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/common.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_dataset.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_file.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_selections.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_dtype.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_h5.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_file2.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_completions.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_filters.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_base.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    copying h5py/tests/test_objects.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
    creating build/lib.macosx-12-arm64-3.9/h5py/tests/data_files
    copying h5py/tests/data_files/__init__.py -> build/lib.macosx-12-arm64-3.9/h5py/tests/data_files
    creating build/lib.macosx-12-arm64-3.9/h5py/tests/test_vds
    copying h5py/tests/test_vds/test_highlevel_vds.py -> build/lib.macosx-12-arm64-3.9/h5py/tests/test_vds
    copying h5py/tests/test_vds/test_virtual_source.py -> build/lib.macosx-12-arm64-3.9/h5py/tests/test_vds
    copying h5py/tests/test_vds/__init__.py -> build/lib.macosx-12-arm64-3.9/h5py/tests/test_vds
    copying h5py/tests/test_vds/test_lowlevel_vds.py -> build/lib.macosx-12-arm64-3.9/h5py/tests/test_vds
    copying h5py/tests/data_files/vlen_string_s390x.h5 -> build/lib.macosx-12-arm64-3.9/h5py/tests/data_files
    copying h5py/tests/data_files/vlen_string_dset_utc.h5 -> build/lib.macosx-12-arm64-3.9/h5py/tests/data_files
    copying h5py/tests/data_files/vlen_string_dset.h5 -> build/lib.macosx-12-arm64-3.9/h5py/tests/data_files
    running build_ext
    Loading library to get build settings and version: libhdf5.dylib
    error: Unable to load dependency HDF5, make sure HDF5 is installed properly
    error: dlopen(libhdf5.dylib, 0x0006): tried: '/opt/homebrew/lib/libhdf5.dylib' (no such file), '/opt/homebrew/lib/libhdf5.dylib' (no such file), 'libhdf5.dylib' (no such file), '/usr/local/lib/libhdf5.dylib' (no such file), '/usr/lib/libhdf5.dylib' (no such file), '/private/var/folders/q0/vs7566mx0v9b77h9v4w929jr0000gn/T/pip-req-build-3803ipxi/libhdf5.dylib' (no such file), '/usr/local/lib/libhdf5.dylib' (no such file), '/usr/lib/libhdf5.dylib' (no such file)
    ----------------------------------------
    ERROR: Failed building wheel for h5py
  Failed to build h5py
  ERROR: Could not build wheels for h5py which use PEP 517 and cannot be installed directly
  WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
  You should consider upgrading via the '/Users/ricardosavii/Library/Caches/pypoetry/virtualenvs/recsys-experimentation-p4tsPwsS-py3.9/bin/python -m pip install --upgrade pip' command.
  
  • Installing keras (2.7.0)
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0)
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0)
  • Installing tensorflow-estimator (2.7.0)

  • Installing keras (2.7.0)
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0)
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0)
  • Installing tensorflow-estimator (2.7.0)
  at ~/.poetry/lib/poetry/utils/env.py:1183 in _run
  • Installing keras (2.7.0)
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0)
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0)
  • Installing tensorflow-estimator (2.7.0)
      1179│                 output = subprocess.check_output(
  • Installing keras (2.7.0)
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0)
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0)
  • Installing tensorflow-estimator (2.7.0)
      1180│                     cmd, stderr=subprocess.STDOUT, **kwargs
  • Installing keras (2.7.0)
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0)
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0)
  • Installing tensorflow-estimator (2.7.0)
      1181│                 )
  • Installing keras (2.7.0)
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0)
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0)
  • Installing tensorflow-estimator (2.7.0)
      1182│         except CalledProcessError as e:
  • Installing keras (2.7.0)
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0)
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0)
  • Installing tensorflow-estimator (2.7.0)
    → 1183│             raise EnvCommandError(e, input=input_)
  • Installing keras (2.7.0)
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0)
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0)
  • Installing tensorflow-estimator (2.7.0)
      1184│ 
  • Installing keras (2.7.0)
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0)
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0)
  • Installing tensorflow-estimator (2.7.0)
      1185│         return decode(output)
  • Installing keras (2.7.0)
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0)
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0)
  • Installing tensorflow-estimator (2.7.0)
      1186│ 
  • Installing keras (2.7.0)
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0)
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0)
  • Installing tensorflow-estimator (2.7.0)
      1187│     def execute(self, bin, *args, **kwargs):
  • Installing keras (2.7.0)
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0)
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0)
  • Installing tensorflow-estimator (2.7.0)

  • Installing keras (2.7.0)
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (12.0.0)
  • Installing opt-einsum (3.3.0)
  • Installing tensorboard (2.8.0)
  • Installing tensorflow-estimator (2.7.0)
  • Installing tensorflow-io-gcs-filesystem (0.23.1): Failed

  RuntimeError

  Unable to find installation candidates for tensorflow-io-gcs-filesystem (0.23.1)

  at ~/.poetry/lib/poetry/installation/chooser.py:72 in choose_for
       68│ 
       69│             links.append(link)
       70│ 
       71│         if not links:
    →  72│             raise RuntimeError(
       73│                 "Unable to find installation candidates for {}".format(package)
       74│             )
       75│ 
       76│         # Get the best link

  • Installing termcolor (1.1.0)
  • Installing wrapt (1.13.3)

Failed to add packages, reverting the pyproject.toml file to its original content.

I see that h5py also fails, I'll check that too. But I also notice that your Mac CI (Github) failed some hours ago.

@ricoms
Copy link
Author

ricoms commented Jan 22, 2022

I've solved the h5py installation issue. Trying to install tensorflow again I get the same error from tensorflow-io-gcs-filesystem installation.

@ricoms
Copy link
Author

ricoms commented Jan 22, 2022

I tested out installing previous versions of tensorflow-io-gcs-filesystem but had the same result.

@DrChrisLevy
Copy link

Same problem here. Have a Dockerfile and docker-compose I use at work.
Recently got a m1 mac and can not get the docker image built because of this same error.

#8 120.7   • Installing typed-ast (1.4.3)
#8 120.7
#8 120.7   RuntimeError
#8 120.7
#8 120.7   Unable to find installation candidates for tensorflow-io-gcs-filesystem (0.23.1)
#8 120.7
#8 120.7   at ~/.poetry/lib/poetry/installation/chooser.py:72 in choose_for
#8 120.7        68│
#8 120.7        69│             links.append(link)
#8 120.7        70│
#8 120.7        71│         if not links:
#8 120.7     →  72│             raise RuntimeError(
#8 120.7        73│                 "Unable to find installation candidates for {}".format(package)
#8 120.7        74│             )
#8 120.7        75│
#8 120.7        76│         # Get the best link
#8 120.7
#8 120.7   • Installing typeguard (2.12.1)
#8 120.8   • Installing typing (3.7.4.3)
#8 121.5   • Installing typing-extensions (3.7.4.3)
#8 121.6   • Installing uritemplate (3.0.1)
#8 121.7   • Installing wrapt (1.12.1)
#8 121.8   • Installing yarl (1.6.3)
#8 201.1
#8 201.1   EnvCommandError
#8 201.1
#8 201.1   Command ['/usr/local/bin/python3', '-m', 'pip', 'install', '--no-deps', '/root/.cache/pypoetry/artifacts/9f/65/95/75d38400e31af1c9a95bb847f0a3c83a3e0ae920797a284091ce7f0c4f/h5py-3.1.0.tar.gz'] errored with the following return code 1, and output:
#8 201.1   Processing /root/.cache/pypoetry/artifacts/9f/65/95/75d38400e31af1c9a95bb847f0a3c83a3e0ae920797a284091ce7f0c4f/h5py-3.1.0.tar.gz
#8 201.1     Installing build dependencies: started
#8 201.1     Installing build dependencies: finished with status 'done'
#8 201.1     Getting requirements to build wheel: started
#8 201.1     Getting requirements to build wheel: finished with status 'done'
#8 201.1     Installing backend dependencies: started
#8 201.1     Installing backend dependencies: still running...
#8 201.1     Installing backend dependencies: finished with status 'done'
#8 201.1       Preparing wheel metadata: started
#8 201.1       Preparing wheel metadata: finished with status 'done'
#8 201.1   Building wheels for collected packages: h5py
#8 201.1     Building wheel for h5py (PEP 517): started
#8 201.1     Building wheel for h5py (PEP 517): finished with status 'error'
#8 201.1     ERROR: Command errored out with exit status 1:
#8 201.1      command: /usr/local/bin/python3 /usr/local/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmp562_xdsp
#8 201.1          cwd: /tmp/pip-req-build-xsw5n3_z
#8 201.1     Complete output (69 lines):
#8 201.1     running bdist_wheel
#8 201.1     running build
#8 201.1     running build_py
#8 201.1     creating build
#8 201.1     creating build/lib.linux-aarch64-3.8
#8 201.1     creating build/lib.linux-aarch64-3.8/h5py
#8 201.1     copying h5py/h5py_warnings.py -> build/lib.linux-aarch64-3.8/h5py
#8 201.1     copying h5py/version.py -> build/lib.linux-aarch64-3.8/h5py
#8 201.1     copying h5py/ipy_completer.py -> build/lib.linux-aarch64-3.8/h5py
#8 201.1     copying h5py/__init__.py -> build/lib.linux-aarch64-3.8/h5py
#8 201.1     creating build/lib.linux-aarch64-3.8/h5py/_hl
#8 201.1     copying h5py/_hl/datatype.py -> build/lib.linux-aarch64-3.8/h5py/_hl
#8 201.1     copying h5py/_hl/group.py -> build/lib.linux-aarch64-3.8/h5py/_hl
#8 201.1     copying h5py/_hl/files.py -> build/lib.linux-aarch64-3.8/h5py/_hl
#8 201.1     copying h5py/_hl/selections2.py -> build/lib.linux-aarch64-3.8/h5py/_hl
#8 201.1     copying h5py/_hl/attrs.py -> build/lib.linux-aarch64-3.8/h5py/_hl
#8 201.1     copying h5py/_hl/dims.py -> build/lib.linux-aarch64-3.8/h5py/_hl
#8 201.1     copying h5py/_hl/filters.py -> build/lib.linux-aarch64-3.8/h5py/_hl
#8 201.1     copying h5py/_hl/selections.py -> build/lib.linux-aarch64-3.8/h5py/_hl
#8 201.1     copying h5py/_hl/vds.py -> build/lib.linux-aarch64-3.8/h5py/_hl
#8 201.1     copying h5py/_hl/compat.py -> build/lib.linux-aarch64-3.8/h5py/_hl
#8 201.1     copying h5py/_hl/dataset.py -> build/lib.linux-aarch64-3.8/h5py/_hl
#8 201.1     copying h5py/_hl/__init__.py -> build/lib.linux-aarch64-3.8/h5py/_hl
#8 201.1     copying h5py/_hl/base.py -> build/lib.linux-aarch64-3.8/h5py/_hl
#8 201.1     creating build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/conftest.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_big_endian_file.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/common.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_filters.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_h5d_direct_chunk.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_attribute_create.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_h5pl.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_dimension_scales.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_dataset_getitem.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_file.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_h5.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_attrs_data.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_selections.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_attrs.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_file2.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_h5t.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_h5p.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_completions.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_errors.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_group.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_dtype.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_datatype.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_dims_dimensionproxy.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_base.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_slicing.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_h5f.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_file_image.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_objects.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_dataset_swmr.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/__init__.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     copying h5py/tests/test_dataset.py -> build/lib.linux-aarch64-3.8/h5py/tests
#8 201.1     creating build/lib.linux-aarch64-3.8/h5py/tests/data_files
#8 201.1     copying h5py/tests/data_files/__init__.py -> build/lib.linux-aarch64-3.8/h5py/tests/data_files
#8 201.1     creating build/lib.linux-aarch64-3.8/h5py/tests/test_vds
#8 201.1     copying h5py/tests/test_vds/test_highlevel_vds.py -> build/lib.linux-aarch64-3.8/h5py/tests/test_vds
#8 201.1     copying h5py/tests/test_vds/test_lowlevel_vds.py -> build/lib.linux-aarch64-3.8/h5py/tests/test_vds
#8 201.1     copying h5py/tests/test_vds/test_virtual_source.py -> build/lib.linux-aarch64-3.8/h5py/tests/test_vds
#8 201.1     copying h5py/tests/test_vds/__init__.py -> build/lib.linux-aarch64-3.8/h5py/tests/test_vds
#8 201.1     copying h5py/tests/data_files/vlen_string_dset.h5 -> build/lib.linux-aarch64-3.8/h5py/tests/data_files
#8 201.1     copying h5py/tests/data_files/vlen_string_s390x.h5 -> build/lib.linux-aarch64-3.8/h5py/tests/data_files
#8 201.1     copying h5py/tests/data_files/vlen_string_dset_utc.h5 -> build/lib.linux-aarch64-3.8/h5py/tests/data_files
#8 201.1     running build_ext
#8 201.1     Building h5py requires pkg-config unless the HDF5 path is explicitly specified
#8 201.1     error: pkg-config probably not installed: FileNotFoundError(2, 'No such file or directory')
#8 201.1     ----------------------------------------
#8 201.1     ERROR: Failed building wheel for h5py
#8 201.1   Failed to build h5py
#8 201.1   ERROR: Could not build wheels for h5py which use PEP 517 and cannot be installed directly
#8 201.1   WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
#8 201.1   You should consider upgrading via the '/usr/local/bin/python3 -m pip install --upgrade pip' command.
#8 201.1
#8 201.1
#8 201.1   at ~/.poetry/lib/poetry/utils/env.py:1183 in _run
#8 201.2       1179│                 output = subprocess.check_output(
#8 201.2       1180│                     cmd, stderr=subprocess.STDOUT, **kwargs
#8 201.2       1181│                 )
#8 201.2       1182│         except CalledProcessError as e:
#8 201.2     → 1183│             raise EnvCommandError(e, input=input_)
#8 201.2       1184│
#8 201.2       1185│         return decode(output)
#8 201.2       1186│
#8 201.2       1187│     def execute(self, bin, *args, **kwargs):
#8 201.2
------
executor failed running [/bin/sh -c poetry config virtualenvs.create false         && poetry install]: exit code: 1

@zndr27
Copy link

zndr27 commented Feb 1, 2022

I'm also having this issue. But on Ubuntu not macOS.

@joaquincabezas
Copy link

I tested out installing previous versions of tensorflow-io-gcs-filesystem but had the same result.

I faced similar problems.

The hdf5 issue, I solved it using this SO answer

I was able to install tensorflow-io-gcs-filesystem following the instructions at #1298 (comment)

Then, I used tensorflow-macos at https://pypi.org/project/tensorflow-macos/

@oscar-defelice
Copy link

@joaquincabezas thank you! I followed your instructions, however I still get the same error with tensorflow-io-gcs-filesystem. Installed tensorflow io by the wheel, but then if I try to run poetry install I get the well known error

• Installing tensorflow-io-gcs-filesystem (0.26.0): Failed

  RuntimeError

  Unable to find installation candidates for tensorflow-io-gcs-filesystem (0.26.0)

  at ~/miniconda3/envs/tempr/lib/python3.9/site-packages/poetry/installation/chooser.py:72 in choose_for
       68│ 
       69│             links.append(link)
       70│ 
       71│         if not links:
    →  72│             raise RuntimeError(
       73│                 "Unable to find installation candidates for {}".format(package)
       74│             )
       75│ 
       76│         # Get the best link

@joaquincabezas
Copy link

Hi @oscar-defelice

the link I used was for 0.21, guess it should be similar but for 0.26 (check out also https://medium.com/dive-into-ml-ai/installing-tensorflow-natively-on-mac-m1-in-2022-1357e9b7a201).

Also I found some posts complaining about this for Python 3.8 but they were successfully installing it with Python 3.9. Which version are you using?

@half0wl
Copy link

half0wl commented Sep 5, 2022

I have the same issue when dockerizing an application that depends on tensorflow-io-gcs-filesystem, using an alpine base image:

#16 243.0   RuntimeError
#16 243.0
#16 243.0   Unable to find installation candidates for tensorflow-io-gcs-filesystem (0.26.0)
#16 243.0
#16 243.0   at /usr/local/lib/python3.10/site-packages/poetry/installation/chooser.py:72 in choose_for
#16 243.0        68│
#16 243.0        69│             links.append(link)
#16 243.0        70│
#16 243.0        71│         if not links:
#16 243.0     →  72│             raise RuntimeError(
#16 243.0        73│                 "Unable to find installation candidates for {}".format(package)
#16 243.0        74│             )
#16 243.0        75│
#16 243.0        76│         # Get the best link
#16 243.0

@GeorgeWillaman
Copy link

Still encountering this issue as well. Any updates?

@sanevillain
Copy link

I'm also experiencing this issue

@lukaskellerstein
Copy link

The same experience, any progress?

@nicky-lenaers
Copy link

Although this issue has MacOS in its title, I also run into this issue on WIndows.

@WilliamBonvini
Copy link

I've also the same problem on my Mac.

@daniloascione
Copy link

@joaquincabezas thank you! I followed your instructions, however I still get the same error with tensorflow-io-gcs-filesystem. Installed tensorflow io by the wheel, but then if I try to run poetry install I get the well known error

• Installing tensorflow-io-gcs-filesystem (0.26.0): Failed

  RuntimeError

  Unable to find installation candidates for tensorflow-io-gcs-filesystem (0.26.0)

  at ~/miniconda3/envs/tempr/lib/python3.9/site-packages/poetry/installation/chooser.py:72 in choose_for
       68│ 
       69│             links.append(link)
       70│ 
       71│         if not links:
    →  72│             raise RuntimeError(
       73│                 "Unable to find installation candidates for {}".format(package)
       74│             )
       75│ 
       76│         # Get the best link

Try building the wheel with python setup.py -q bdist_wheel --project tensorflow-io-gcs-filesystem

@Lef-F
Copy link

Lef-F commented Mar 7, 2023

I found documentation from Apple on setting up TensorFlow in Apple Silicon and x86 architectures: https://developer.apple.com/metal/tensorflow-plugin/

Can you test if this solves it for you?

@drydenb
Copy link

drydenb commented Mar 23, 2023

Also encountering this issue, advocating for a solution that is not platform dependent and/or changes the name of the dependency in pyproject.toml.

@jdkworld
Copy link

jdkworld commented Mar 30, 2023

I was also having this issue on Windows 10 while installing tensorflow-io-gcs-filesystem version 0.32.0.

In the end it worked after I did the following:

  1. pip install tensorflow-io-gcs-filesystem which resulted in the message Successfully installed tensorflow-io-gcs-filesystem-0.31.0
  2. poetry add tensorflow-io-gcs-filesystem==0.31.0
  3. and then I successfully installed the library I originally wanted to install: poetry add ydata-synthetic

Not sure if step 1 is absolutely necessary, maybe just using version 0.31.0 already does the trick.

I think there is a general problem with poetry and tensorflow, because I encountered more problems:

  1. It seemed as if tensorflow was correctly added to the poetry environment after I did poetry add tensorflow==2.11.0.
  2. However, I still got the module not found error on tensorflow
  3. running pip install tensorflow solved the problem

@MustofAhmed41
Copy link

I was also having this issue on Windows 10 while installing tensorflow-io-gcs-filesystem version 0.32.0. I was trying to install it for Flower Framework and got the same problem. For me, executing poetry add tensorflow-io-gcs-filesystem==0.31.0 before exectuing poetry install solved the problem.

@stefansjs
Copy link

I was also having this issues, and installing tensorflow-metal solved it for me:

poetry add 'tensorflow-metal; sys_platform == "darwin" and platform_machine == "arm64"'
poetry add 'tensorflow==2.10.0; platform_machine!="arm64"'

@eric-gitta-moore
Copy link

I'm Windows 10.
This work for me.

# lock tensorflow-io-gcs-filesystem version
poetry add tensorflow-io-gcs-filesystem==0.31.0
poetry add tensorflow==2.10.0

@walsha2
Copy link

walsha2 commented Jan 9, 2024

Seeing an odd issue with just getting tensorflow-io-gcs-filesystem to install on M3 Mac. At the time of this writing, the latest version on pypi is tensorflow-io-gcs-filesystem 0.35.0. Trying the following results in an error.

poetry add tensorflow-io-gcs-filesystem==0.35.0
  Installing tensorflow-io-gcs-filesystem (0.35.0): Failed
  RuntimeError
  Unable to find installation candidates for tensorflow-io-gcs-filesystem (0.35.0)

       6970links.append(link)
       7172if not links:
    →  73raise RuntimeError(f"Unable to find installation candidates for {package}")
       7475# Get the best link
       76chosen = max(links, key=lambda link: self._sort_key(package, link))
       77Cannot install tensorflow-io-gcs-filesystem.

However, simply changing to the previous version works fine:

poetry add tensorflow-io-gcs-filesystem==0.34.0

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