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

Audio Pipeline Bazel Build #80

Open
KyleWerle opened this issue Aug 17, 2019 · 1 comment
Open

Audio Pipeline Bazel Build #80

KyleWerle opened this issue Aug 17, 2019 · 1 comment

Comments

@KyleWerle
Copy link
Contributor

KyleWerle commented Aug 17, 2019

I am currently unable to run
bazel build //magenta/tools/pip:build_pip_package

I am receiving the error

ERROR: /magenta/WORKSPACE:1:1: name 'new_http_archive' is not defined
ERROR: Error evaluating WORKSPACE file
ERROR: error loading package '': Encountered error while reading extension file 'tools/build_defs/repo/http.bzl': no such package '@bazel_tools//tools/build_defs/repo': error loading package 'external': Could not load //external package
ERROR: error loading package '': Encountered error while reading extension file 'tools/build_defs/repo/http.bzl': no such package '@bazel_tools//tools/build_defs/repo': error loading package 'external': Could not load //external package
INFO: Elapsed time: 5.197s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)

It may be that http_archive is unsupported in the current version of bazel 28.1.
Maybe some documentation on which version of bazel was used would be helpful.

@KyleWerle
Copy link
Contributor Author

KyleWerle commented Aug 17, 2019

I ended up getting past this by re-building and installing Bazel v18.1 instead of the current.

$ sudo apt-get install openjdk-8-jdk
$ echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install bazel
$ sudo apt-get upgrade bazel

This documentation will not work.

I installed with the binary installer.
https://docs.bazel.build/versions/master/install-ubuntu.html
With this release version.
https://github.com/bazelbuild/bazel/releases/tag/0.18.1

I'm still not sure if this is the version to use as I am getting an error on the next line.
bazel-bin/magenta/tools/pip/build_pip_package ~/magenta-pip-pkg --gpu

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

1 participant