I tried to build HandTrackingExample and get this error
ERROR:
/Users/air/Documents/mediapipe/mediapipe/examples/ios/handtrackinggpu/BUILD:34:16:
ProcessEntitlementsFiles
mediapipe/examples/ios/handtrackinggpu/HandTrackingGpuApp_entitlements.entitlements
failed (Exit 1): plisttool failed: error executing command
bazel-out/host/bin/external/build_bazel_rules_apple/tools/plisttool/plisttool
... (remaining 1 argument(s) skipped)
Note: The failure of target
#build_bazel_rules_apple//tools/plisttool:plisttool (with exit code 1)
may have been caused by the fact that it is running under Python 2
instead of Python 3. Examine the error to determine if that appears to
be the problem. Since this target is built in the host configuration,
the only way to change its version is to set --host_force_python=PY3,
which affects the entire build.
If this error started occurring in Bazel 0.27 and later, it may be
because the Python toolchain now enforces that targets analyzed as PY2
and PY3 run under a Python 2 and Python 3 interpreter, respectively.
See https://github.com/bazelbuild/bazel/issues/7899 for more
information.
I tried build with --host_force_python=PY3 and PY2 but error the same
The link that is given in the error did not find a solution to your problem. How do I build a project correctly?
Try it
$ brew install python
$ sudo ln -s -f /usr/local/bin/python3.7 /usr/local/bin/python
$ python --version
Python 3.7.4
$ pip3 install --user six
Related
Guys while i was running anchor test on macbook m1, i am getting this error. Does anybody have a fix for this.
BPF SDK: /Users/dhruvjain/solana/bin/sdk/bpf
Running: rustup toolchain list -v
Running: cargo +bpf build --target bpfel-unknown-unknown --release
error: failed to download `solana-frozen-abi v1.9.9`
Caused by:
unable to get packages from source
Caused by:
failed to parse manifest at `/Users/dhruvjain/.cargo/registry/src/github.com-1ecc6299db9ec823/solana-frozen-abi-1.9.9/Cargo.toml`
Caused by:
feature `edition2021` is required
consider adding `cargo-features = ["edition2021"]` to the manifest
I found that i may have old rust or cargo version. But they seem to be up to date.
rustc 1.59.0 (9d1b2106e 2022-02-23)
Cargo Version
cargo 1.59.0 (49d8809dc 2022-02-10)
I ran cargo clean but i still got the same error. Can somebody help me to solve this issue.
what solana version ?
solana -V
Ensure you are runnning 1.9.9
sh -c "$(curl -sSfL https://release.solana.com/v1.9.9/install)"
On Ubuntu, when compiling Drake as an external, I get errors like the following:
$ bazel build #drake//proximity:proximity_utilities
...
ERROR: {bazel_cache}/external/drake/geometry/proximity/BUILD.bazel:557:17: Compiling geometry/proximity/proximity_utilities.cc failed: (Exit 1): gcc-7 failed: error executing command
...
Use --sandbox_debug to see verbose messages from the sandbox
In file included from external/fcl/include/fcl/math/bv/AABB.h:41:0,
...
from external/drake/geometry/proximity/proximity_utilities.cc:1:
external/fcl/include/fcl/common/types.h:46:10: fatal error: Eigen/Dense: No such file or directory
#include <Eigen/Dense>
^~~~~~~~~~~~~
However, I ran install_prereqs per Drake's instructions.
What is the issue?
Most likely, you have a non-system version of Eigen that was installed via something like sudo make install, and its pkg-config file (e.g. /usr/local/share/pkgconfig/eigen.pc) is shadowing the distribution's file (/usr/share/pkgconfig/eigen3.pc).
You can check this by running pkg-config --debug eigen3, and checking for a line Saying Reading 'eigen3' from file '...'.
The simplest solution is to remove the offending pkg-config file(s), clean your bazel build, and rebuild. For example:
# WARNING: This may break / confuse other projects. If you can,
# see if you can uninstall using a more specific command.
# For example, if using CMake, try to install from the
# generated `install_manifest.txt`.
sudo rm /usr/local/share/pkgconfig/eigen3.pc
# Ensure the bazel build is fully cleaned to pick up newer
# file.
$ bazel clean --expunge --async
# Then rebuild.
# One simple target to rebuild and ensure it doesn't fail:
$ bazel build #drake//common:common
While it is sometimes useful to install to /usr/local out of convenience / prototyping, it can be bad because it can shadow / confuse other tools that may look for another version of packages on your system.
I am trying to setup a docker image for work, but I am running into issues with libssl1.0.0. When I run docker-compose build, this is the output I get back
---> Running in 1d506ae8e916
dpkg: regarding libssl1.0.0_1.0.1t-1+deb8u11_amd64.deb containing libssl1.0.0:amd64, pre-dependency problem:
libssl1.0.0 pre-depends on multiarch-support
multiarch-support is not installed.
dpkg: error processing archive libssl1.0.0_1.0.1t-1+deb8u11_amd64.deb (--install):
pre-dependency problem - not installing libssl1.0.0:amd64
Selecting previously unselected package libssl1.0.0:amd64.
Errors were encountered while processing:
libssl1.0.0_1.0.1t-1+deb8u11_amd64.deb
ERROR: Service 'app' failed to build: The command '/bin/sh -c dpkg -i libssl1.0.0_1.0.1t-1+deb8u11_amd64.deb' returned a non-zero code:
I have mutliarch-support installed, I even sudo apt-get remove multiarch-support and reinstalled it. Same with libssl1.0.0, I even removed libssl1.1.0.
You need the package in your image not in your host. Install multiarch-support in one previous RUN command than the one that gives the error.
I am using below configuration and trying to make Jenkins build but I am getting errors.
Note, I am able to make build successfully with command line.
My PC environments:
OS: ubuntu 14.04
Gradle version: 2.14.1.
Jenkins version: 2.25
Java version: java-8-openjdk-amd64
JENKINS BUILD ERRORS:
[workspace] $ /bin/sh -xe /tmp/hudson2322559356105735311.sh
+ cd /home/ekambaramv/Jenkins/workspace/CARMODE_STAR_O-OS/MAIN/
+ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
+ GRADLE_USER_HOME=/home/ekambaramv/Jenkins/gradle-2.14.1/
+ /home/ekambaramv/Jenkins/gradle-2.14.1/bin/gradle clean build
**FAILURE:** Build failed with an exception.
* What went wrong:
Failed to load native library 'libnative-platform.so' for Linux amd64.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Build step 'Execute shell' marked build as failure
Finished: FAILUR
E
I've had similar problems with the JNI libary when using Gradle. It's possible you might be using a version of the JNI library that is incompatible with Gradle.
Try going to the site: https://debian.pkgs.org/9/debian-main-amd64/libnative-platform-jni_0.11-5_amd64.deb.html and downloading the libnative-platform-jni_0.11-5_amd64.deb package onto your machine.
You can either open Nautilus and right click the .deb package and select 'Open with Software Install', or you can navigate the command line to the download directory and run the following:
sudo apt-get install ./libnative-platform-jni_0.11-5_amd64.deb
Next, check to see if Gradle still gives you the same "Failed to load native library..." error message as before by running:
gradle --version
If the problem persists, and you still get the error message, you might want to consider upgrading to a later version of Gradle. I was able to get this working on Gradle 3.2.1, but I know this method isn't always possible.
If you need to back out the changes, just run another sudo apt-get update, and the JNI libraries will be overwritten with the latest version once more.
One More Thing
I mentioned the libraries get overwritten the next time you update your system (apt-get, Software Updater). To prevent this, run the following command:
sudo apt-mark hold libnative-platform-jni
This will force the update software to overlook any later versions of the library. To turn this off, run the opposite command:
sudo apt-mark unhold libnative-platform-jni
I'm building a container for TensorFlow with Bazel using docker build --pull -t $USER/tensorflow-serving-devel -f Dockerfile.devel . and running it docker run -it $USER/tensorflow-serving-devel as instructed here: https://www.tensorflow.org/serving/docker
However after when running the ./configure command I get this error
root#4489fe3513fc:/serving/tensorflow# ./configure
Extracting Bazel installation...
You have bazel 0.5.1 installed.
Please upgrade your bazel installation to version 0.5.4 or higher to build TensorFlow!
Configuration finished
root#4489fe3513fc:/serving/tensorflow# cd ..
root#4489fe3513fc:/serving# bazel test tensorflow_serving/...
................
ERROR: /serving/WORKSPACE:23:1: Traceback (most recent call last):
File "/serving/WORKSPACE", line 23
tf_serving_workspace()
File "/serving/tensorflow_serving/workspace.bzl", line 16, in tf_serving_workspace
tf_workspace(path_prefix = "", tf_repo_name = "...")
File "/root/.cache/bazel/_bazel_root/f8d1071c69ea316497c31e40fe01608c/external/org_tensorflow/tensorflow/workspace.bzl", line 146, in tf_workspace
check_version("0.5.4")
File "/root/.cache/bazel/_bazel_root/f8d1071c69ea316497c31e40fe01608c/external/org_tensorflow/tensorflow/workspace.bzl", line 56, in check_version
fail("\nCurrent Bazel version is {}, ...))
Current Bazel version is 0.5.1, expected at least 0.5.4
Trying to update bazel just gives me the same version number 0.5.1. I'm not sure on how to approach this. Is there a docker supported tag that I'm missing when I try to update?
Even I wanted 0.5.4 version of bazel for tensorflow 0.8.
Tried brew install bazel#0.5.1. Didnt work..
So, I downloaded bazel 0.5.4 version from bazel git release and installed it as follows:
Download bazel-0.5.4-without-jdk-installer-darwin-x86_64.sh from
https://github.com/bazelbuild/bazel/releases
chmod +x bazel-0.5.4-without-jdk-installer-darwin-x86_64.sh
./bazel-0.5.4-without-jdk-installer-darwin-x86_64.sh
bazel version in your terminal should give 0.5.4
Took barely couple of minutes to install it this way :) Hope that helps!!
(I shared similar answer here)