PAIR-code / facets

Visualizations for machine learning datasets
https://pair-code.github.io/facets/
Apache License 2.0
7.35k stars 888 forks source link

The command fails: bazel build facets:facets_jupyter #187

Open bhishanpdl opened 5 years ago

bhishanpdl commented 5 years ago

I followed the instructions to run bazel in the downloaded the facets repo and it gives me following errors:

ERROR: infinite symlink expansion detected

What I did: Bazel link: https://docs.bazel.build/versions/master/install-os-x.html#install-on-mac-os-x-homebrew

brew tap bazelbuild/tap
brew install bazelbuild/tap/bazel

bazel version # Build label: 0.27.0

After instaling bazel:

cd ~/Downloads
git clone https://github.com/PAIR-code/facets
cd facets
bazel build facets:facets_jupyter

This gives error below:

Error

NOTE: I have the example notebook https://colab.research.google.com/github/PAIR-code/facets/blob/master/colab_facets.ipynb

In Downloads and I am trying to build the visualization.

$ bazel build facets:facets_jupyter
INFO: Call stack for the definition of repository 'com_google_template_soy' which is a java_import_external (rule definition at /private/var/tmp/_bazel_Bhishan/456a45517f651dc1abc5f3643ae50576/external/io_bazel_rules_closure/closure/private/java_import_external.bzl:113:24):
 - /private/var/tmp/_bazel_Bhishan/456a45517f651dc1abc5f3643ae50576/external/io_bazel_rules_closure/closure/repositories.bzl:725:5
 - /private/var/tmp/_bazel_Bhishan/456a45517f651dc1abc5f3643ae50576/external/io_bazel_rules_closure/closure/repositories.bzl:135:9
 - /Users/poudel/Downloads/facets/WORKSPACE:46:1
ERROR: infinite symlink expansion detected
[start of symlink chain]
/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bundle
/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents
[end of symlink chain]
ERROR: /private/var/tmp/_bazel_Bhishan/456a45517f651dc1abc5f3643ae50576/external/bazel_tools/tools/jdk/BUILD:497:1: no such package '@remotejdk11_macos//': no such package '@local_jdk//': Infinite symlink expansion and referenced by '@bazel_tools//tools/jdk:remote_jdk11'
ERROR: Analysis of target '//facets:facets_jupyter' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.312s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
    Fetching @remotejdk11_macos; Restarting.
    Fetching @local_jdk; Restarting.
jameswex commented 5 years ago

Could it be related to the issue seen at https://github.com/bazelbuild/bazel/issues/5763? If so, you can work around it with bazel --output_base=/something/other/path