tensorflow: .bazelversion and configure.py conflicts
Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): ubuntu 18.04.3
- Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A
- TensorFlow installed from (source or binary): source master
- TensorFlow version: master 2.1.0
- Python version: 3.8.2
- Installed using virtualenv? pip? conda?: N/A
- Bazel version (if compiling from source): 3.1.0
- GCC/Compiler version (if compiling from source): 7.5.0
- CUDA/cuDNN version: 10.2/7.6.5
- GPU model and memory: GTX1080Ti GDDR5X 11GB
Describe the problem
.bazelversion and configure.py. bazel version requirements are different from each other, causing error.
Provide the exact sequence of commands / steps that you executed before running into the problem .configure
Any other info / logs Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
.configure
Traceback (most recent call last):
File "./configure.py", line 1557, in <module>
main()
File "./configure.py", line 1369, in main
current_bazel_version = check_bazel_version(_TF_MIN_BAZEL_VERSION,
File "./configure.py", line 482, in check_bazel_version
curr_version = run_shell(
File "./configure.py", line 159, in run_shell
output = subprocess.check_output(cmd, stderr=stderr)
File "/home/wmind/anaconda3/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/home/wmind/anaconda3/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['bazel', '--batch', '--bazelrc=/dev/null', 'version']' returned non-zero exit status 1.
bazel --version
ERROR: The project you're trying to build requires Bazel 3.0.0 (specified in /home/wmind/repo/tensorflow/.bazelversion), but it wasn't found in /usr/bin.
You can install the required Bazel version via apt:
sudo apt update && sudo apt install bazel-3.0.0
If this doesn't work, check Bazel's installation instructions for help:
https://docs.bazel.build/versions/master/install-ubuntu.html
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 33 (19 by maintainers)
@mihaimaruseac