Closed Wallvon closed 2 years ago
The failing line is here, but we'll need to double check if it fixes it:
https://github.com/vignetteapp/Akihabara/blob/master/src/Akihabara/Native/NativeMethods.cs#L16
@Wallvon please run tests on 3344579 and see if that fixes it. If the tests run well, then that means we can make another Vignette release to hotpatch the demo.
I have cloned the repo, checked out the branch and installed Python 3.9, .NET SDK 5.0, GCC-9 and Bazel, but now I am getting the following errors:
robert@robert-pc /m/r/F/P/Akihabara ((33445796…)) [1]> python build.py build --desktop cpu -vv
INFO (build.py): Building native libraries for Linux Desktop...
DEBUG (build.py): Running `bazel build -c opt --verbose_failures --define MEDIAPIPE_DISABLE_GPU=1 --@opencv//:switch=local //mediapipe_api:mediapipe_desktop`
WARNING: Download from http://mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
WARNING: Download from http://mirror.tensorflow.org/github.com/tensorflow/runtime/archive/44c890cd46fd9aad2b3bf4b13c5f36d8cff795c3.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
DEBUG: /home/robert/.cache/bazel/_bazel_robert/17a4b612af0f800a11566ad528ec570f/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: /home/robert/.cache/bazel/_bazel_robert/17a4b612af0f800a11566ad528ec570f/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: /home/robert/.cache/bazel/_bazel_robert/17a4b612af0f800a11566ad528ec570f/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: /home/robert/.cache/bazel/_bazel_robert/17a4b612af0f800a11566ad528ec570f/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: /home/robert/.cache/bazel/_bazel_robert/17a4b612af0f800a11566ad528ec570f/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: /home/robert/.cache/bazel/_bazel_robert/17a4b612af0f800a11566ad528ec570f/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: /home/robert/.cache/bazel/_bazel_robert/17a4b612af0f800a11566ad528ec570f/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: /home/robert/.cache/bazel/_bazel_robert/17a4b612af0f800a11566ad528ec570f/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: /home/robert/.cache/bazel/_bazel_robert/17a4b612af0f800a11566ad528ec570f/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'bazel_skylib' because it already exists.
DEBUG: /home/robert/.cache/bazel/_bazel_robert/17a4b612af0f800a11566ad528ec570f/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'pybind11' because it already exists.
DEBUG: /home/robert/.cache/bazel/_bazel_robert/17a4b612af0f800a11566ad528ec570f/external/tf_runtime/third_party/cuda/dependencies.bzl:51:10: The following command will download NVIDIA proprietary software. By using the software you agree to comply with the terms of the license agreement that accompanies the software. If you do not agree to the terms of the license agreement, do not use the software.
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1564776078 -0400"
DEBUG: Repository rules_python instantiated at:
/media/robert/Files/Programs/Akihabara/WORKSPACE:35:23: in <toplevel>
/home/robert/.cache/bazel/_bazel_robert/17a4b612af0f800a11566ad528ec570f/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies
/home/robert/.cache/bazel/_bazel_robert/17a4b612af0f800a11566ad528ec570f/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule git_repository defined at:
/home/robert/.cache/bazel/_bazel_robert/17a4b612af0f800a11566ad528ec570f/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
DEBUG: Rule 'rules_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "3839996049629e6377abdfd04681ddeeb0cc3db13b9d2ff81bf46700cb4529f7"
DEBUG: Repository rules_cc instantiated at:
/media/robert/Files/Programs/Akihabara/WORKSPACE:80:13: in <toplevel>
Repository rule http_archive defined at:
/home/robert/.cache/bazel/_bazel_robert/17a4b612af0f800a11566ad528ec570f/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/ruy/archive/d37128311b445e758136b8602d1bbd2a755e115d.zip failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
INFO: Analyzed target //mediapipe_api:mediapipe_desktop (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /home/robert/.cache/bazel/_bazel_robert/17a4b612af0f800a11566ad528ec570f/external/com_google_mediapipe/mediapipe/modules/objectron/calculators/BUILD:176:11: Compiling mediapipe/modules/objectron/calculators/tensor_util.cc failed: (Exit 1): gcc failed: error executing command
(cd /home/robert/.cache/bazel/_bazel_robert/17a4b612af0f800a11566ad528ec570f/sandbox/linux-sandbox/748/execroot/mediapipe_api && \
exec env - \
PATH=/home/robert/.local/share/nvm/v16.13.1/bin:/opt/lampp:/home/robert/spicetify-cli:/home/robert/.nvm:/home/robert/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin \
PWD=/proc/self/cwd \
/usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections '-std=c++0x' -MD -MF bazel-out/k8-opt/bin/external/com_google_mediapipe/mediapipe/modules/objectron/calculators/_objs/tensor_util/tensor_util.pic.d '-frandom-seed=bazel-out/k8-opt/bin/external/com_google_mediapipe/mediapipe/modules/objectron/calculators/_objs/tensor_util/tensor_util.pic.o' -fPIC '-DMEDIAPIPE_DISABLE_GPU=1' -iquote external/com_google_mediapipe -iquote bazel-out/k8-opt/bin/external/com_google_mediapipe -iquote external/com_google_absl -iquote bazel-out/k8-opt/bin/external/com_google_absl -iquote external/com_github_glog_glog -iquote bazel-out/k8-opt/bin/external/com_github_glog_glog -iquote external/com_github_gflags_gflags -iquote bazel-out/k8-opt/bin/external/com_github_gflags_gflags -iquote external/linux_opencv -iquote bazel-out/k8-opt/bin/external/linux_opencv -iquote external/org_tensorflow -iquote bazel-out/k8-opt/bin/external/org_tensorflow -iquote external/flatbuffers -iquote bazel-out/k8-opt/bin/external/flatbuffers -iquote external/ruy -iquote bazel-out/k8-opt/bin/external/ruy -Ibazel-out/k8-opt/bin/external/com_github_glog_glog/_virtual_includes/default_glog_headers -Ibazel-out/k8-opt/bin/external/com_github_gflags_gflags/_virtual_includes/gflags -Ibazel-out/k8-opt/bin/external/flatbuffers/_virtual_includes/runtime_cc -Ibazel-out/k8-opt/bin/external/flatbuffers/_virtual_includes/flatbuffers -Ibazel-out/k8-opt/bin/external/flatbuffers/src/_virtual_includes/flatbuffers -isystem external/linux_opencv/include/opencv4 -isystem bazel-out/k8-opt/bin/external/linux_opencv/include/opencv4 -isystem external/org_tensorflow/tensorflow/lite/schema -isystem bazel-out/k8-opt/bin/external/org_tensorflow/tensorflow/lite/schema -isystem external/org_tensorflow/tensorflow/lite/experimental/acceleration/configuration -isystem bazel-out/k8-opt/bin/external/org_tensorflow/tensorflow/lite/experimental/acceleration/configuration -w '-std=c++17' -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/com_google_mediapipe/mediapipe/modules/objectron/calculators/tensor_util.cc -o bazel-out/k8-opt/bin/external/com_google_mediapipe/mediapipe/modules/objectron/calculators/_objs/tensor_util/tensor_util.pic.o)
Execution platform: @local_execution_config_platform//:platform
Use --sandbox_debug to see verbose messages from the sandbox
In file included from external/com_google_mediapipe/mediapipe/modules/objectron/calculators/tensor_util.h:19,
from external/com_google_mediapipe/mediapipe/modules/objectron/calculators/tensor_util.cc:15:
external/com_google_mediapipe/mediapipe/framework/port/opencv_core_inc.h:18:10: fatal error: opencv2/core/version.hpp: No such file or directory
18 | #include <opencv2/core/version.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Target //mediapipe_api:mediapipe_desktop failed to build
INFO: Elapsed time: 0.412s, Critical Path: 0.22s
INFO: 129 processes: 129 internal.
FAILED: Build did NOT complete successfully
Traceback (most recent call last):
File "/media/robert/Files/Programs/Akihabara/build.py", line 436, in <module>
Argument().command().run()
File "/media/robert/Files/Programs/Akihabara/build.py", line 139, in run
self._run_command(self._build_desktop_commands())
File "/media/robert/Files/Programs/Akihabara/build.py", line 50, in _run_command
return subprocess.run(' '.join(command_list), check=True, shell=shell)
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'bazel build -c opt --verbose_failures --define MEDIAPIPE_DISABLE_GPU=1 --@opencv//:switch=local //mediapipe_api:mediapipe_desktop' returned non-zero exit status 1.
robert@robert-pc /m/r/F/P/Akihabara ((33445796…)) [1]>
We'll try to fix it on GH-59 and see if we can release a debut build for a test.
Determined the fix, we'll release another Debut test build to verify it's fixed, thanks for the report!
Distro: KDE Neon 20.04
Hi there,
whenever I try to run Vignette I get the following errors:
Especially the "liblibmediapipe_c" in
In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibmediapipe_c
does not seem right.If there is anything else I need to provide please lmk :D