google-ai-edge / mediapipe

Cross-platform, customizable ML solutions for live and streaming media.
https://ai.google.dev/edge/mediapipe
Apache License 2.0
27.82k stars 5.18k forks source link

ERROR: An error occurred during the fetch of repository 'local_config_git': Error in fail: Git Configuration Error: Traceback (most recent call last): #2557

Closed DLGL99GL closed 3 years ago

DLGL99GL commented 3 years ago

image Ubuntu 18.04
gcc version:7.5.0
bazel:3.7.2 OpenCV:3.4.15

it's OK when I bazel build hellow world; but is not work in other example,likes hand_tracking : bazel build -c opt --copt -DMESA_EGL_NO_X11_HEADERS --copt -DEGL_NO_X11 \ mediapipe/examples/desktop/hand_tracking:hand_tracking_gpu

logs: ERROR: An error occurred during the fetch of repository 'local_config_git': Traceback (most recent call last): File "/home/test/.cache/bazel/_bazel_test/61253509906368cb7173caaaf2923611/external/org_tensorflow/third_party/git/git_configure.bzl", line 64, column 14, in _git_conf_impl _fail(result.stderr) File "/home/test/.cache/bazel/_bazel_test/61253509906368cb7173caaaf2923611/external/org_tensorflow/third_party/git/git_configure.bzl", line 14, column 9, in _fail fail("%sGit Configuration Error:%s %s\n" % (red, no_color, msg)) Error in fail: Git Configuration Error: Traceback (most recent call last): File "/home/test/.cache/bazel/_bazel_test/61253509906368cb7173caaaf2923611/external/org_tensorflow/tensorflow/tools/git/gen_git_source.py", line 32, in from builtins import bytes # pylint: disable=redefined-builtin ImportError: No module named builtins

INFO: Repository cpuinfo instantiated at: /home/test/mediapipe/WORKSPACE:403:14: in /home/test/.cache/bazel/_bazel_test/61253509906368cb7173caaaf2923611/external/org_tensorflow/tensorflow/workspace2.bzl:1088:28: in workspace /home/test/.cache/bazel/_bazel_test/61253509906368cb7173caaaf2923611/external/org_tensorflow/tensorflow/workspace2.bzl:59:12: in _initialize_third_party /home/test/.cache/bazel/_bazel_test/61253509906368cb7173caaaf2923611/external/org_tensorflow/third_party/cpuinfo/workspace.bzl:6:20: in repo /home/test/.cache/bazel/_bazel_test/61253509906368cb7173caaaf2923611/external/org_tensorflow/third_party/repo.bzl:113:21: in tf_http_archive Repository rule _tf_http_archive defined at: /home/test/.cache/bazel/_bazel_test/61253509906368cb7173caaaf2923611/external/org_tensorflow/third_party/repo.bzl:66:35: in INFO: Repository 'cpuinfo' used the following cache hits instead of downloading the corresponding file.

ERROR: /home/test/.cache/bazel/_bazel_test/61253509906368cb7173caaaf2923611/external/org_tensorflow/tensorflow/core/util/BUILD:374:24: @org_tensorflow//tensorflow/core/util:version_info_gen depends on @local_config_git//:gen/head in repository @local_config_git which failed to fetch. no such package '@local_config_git//': Git Configuration Error: Traceback (most recent call last): File "/home/test/.cache/bazel/_bazel_test/61253509906368cb7173caaaf2923611/external/org_tensorflow/tensorflow/tools/git/gen_git_source.py", line 32, in from builtins import bytes # pylint: disable=redefined-builtin ImportError: No module named builtins

ERROR: /home/test/.cache/bazel/_bazel_test/61253509906368cb7173caaaf2923611/external/org_tensorflow/tensorflow/core/util/BUILD:374:24: @org_tensorflow//tensorflow/core/util:version_info_gen depends on @local_config_git//:gen/branch_ref in repository @local_config_git which failed to fetch. no such package '@local_config_git//': Git Configuration Error: Traceback (most recent call last): File "/home/test/.cache/bazel/_bazel_test/61253509906368cb7173caaaf2923611/external/org_tensorflow/tensorflow/tools/git/gen_git_source.py", line 32, in from builtins import bytes # pylint: disable=redefined-builtin ImportError: No module named builtins

ERROR: Analysis of target '//mediapipe/examples/desktop/hand_tracking:hand_tracking_cpu' failed; build aborted: Analysis failed INFO: Elapsed time: 9.722s INFO: 0 processes. FAILED: Build did NOT complete successfully (113 packages loaded, 3866 targets\ configured) Fetching ...puinfo; Extracting /home/test/.cache/bazel/_bazel_test/6125350\ 9906368cb7173caaaf2923611/external/cpuinfo/temp621439184272611716/5916273f79a2\ 1551890fd3d56fc5375a78d1598d.zip

DLGL99GL commented 3 years ago

oh ,Got the wrong keyword of logs, when I search "ImportError: No module named builtins" ,found a solution,install future :

pip install future

google-ml-butler[bot] commented 3 years ago

Are you satisfied with the resolution of your issue? Yes No