tensorflow / tensorflow/probability

unable to execute 'bazel': No such file or directory

Open
#1,089 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
4.4k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Hi all,
I recently upgraded to Python3.8 from Python3.7. However, I have been getting the following error log when I run pip3 install tensorflow-probability on my terminal:

Building wheels for collected packages: dm-tree
  Building wheel for dm-tree (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/local/opt/python@3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/sl/n1gk9z7s6n1_zsljjk_bpnpm0000gn/T/pip-install-nt10ufzu/dm-tree/setup.py'"'"'; __file__='"'"'/private/var/folders/sl/n1gk9z7s6n1_zsljjk_bpnpm0000gn/T/pip-install-nt10ufzu/dm-tree/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/sl/n1gk9z7s6n1_zsljjk_bpnpm0000gn/T/pip-wheel-ua6p78cp
       cwd: /private/var/folders/sl/n1gk9z7s6n1_zsljjk_bpnpm0000gn/T/pip-install-nt10ufzu/dm-tree/
  Complete output (13 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.13-x86_64-3.8
  creating build/lib.macosx-10.13-x86_64-3.8/tree
  copying tree/__init__.py -> build/lib.macosx-10.13-x86_64-3.8/tree
  copying tree/tree_test.py -> build/lib.macosx-10.13-x86_64-3.8/tree
  copying tree/tree_benchmark.py -> build/lib.macosx-10.13-x86_64-3.8/tree
  running build_ext
  bazel build //tree:_tree --symlink_prefix=build/temp.macosx-10.13-x86_64-3.8/bazel- --compilation_mode=opt
  unable to execute 'bazel': No such file or directory
  error: command 'bazel' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for dm-tree
  Running setup.py clean for dm-tree
Failed to build dm-tree
Installing collected packages: dm-tree, tensorflow-probability, gpflow
    Running setup.py install for dm-tree ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/local/opt/python@3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/sl/n1gk9z7s6n1_zsljjk_bpnpm0000gn/T/pip-install-nt10ufzu/dm-tree/setup.py'"'"'; __file__='"'"'/private/var/folders/sl/n1gk9z7s6n1_zsljjk_bpnpm0000gn/T/pip-install-nt10ufzu/dm-tree/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/sl/n1gk9z7s6n1_zsljjk_bpnpm0000gn/T/pip-record-3ceix6xa/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/dm-tree
         cwd: /private/var/folders/sl/n1gk9z7s6n1_zsljjk_bpnpm0000gn/T/pip-install-nt10ufzu/dm-tree/
    Complete output (13 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.13-x86_64-3.8
    creating build/lib.macosx-10.13-x86_64-3.8/tree
    copying tree/__init__.py -> build/lib.macosx-10.13-x86_64-3.8/tree
    copying tree/tree_test.py -> build/lib.macosx-10.13-x86_64-3.8/tree
    copying tree/tree_benchmark.py -> build/lib.macosx-10.13-x86_64-3.8/tree
    running build_ext
    bazel build //tree:_tree --symlink_prefix=build/temp.macosx-10.13-x86_64-3.8/bazel- --compilation_mode=opt
    unable to execute 'bazel': No such file or directory
    error: command 'bazel' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/opt/python@3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/sl/n1gk9z7s6n1_zsljjk_bpnpm0000gn/T/pip-install-nt10ufzu/dm-tree/setup.py'"'"'; __file__='"'"'/private/var/folders/sl/n1gk9z7s6n1_zsljjk_bpnpm0000gn/T/pip-install-nt10ufzu/dm-tree/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/sl/n1gk9z7s6n1_zsljjk_bpnpm0000gn/T/pip-record-3ceix6xa/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/dm-tree Check the logs for full command output.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported pip install tensorflow-probability output and the dm-tree build step invoking bazel build //tree:_tree. Check how the Python 3.8 installation reaches dm-tree and why the bazel executable is unavailable. Done means the documented installation path completes without the reported build failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
build-system, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.