googlecreativelab / open-nsynth-super

Open NSynth Super is an experimental physical interface for the NSynth algorithm
Apache License 2.0
2.44k stars 272 forks source link

Audio Pipeline Bazel Build #80

Open KyleWerle opened 5 years ago

KyleWerle commented 5 years ago

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 commented 5 years ago

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