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

Issue building: No matching distribution found for fhir_bazel_pip_dependencies #7

Open
Lewis-E opened this issue Sep 1, 2020 · 2 comments

Comments

@Lewis-E
Copy link

Lewis-E commented Sep 1, 2020

Example error below:

~/bin/generate_definitions_and_protos.sh //proto/myprofile:myprofile
INFO: Repository fhir_bazel_pip_dependencies instantiated at:
  no stack (--record_rule_instantiation_callstack not enabled)
Repository rule pip_import defined at:
  /private/var/tmp/_bazel_emilylewis/6ed13ea54d141d16d801a31bd3ba8818/external/rules_python/python/pip.bzl:51:29: in <toplevel>
ERROR: An error occurred during the fetch of repository 'fhir_bazel_pip_dependencies':
   pip_import failed: Collecting apache_beam>=2.14.0 (from -r /private/var/tmp/_bazel_emilylewis/6ed13ea54d141d16d801a31bd3ba8818/external/com_google_fhir/bazel/requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/17/92/1975c3f3a880f409b1b06a600f9afab8569c9f1d65e2db56336dc0bae6a6/apache_beam-2.23.0-cp38-cp38-macosx_10_9_x86_64.whl
  Saved ./apache_beam-2.23.0-cp38-cp38-macosx_10_9_x86_64.whl
Collecting funcsigs (from -r /private/var/tmp/_bazel_emilylewis/6ed13ea54d141d16d801a31bd3ba8818/external/com_google_fhir/bazel/requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/69/cb/f5be453359271714c01b9bd06126eaf2e368f1fddfff30818754b5ac2328/funcsigs-1.0.2-py2.py3-none-any.whl
  Saved ./funcsigs-1.0.2-py2.py3-none-any.whl
Collecting google-cloud-bigquery (from -r /private/var/tmp/_bazel_emilylewis/6ed13ea54d141d16d801a31bd3ba8818/external/com_google_fhir/bazel/requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/41/2c/e4da0278a5fd8e71710cfded98c13a5ed2ecb66c704fc4feb3734e8c027d/google_cloud_bigquery-1.27.2-py2.py3-none-any.whl
  Saved ./google_cloud_bigquery-1.27.2-py2.py3-none-any.whl
Collecting nose>=1.3.7 (from -r /private/var/tmp/_bazel_emilylewis/6ed13ea54d141d16d801a31bd3ba8818/external/com_google_fhir/bazel/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/15/d8/dd071918c040f50fa1cf80da16423af51ff8ce4a0f2399b7bf8de45ac3d9/nose-1.3.7-py3-none-any.whl
  Saved ./nose-1.3.7-py3-none-any.whl
Collecting protobuf (from -r /private/var/tmp/_bazel_emilylewis/6ed13ea54d141d16d801a31bd3ba8818/external/com_google_fhir/bazel/requirements.txt (line 5))
  Using cached https://files.pythonhosted.org/packages/eb/79/feb55f5a6c8bd48d79beeb80c11299eb0d378c6df8ca0f33f91d8eda637b/protobuf-3.13.0-cp38-cp38-macosx_10_9_x86_64.whl
  Saved ./protobuf-3.13.0-cp38-cp38-macosx_10_9_x86_64.whl
Collecting python-dateutil>=2.8.1 (from -r /private/var/tmp/_bazel_emilylewis/6ed13ea54d141d16d801a31bd3ba8818/external/com_google_fhir/bazel/requirements.txt (line 6))
  Using cached https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl
  Saved ./python_dateutil-2.8.1-py2.py3-none-any.whl
Collecting request (from -r /private/var/tmp/_bazel_emilylewis/6ed13ea54d141d16d801a31bd3ba8818/external/com_google_fhir/bazel/requirements.txt (line 7))
 (  Could not find a version that satisfies the requirement request (from -r /private/var/tmp/_bazel_emilylewis/6ed13ea54d141d16d801a31bd3ba8818/external/com_google_fhir/bazel/requirements.txt (line 7)) (from versions: )
No matching distribution found for request (from -r /private/var/tmp/_bazel_emilylewis/6ed13ea54d141d16d801a31bd3ba8818/external/com_google_fhir/bazel/requirements.txt (line 7))
)
ERROR: no such package '@fhir_bazel_pip_dependencies//': pip_import failed: Collecting apache_beam>=2.14.0 (from -r /private/var/tmp/_bazel_emilylewis/6ed13ea54d141d16d801a31bd3ba8818/external/com_google_fhir/bazel/requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/17/92/1975c3f3a880f409b1b06a600f9afab8569c9f1d65e2db56336dc0bae6a6/apache_beam-2.23.0-cp38-cp38-macosx_10_9_x86_64.whl
  Saved ./apache_beam-2.23.0-cp38-cp38-macosx_10_9_x86_64.whl
Collecting funcsigs (from -r /private/var/tmp/_bazel_emilylewis/6ed13ea54d141d16d801a31bd3ba8818/external/com_google_fhir/bazel/requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/69/cb/f5be453359271714c01b9bd06126eaf2e368f1fddfff30818754b5ac2328/funcsigs-1.0.2-py2.py3-none-any.whl
  Saved ./funcsigs-1.0.2-py2.py3-none-any.whl
Collecting google-cloud-bigquery (from -r /private/var/tmp/_bazel_emilylewis/6ed13ea54d141d16d801a31bd3ba8818/external/com_google_fhir/bazel/requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/41/2c/e4da0278a5fd8e71710cfded98c13a5ed2ecb66c704fc4feb3734e8c027d/google_cloud_bigquery-1.27.2-py2.py3-none-any.whl
  Saved ./google_cloud_bigquery-1.27.2-py2.py3-none-any.whl
Collecting nose>=1.3.7 (from -r /private/var/tmp/_bazel_emilylewis/6ed13ea54d141d16d801a31bd3ba8818/external/com_google_fhir/bazel/requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/15/d8/dd071918c040f50fa1cf80da16423af51ff8ce4a0f2399b7bf8de45ac3d9/nose-1.3.7-py3-none-any.whl
  Saved ./nose-1.3.7-py3-none-any.whl
Collecting protobuf (from -r /private/var/tmp/_bazel_emilylewis/6ed13ea54d141d16d801a31bd3ba8818/external/com_google_fhir/bazel/requirements.txt (line 5))
  Using cached https://files.pythonhosted.org/packages/eb/79/feb55f5a6c8bd48d79beeb80c11299eb0d378c6df8ca0f33f91d8eda637b/protobuf-3.13.0-cp38-cp38-macosx_10_9_x86_64.whl
  Saved ./protobuf-3.13.0-cp38-cp38-macosx_10_9_x86_64.whl
Collecting python-dateutil>=2.8.1 (from -r /private/var/tmp/_bazel_emilylewis/6ed13ea54d141d16d801a31bd3ba8818/external/com_google_fhir/bazel/requirements.txt (line 6))
  Using cached https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl
  Saved ./python_dateutil-2.8.1-py2.py3-none-any.whl
Collecting request (from -r /private/var/tmp/_bazel_emilylewis/6ed13ea54d141d16d801a31bd3ba8818/external/com_google_fhir/bazel/requirements.txt (line 7))
 (  Could not find a version that satisfies the requirement request (from -r /private/var/tmp/_bazel_emilylewis/6ed13ea54d141d16d801a31bd3ba8818/external/com_google_fhir/bazel/requirements.txt (line 7)) (from versions: )
No matching distribution found for request (from -r /private/var/tmp/_bazel_emilylewis/6ed13ea54d141d16d801a31bd3ba8818/external/com_google_fhir/bazel/requirements.txt (line 7))
)
INFO: Elapsed time: 3.056s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)```
@nikklassen
Copy link
Member

I tried to reproduce and I got different, but similar issues with the pip install

Could not find a version that satisfies the requirement tensorflow<2.0.0,>=1.12.0

@nickgeorge
Copy link
Collaborator

@nikklassen that is because tensorflow < 2.0.0 doesn't work with python 3.8 :(

Until we upgrade tensorflow to 2.x you'll need to ensure you're using python <3.8. All of this will go away in The Next Release when we eliminate the python depenency on tensorflow in the core fhir lib.

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

3 participants