Error During Bazel Build of Tensorflow (Serving tutorial): Ubuntu - docker

OS: Ubuntu 16.04
bazel: 0.17.2
I am using commit : 30248e75390cd068af7af37d62ac158304436415 of serving repository. I am following the tutorial at: https://www.tensorflow.org/serving/serving_advanced
After cloning the serving repo, I use the WORKSPACE file in the current version of serving repository.
The tensorflow commit it points is downloaded correctly in the build process, but next thing I see is the following error:
.
Starting local Bazel server and connecting to it...
........
ERROR: /home/vaibhavs/tensorflow_serving/serving/.cache/_bazel_root/45e5a12780caa2dd1c70f796d572c44c/external/org_tensorflow/tensorflow/python/BUILD:73:1: error loading package '#org_tensorflow//tensorflow/python/keras': Extension file not found. Unable to load package for '#pip_deps//:requirements.bzl': The repository could not be resolved and referenced by '#org_tensorflow//tensorflow/python:no_contrib'
ERROR: Analysis of target '//tensorflow_serving/example:mnist_saved_model' failed; build aborted: error loading package '#org_tensorflow//tensorflow/python/keras': Extension file not found. Unable to load package for '#pip_deps//:requirements.bzl': The repository could not be resolved
INFO: Elapsed time: 23.963s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (67 packages loaded)
currently loading: #org_tensorflow//tensorflow/python/keras ... (2 packages)
<<<
I could not find this exact error message on Google.
Can somebody give me any pointers on what I may be missing?

Try pulling from master again - there was a bug which was fixed.

Related

MIkTex Installation stops after I run the setup wizard with such message

I unistalled miktex2.9 as it was not updating and wanted to reinstall the current miktex22.7 version but it stops showing me the following message. Can somebody please point me in the right direction?
this is MiKTeX Setup Service 5.1 (MiKTeX 22.7)
starting installer...
Loading package database...
starting package maintenance...
installation directory: C:\Users\Nathman\AppData\Local\Programs\MiKTeX
package repository: C:\Users\Nathman\AppData\Local\Temp\mik17622
An error occurred:
source file: Libraries\MiKTeX\Core\File\win\winFile.cpp
source line: 338
message: Windows API error 32: The process cannot access the file because it is being used by another process.
info: existing="C:\Users\Nathman\AppData\Local\Temp\mik25563\miktex\data\le\df2c24cb21984fa85003c1ecc818ff83.fndb-5.tmp", path="C:\Users\Nathman\AppData\Local\Temp\mik25563\miktex\data\le\df2c24cb21984fa85003c1ecc818ff83.fndb-5"
<<<Cancel? Yes!>>>

How can I delete cached downloaded objects (e.g. from http_archive) in Bazel?

The CI build for my Bazel C++ project recently broke. The error indicates that the HTTPS download for a http_repository failed:
INFO: Repository eigen instantiated at:
no stack (--record_rule_instantiation_callstack not enabled)
Repository rule http_archive defined at:
/private/var/tmp/_bazel_kstaley/efca2582089f638162aa9f6ccfe4282e/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
WARNING: Download from https://gitlab.com/libeigen/eigen/-/archive/56b3e3f3f8ca9972ca390c8296fde363bdab271c/eigen-56b3e3f3f8ca9972ca390c8296fde363bdab271c.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 406 Not Acceptable
ERROR: An error occurred during the fetch of repository 'eigen':
java.io.IOException: Error downloading [https://gitlab.com/libeigen/eigen/-/archive/56b3e3f3f8ca9972ca390c8296fde363bdab271c/eigen-56b3e3f3f8ca9972ca390c8296fde363bdab271c.tar.gz] to /private/var/tmp/_bazel_kstaley/efca2582089f638162aa9f6ccfe4282e/external/eigen/eigen-56b3e3f3f8ca9972ca390c8296fde363bdab271c.tar.gz: GET returned 406 Not Acceptable
ERROR: /Users/kstaley/src/myrepo/library/utilities/BUILD:58:11: //library/utilities:mylibrary depends on #eigen//:eigen in repository #eigen which failed to fetch. no such package '#eigen//': java.io.IOException: Error downloading [https://gitlab.com/libeigen/eigen/-/archive/56b3e3f3f8ca9972ca390c8296fde363bdab271c/eigen-56b3e3f3f8ca9972ca390c8296fde363bdab271c.tar.gz] to /private/var/tmp/_bazel_kstaley/efca2582089f638162aa9f6ccfe4282e/external/eigen/eigen-56b3e3f3f8ca9972ca390c8296fde363bdab271c.tar.gz: GET returned 406 Not Acceptable
ERROR: Analysis of target '//library/mypackage:mybinary' failed; build aborted: Analysis failed
I would like to reproduce this error locally, but I already have that file cached locally (the download error seems to be intermittent), so my local build succeeds.
How can I delete Bazel's cached copy of the .tar.gz file so that I can test whether the download succeeds locally? I've tried bazel clean --expunge but it does not seem to delete downloaded artifacts.
rm -r $(bazel info repository_cache) is the brute force solution. Passing --repository_cache= to commands should also disable it.
There's more about the repository cache in the documentation.

bazel buid <app-to-build>:"Configurable attribute "actual" doesn't match this configuration"

I'm setting up a ppc64le server and I need to install bazel 0.23.* on it. I compiled bazel for this architecture but it does not work properly.
I'm trying to install an app (ONOS) on an Ubuntu 18.04 ppc64le server. It's not supported for this architecture so I need to build it from source using bazel (as ONOS documentation explains). I installed bazel version 0.23.0 from a binary already compiled for ppc64le architecture.
Now i tried to build the app using bazel (bazel build onos) but it shows an error related to "JDK environment"
root#TEF01:~# javac -version
javac 11.0.3
build ONOS:
root#TEF01:~/onos# bazel build onos
INFO: Build option --host_javabase has changed, discarding analysis cache.
/root/.cache/bazel/_bazel_root/548916f1c2f50851181f393ea08eaba4/external/bazel_tools/tools/jdk/BUILD:419:14: Configurable attribute "actual" doesn't match this configuration: Could not find a JDK for host execution environment, please explicitly provide one using `--host_javabase.`
INFO: Elapsed time: 2.340s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 1737 targets configured)
Fetching #nodejs; fetching
I checked the BUILD file where the error appears:
alias(
name = "remote_jdk10",
actual = select(
{
"//src/conditions:darwin": "#remotejdk10_macos//:jdk",
"//src/conditions:darwin_x86_64": "#remotejdk10_macos//:jdk",
"//src/conditions:windows": "#remotejdk10_win//:jdk",
"//src/conditions:linux_aarch64": "#remotejdk10_linux_aarch64//:jdk",
"//src/conditions:linux_x86_64": "#remotejdk10_linux//:jdk",
},
no_match_error = "Could not find a JDK for host execution environment, please explicitly" +
" provide one using `--host_javabase.`",
),
visibility = ["//visibility:public"],
)
It seems that there's not ppc64le architecture configured in this file and I don't know what can I do. It also says jdk10 while I have jdk11 but there's other "remote_jdk11" with the same structure.
As you may see, I'm just a beginner so sorry if my question do not make sense or if I didnt explain myself correctly. Also, english is not my first language so sorry again.

Python 3.5 searching for libpython3.6m.so.1.0

I have a docker image based from python:3.5-slim, that I added Oracle 12 on it, so my tests on GitLab can run in it.
When GitLab start building the environment, like doing the pip install, I get this error message:
"/builds/root/ppc_busca/venv/bin/python3: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory"
The thing is, how can it complains about the file 'libpython3.6m' if my python version is 3.5? That is something that I don't understand.
Thanks for the help!

Sonarqube 7 unable to start due to elastic search binary not found

I have setup sonarqube 7, problem is i am getting below error while starting it -
2018.03.27 08:02:15 ERROR app[][o.s.a.p.SQProcess] Fail to launch process [es]
java.lang.IllegalStateException: Cannot find elasticsearch binary
at org.sonar.application.command.CommandFactoryImpl.createEsInstallation(CommandFactoryImpl.java:111)
at org.sonar.application.command.CommandFactoryImpl.createEsCommandForUnix(CommandFactoryImpl.java:80)
at org.sonar.application.command.CommandFactoryImpl.createEsCommand(CommandFactoryImpl.java:76)
at org.sonar.application.SchedulerImpl$$Lambda$12/1128486197.get(Unknown Source)
at org.sonar.application.SchedulerImpl.lambda$tryToStartProcess$2(SchedulerImpl.java:153)
at org.sonar.application.SchedulerImpl$$Lambda$13/1288526896.get(Unknown Source)
at org.sonar.application.process.SQProcess.start(SQProcess.java:68)
at org.sonar.application.SchedulerImpl.tryToStart(SchedulerImpl.java:160)
at org.sonar.application.SchedulerImpl.tryToStartProcess(SchedulerImpl.java:152)
at org.sonar.application.SchedulerImpl.tryToStartEs(SchedulerImpl.java:110)
at org.sonar.application.SchedulerImpl.tryToStartAll(SchedulerImpl.java:102)
at org.sonar.application.SchedulerImpl.schedule(SchedulerImpl.java:98)
at org.sonar.application.App.start(App.java:64)
Don't know why its unable to find elasticsearch binary file, as its already located inside its installation directory.
Anywhere i have to mention its path inside any config file of sonarqube 7?
This is a new installation & i am not finding any solution anywhere around.
Thanks for your help.
I had the same error at my Gentoo Linux system. All 6.7.x versions didn't work with identical error (Cannot find elasticsearch binary).
I downloaded a fresh zip file from the sonarqube website (https://www.sonarqube.org/downloads/). The zipfile contains a elasticsearch subdirectory, but this folder was missing in my original installation (installed by Gentoo emerge using the Godin overlay: https://data.gpo.zugaina.org/godin/dev-util/sonarqube-bin/).
By copying the elasticsearch folder into my original installation my problem was solved.
I found this pull request fixing the ebuild for sonarqube-bin:
https://github.com/Godin/gentoo-overlay/commit/d52d7491e10d3589832bf4785edb29caf9dd4012

Resources