Closed Wzh0718 closed 2 years ago
Hi @Wzh0718, Have you looked at this similar closed issue #3440 and #3440(comment). Thank you!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.
Closing as stale. Please reopen if you'd like to work on this further.
I used ARRCH64 MAC system and the following problem occurred when trying to compile ARRCH version. My version of Python is 3.8.12, using the Conda virtual environment
(envname) wangzehang@192 Downloads % git clone https://github.com/google/mediapipe.git Cloning into 'mediapipe'... remote: Enumerating objects: 12335, done. remote: Total 12335 (delta 0), reused 0 (delta 0), pack-reused 12335 Receiving objects: 100% (12335/12335), 530.03 MiB | 21.92 MiB/s, done. Resolving deltas: 100% (8380/8380), done. Updating files: 100% (2415/2415), done. (envname) wangzehang@192 Downloads % port install opencv zsh: command not found: port (envname) wangzehang@192 Downloads % brew install opencv@3 Warning: opencv@3 3.4.16_4 is already installed and up-to-date. To reinstall 3.4.16_4, run: brew reinstall opencv@3 (envname) wangzehang@192 Downloads % brew uninstall --ignore-dependencies glog Uninstalling /opt/homebrew/Cellar/glog/0.6.0... (22 files, 334KB) (envname) wangzehang@192 Downloads % python --version Python 3.8.12 (envname) wangzehang@192 Downloads % brew install python Warning: python@3.10 3.10.6_1 is already installed and up-to-date. To reinstall 3.10.6_1, run: brew reinstall python@3.10 (envname) wangzehang@192 Downloads % python --version Python 3.8.12 (envname) wangzehang@192 Downloads % pip3 install --user six Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Requirement already satisfied: six in /Users/wangzehang/miniforge3/envs/envname/lib/python3.8/site-packages (1.16.0) (envname) wangzehang@192 Downloads % export GLOG_logtostderr=1 (envname) wangzehang@192 Downloads % bazel run --define MEDIAPIPE_DISABLE_GPU=1 \ mediapipe/examples/desktop/hello_world:hello_world WARNING: Invoking Bazel in batch mode since it is not invoked from within a workspace (below a directory having a WORKSPACE file). WARNING: Ignoring JAVA_HOME, because it must point to a JDK, not a JRE. WARNING: Ignoring JAVA_HOME, because it must point to a JDK, not a JRE. ERROR: The 'run' command is only supported from within a workspace (below a directory having a WORKSPACE file). See documentation at https://docs.bazel.build/versions/main/build-ref.html#workspace (envname) wangzehang@192 Downloads % cd mediapipe (envname) wangzehang@192 mediapipe % bazel run --define MEDIAPIPE_DISABLE_GPU=1 \ mediapipe/examples/desktop/hello_world:hello_world WARNING: Ignoring JAVA_HOME, because it must point to a JDK, not a JRE. WARNING: Ignoring JAVA_HOME, because it must point to a JDK, not a JRE. Starting local Bazel server and connecting to it... DEBUG: /private/var/tmp/_bazel_wangzehang/8b2bdf8a61f893bff75b2bd4dfd14645/external/org_tensorflow/third_party/repo.bzl:124:14: Warning: skipping import of repository 'com_google_absl' because it already exists. DEBUG: /private/var/tmp/_bazel_wangzehang/8b2bdf8a61f893bff75b2bd4dfd14645/external/org_tensorflow/third_party/repo.bzl:124:14: Warning: skipping import of repository 'com_google_benchmark' because it already exists. DEBUG: /private/var/tmp/_bazel_wangzehang/8b2bdf8a61f893bff75b2bd4dfd14645/external/org_tensorflow/third_party/repo.bzl:124:14: Warning: skipping import of repository 'pybind11_bazel' because it already exists. DEBUG: /private/var/tmp/_bazel_wangzehang/8b2bdf8a61f893bff75b2bd4dfd14645/external/org_tensorflow/third_party/repo.bzl:124:14: Warning: skipping import of repository 'com_google_protobuf' because it already exists. DEBUG: /private/var/tmp/_bazel_wangzehang/8b2bdf8a61f893bff75b2bd4dfd14645/external/org_tensorflow/third_party/repo.bzl:124:14: Warning: skipping import of repository 'com_google_googletest' because it already exists. DEBUG: /private/var/tmp/_bazel_wangzehang/8b2bdf8a61f893bff75b2bd4dfd14645/external/org_tensorflow/third_party/repo.bzl:124:14: Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists. DEBUG: /private/var/tmp/_bazel_wangzehang/8b2bdf8a61f893bff75b2bd4dfd14645/external/org_tensorflow/third_party/repo.bzl:124:14: Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists. DEBUG: /private/var/tmp/_bazel_wangzehang/8b2bdf8a61f893bff75b2bd4dfd14645/external/org_tensorflow/third_party/repo.bzl:124:14: Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists. DEBUG: /private/var/tmp/_bazel_wangzehang/8b2bdf8a61f893bff75b2bd4dfd14645/external/org_tensorflow/third_party/repo.bzl:124:14: Warning: skipping import of repository 'build_bazel_apple_support' because it already exists. DEBUG: /private/var/tmp/_bazel_wangzehang/8b2bdf8a61f893bff75b2bd4dfd14645/external/org_tensorflow/third_party/repo.bzl:124:14: Warning: skipping import of repository 'xctestrunner' because it already exists. DEBUG: /private/var/tmp/_bazel_wangzehang/8b2bdf8a61f893bff75b2bd4dfd14645/external/org_tensorflow/third_party/repo.bzl:124:14: Warning: skipping import of repository 'pybind11' because it already exists. WARNING: /Users/wangzehang/Downloads/mediapipe/mediapipe/framework/tool/BUILD:184:24: in cc_library rule //mediapipe/framework/tool:field_data_cc_proto: target '//mediapipe/framework/tool:field_data_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use. WARNING: /Users/wangzehang/Downloads/mediapipe/mediapipe/framework/BUILD:54:24: in cc_library rule //mediapipe/framework:calculator_cc_proto: target '//mediapipe/framework:calculator_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use. INFO: Analyzed target //mediapipe/examples/desktop/hello_world:hello_world (81 packages loaded, 1671 targets configured). INFO: Found 1 target... INFO: From Linking external/com_google_absl/absl/strings/libstrings.a: /Library/Developer/CommandLineTools/usr/bin/libtool: file: bazel-out/darwin-fastbuild/bin/external/com_google_absl/absl/strings/_objs/strings/string_view.pic.o has no symbols INFO: From Linking external/com_google_absl/absl/types/libbad_variant_access.a: /Library/Developer/CommandLineTools/usr/bin/libtool: file: bazel-out/darwin-fastbuild/bin/external/com_google_absl/absl/types/_objs/bad_variant_access/bad_variant_access.pic.o has no symbols warning: /Library/Developer/CommandLineTools/usr/bin/libtool: archive library: bazel-out/darwin-fastbuild/bin/external/com_google_absl/absl/types/libbad_variant_access.a the table of contents is empty (no object file members in the library define global symbols) INFO: From Linking external/com_google_absl/absl/flags/libflag.a: /Library/Developer/CommandLineTools/usr/bin/libtool: file: bazel-out/darwin-fastbuild/bin/external/com_google_absl/absl/flags/_objs/flag/flag.pic.o has no symbols warning: /Library/Developer/CommandLineTools/usr/bin/libtool: archive library: bazel-out/darwin-fastbuild/bin/external/com_google_absl/absl/flags/libflag.a the table of contents is empty (no object file members in the library define global symbols) INFO: From Linking external/com_google_protobuf/libprotobuf_lite.lo: /Library/Developer/CommandLineTools/usr/bin/libtool: file: bazel-out/darwin-fastbuild/bin/external/com_google_protobuf/_objs/protobuf_lite/io_win32.pic.o has no symbols INFO: From Linking external/com_google_protobuf/libprotobuf.lo: /Library/Developer/CommandLineTools/usr/bin/libtool: file: bazel-out/darwin-fastbuild/bin/external/com_google_protobuf/_objs/protobuf/error_listener.pic.o has no symbols INFO: From Linking external/com_google_absl/absl/types/libbad_optional_access.a: /Library/Developer/CommandLineTools/usr/bin/libtool: file: bazel-out/darwin-fastbuild/bin/external/com_google_absl/absl/types/_objs/bad_optional_access/bad_optional_access.pic.o has no symbols warning: /Library/Developer/CommandLineTools/usr/bin/libtool: archive library: bazel-out/darwin-fastbuild/bin/external/com_google_absl/absl/types/libbad_optional_access.a the table of contents is empty (no object file members in the library define global symbols) INFO: From Linking external/com_google_absl/absl/debugging/libdebugging_internal.a: /Library/Developer/CommandLineTools/usr/bin/libtool: file: bazel-out/darwin-fastbuild/bin/external/com_google_absl/absl/debugging/_objs/debugging_internal/elf_mem_image.pic.o has no symbols /Library/Developer/CommandLineTools/usr/bin/libtool: file: bazel-out/darwin-fastbuild/bin/external/com_google_absl/absl/debugging/_objs/debugging_internal/vdso_support.pic.o has no symbols Target //mediapipe/examples/desktop/hello_world:hello_world up-to-date: bazel-bin/mediapipe/examples/desktop/hello_world/hello_world INFO: Elapsed time: 87.445s, Critical Path: 51.25s INFO: 432 processes: 2 internal, 430 darwin-sandbox. INFO: Build completed successfully, 432 total actions INFO: Running command line: bazel-bin/mediapipe/examples/desktop/hello_world/helINFO: Build completed successfully, 432 total actions I20220818 10:35:36.080603 29984256 hello_world.cc:57] Hello World! I20220818 10:35:36.080993 29984256 hello_world.cc:57] Hello World! I20220818 10:35:36.081003 29984256 hello_world.cc:57] Hello World! I20220818 10:35:36.081009 29984256 hello_world.cc:57] Hello World! I20220818 10:35:36.081017 29984256 hello_world.cc:57] Hello World! I20220818 10:35:36.081022 29984256 hello_world.cc:57] Hello World! I20220818 10:35:36.081028 29984256 hello_world.cc:57] Hello World! I20220818 10:35:36.081033 29984256 hello_world.cc:57] Hello World! I20220818 10:35:36.081039 29984256 hello_world.cc:57] Hello World! I20220818 10:35:36.081045 29984256 hello_world.cc:57] Hello World! (envname) wangzehang@192 mediapipe % source .zshrc source: no such file or directory: .zshrc (envname) wangzehang@192 mediapipe % java -version java version "1.8.0_202" Java(TM) SE Runtime Environment (build 1.8.0_202-b08) Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode) (envname) wangzehang@192 mediapipe % brew install protobuf Warning: protobuf 21.5 is already installed and up-to-date. To reinstall 21.5, run: brew reinstall protobuf (envname) wangzehang@192 mediapipe % brew install cmake Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake Warning: cmake 3.24.0 is already installed and up-to-date. To reinstall 3.24.0, run: brew reinstall cmake (envname) wangzehang@192 mediapipe % pip3 install -r requirements.txt Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Requirement already satisfied: absl-py in /Users/wangzehang/miniforge3/envs/envname/lib/python3.8/site-packages (from -r requirements.txt (line 1)) (1.2.0) Requirement already satisfied: attrs>=19.1.0 in /Users/wangzehang/miniforge3/envs/envname/lib/python3.8/site-packages (from -r requirements.txt (line 2)) (22.1.0) Requirement already satisfied: matplotlib in /Users/wangzehang/miniforge3/envs/envname/lib/python3.8/site-packages (from -r requirements.txt (line 3)) (3.5.2) Requirement already satisfied: numpy in /Users/wangzehang/miniforge3/envs/envname/lib/python3.8/site-packages (from -r requirements.txt (line 4)) (1.23.2) Requirement already satisfied: opencv-contrib-python in /Users/wangzehang/miniforge3/envs/envname/lib/python3.8/site-packages (from -r requirements.txt (line 5)) (4.6.0.66) Requirement already satisfied: protobuf<4,>=3.11 in /Users/wangzehang/miniforge3/envs/envname/lib/python3.8/site-packages (from -r requirements.txt (line 6)) (3.19.4) Requirement already satisfied: packaging>=20.0 in /Users/wangzehang/miniforge3/envs/envname/lib/python3.8/site-packages (from matplotlib->-r requirements.txt (line 3)) (21.3) Requirement already satisfied: pyparsing>=2.2.1 in /Users/wangzehang/miniforge3/envs/envname/lib/python3.8/site-packages (from matplotlib->-r requirements.txt (line 3)) (3.0.7) Requirement already satisfied: fonttools>=4.22.0 in /Users/wangzehang/miniforge3/envs/envname/lib/python3.8/site-packages (from matplotlib->-r requirements.txt (line 3)) (4.31.2) Requirement already satisfied: cycler>=0.10 in /Users/wangzehang/miniforge3/envs/envname/lib/python3.8/site-packages (from matplotlib->-r requirements.txt (line 3)) (0.11.0) Requirement already satisfied: pillow>=6.2.0 in /Users/wangzehang/miniforge3/envs/envname/lib/python3.8/site-packages (from matplotlib->-r requirements.txt (line 3)) (9.2.0) Requirement already satisfied: kiwisolver>=1.0.1 in /Users/wangzehang/miniforge3/envs/envname/lib/python3.8/site-packages (from matplotlib->-r requirements.txt (line 3)) (1.4.0) Requirement already satisfied: python-dateutil>=2.7 in /Users/wangzehang/miniforge3/envs/envname/lib/python3.8/site-packages (from matplotlib->-r requirements.txt (line 3)) (2.8.2) Requirement already satisfied: six>=1.5 in /Users/wangzehang/miniforge3/envs/envname/lib/python3.8/site-packages (from python-dateutil>=2.7->matplotlib->-r requirements.txt (line 3)) (1.16.0) (envname) wangzehang@192 mediapipe % python3 setup.py gen_protos /Users/wangzehang/miniforge3/envs/envname/lib/python3.8/site-packages/setuptools/config/init.py:28: SetuptoolsDeprecationWarning: As setuptools moves its configuration towards
pyproject.toml
,setuptools.config.parse_configuration
became deprecated.For the time being, you can use the
setuptools.config.setupcfg
module to access a backward compatible API, but this module is provisional and might be removed in the future.warnings.warn(dedent(msg), SetuptoolsDeprecationWarning) /Users/wangzehang/miniforge3/envs/envname/lib/python3.8/site-packages/setuptools/dist.py:507: UserWarning: The version specified ('dev') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details. warnings.warn( running gen_protos adding init file: /Users/wangzehang/Downloads/mediapipe/init.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/calculators/init.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/modules/init.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/modules/holistic_landmark/init.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/modules/objectron/init.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/framework/init.py generating proto file: mediapipe/framework/test_calculators_pb2.py generating proto file: mediapipe/framework/packet_factory_pb2.py generating proto file: mediapipe/framework/thread_pool_executor_pb2.py generating proto file: mediapipe/framework/mediapipe_options_pb2.py generating proto file: mediapipe/framework/status_handler_pb2.py generating proto file: mediapipe/framework/stream_handler_pb2.py generating proto file: mediapipe/framework/calculator_pb2.py generating proto file: mediapipe/framework/calculator_profile_pb2.py generating proto file: mediapipe/framework/packet_generator_pb2.py generating proto file: mediapipe/framework/calculator_options_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/framework/formats/init.py generating proto file: mediapipe/framework/formats/image_file_properties_pb2.py generating proto file: mediapipe/framework/formats/matrix_data_pb2.py generating proto file: mediapipe/framework/formats/body_rig_pb2.py generating proto file: mediapipe/framework/formats/landmark_pb2.py generating proto file: mediapipe/framework/formats/detection_pb2.py generating proto file: mediapipe/framework/formats/affine_transform_data_pb2.py generating proto file: mediapipe/framework/formats/location_data_pb2.py generating proto file: mediapipe/framework/formats/rect_pb2.py generating proto file: mediapipe/framework/formats/time_series_header_pb2.py generating proto file: mediapipe/framework/formats/classification_pb2.py generating proto file: mediapipe/framework/formats/image_format_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/framework/formats/annotation/init.py generating proto file: mediapipe/framework/formats/annotation/locus_pb2.py generating proto file: mediapipe/framework/formats/annotation/rasterization_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/framework/formats/motion/init.py generating proto file: mediapipe/framework/formats/motion/optical_flow_field_data_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/framework/formats/object_detection/init.py generating proto file: mediapipe/framework/formats/object_detection/anchor_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/framework/deps/init.py generating proto file: mediapipe/framework/deps/proto_descriptor_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/framework/tool/init.py generating proto file: mediapipe/framework/tool/node_chain_subgraph_pb2.py generating proto file: mediapipe/framework/tool/packet_generator_wrapper_calculator_pb2.py generating proto file: mediapipe/framework/tool/switch_container_pb2.py generating proto file: mediapipe/framework/tool/calculator_graph_template_pb2.py generating proto file: mediapipe/framework/tool/source_pb2.py generating proto file: mediapipe/framework/tool/field_data_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/framework/stream_handler/init.py generating proto file: mediapipe/framework/stream_handler/default_input_stream_handler_pb2.py generating proto file: mediapipe/framework/stream_handler/timestamp_align_input_stream_handler_pb2.py generating proto file: mediapipe/framework/stream_handler/fixed_size_input_stream_handler_pb2.py generating proto file: mediapipe/framework/stream_handler/sync_set_input_stream_handler_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/calculators/video/init.py generating proto file: mediapipe/calculators/video/opencv_video_encoder_calculator_pb2.py generating proto file: mediapipe/calculators/video/video_pre_stream_calculator_pb2.py generating proto file: mediapipe/calculators/video/flow_to_image_calculator_pb2.py generating proto file: mediapipe/calculators/video/motion_analysis_calculator_pb2.py generating proto file: mediapipe/calculators/video/flow_packager_calculator_pb2.py generating proto file: mediapipe/calculators/video/tracked_detection_manager_calculator_pb2.py generating proto file: mediapipe/calculators/video/box_tracker_calculator_pb2.py generating proto file: mediapipe/calculators/video/box_detector_calculator_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/calculators/video/tool/init.py generating proto file: mediapipe/calculators/video/tool/flow_quantizer_model_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/calculators/tflite/init.py generating proto file: mediapipe/calculators/tflite/tflite_custom_op_resolver_calculator_pb2.py generating proto file: mediapipe/calculators/tflite/tflite_converter_calculator_pb2.py generating proto file: mediapipe/calculators/tflite/ssd_anchors_calculator_pb2.py generating proto file: mediapipe/calculators/tflite/tflite_tensors_to_landmarks_calculator_pb2.py generating proto file: mediapipe/calculators/tflite/tflite_inference_calculator_pb2.py generating proto file: mediapipe/calculators/tflite/tflite_tensors_to_detections_calculator_pb2.py generating proto file: mediapipe/calculators/tflite/tflite_tensors_to_classification_calculator_pb2.py generating proto file: mediapipe/calculators/tflite/tflite_tensors_to_segmentation_calculator_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/calculators/core/init.py generating proto file: mediapipe/calculators/core/quantize_float_vector_calculator_pb2.py generating proto file: mediapipe/calculators/core/concatenate_vector_calculator_pb2.py generating proto file: mediapipe/calculators/core/split_vector_calculator_pb2.py generating proto file: mediapipe/calculators/core/sequence_shift_calculator_pb2.py generating proto file: mediapipe/calculators/core/gate_calculator_pb2.py generating proto file: mediapipe/calculators/core/clip_vector_size_calculator_pb2.py generating proto file: mediapipe/calculators/core/dequantize_byte_array_calculator_pb2.py generating proto file: mediapipe/calculators/core/flow_limiter_calculator_pb2.py generating proto file: mediapipe/calculators/core/packet_resampler_calculator_pb2.py generating proto file: mediapipe/calculators/core/packet_thinner_calculator_pb2.py generating proto file: mediapipe/calculators/core/graph_profile_calculator_pb2.py generating proto file: mediapipe/calculators/core/packet_cloner_calculator_pb2.py generating proto file: mediapipe/calculators/core/constant_side_packet_calculator_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/calculators/util/init.py generating proto file: mediapipe/calculators/util/local_file_contents_calculator_pb2.py generating proto file: mediapipe/calculators/util/landmarks_to_floats_calculator_pb2.py generating proto file: mediapipe/calculators/util/filter_detections_calculator_pb2.py generating proto file: mediapipe/calculators/util/timed_box_list_id_to_label_calculator_pb2.py generating proto file: mediapipe/calculators/util/rect_to_render_data_calculator_pb2.py generating proto file: mediapipe/calculators/util/collection_has_min_size_calculator_pb2.py generating proto file: mediapipe/calculators/util/rect_to_render_scale_calculator_pb2.py generating proto file: mediapipe/calculators/util/packet_frequency_calculator_pb2.py generating proto file: mediapipe/calculators/util/logic_calculator_pb2.py generating proto file: mediapipe/calculators/util/detections_to_render_data_calculator_pb2.py generating proto file: mediapipe/calculators/util/detection_label_id_to_text_calculator_pb2.py generating proto file: mediapipe/calculators/util/landmarks_refinement_calculator_pb2.py generating proto file: mediapipe/calculators/util/labels_to_render_data_calculator_pb2.py generating proto file: mediapipe/calculators/util/rect_transformation_calculator_pb2.py generating proto file: mediapipe/calculators/util/packet_latency_calculator_pb2.py generating proto file: mediapipe/calculators/util/timed_box_list_to_render_data_calculator_pb2.py generating proto file: mediapipe/calculators/util/landmark_projection_calculator_pb2.py generating proto file: mediapipe/calculators/util/non_max_suppression_calculator_pb2.py generating proto file: mediapipe/calculators/util/detections_to_rects_calculator_pb2.py generating proto file: mediapipe/calculators/util/visibility_smoothing_calculator_pb2.py generating proto file: mediapipe/calculators/util/annotation_overlay_calculator_pb2.py generating proto file: mediapipe/calculators/util/landmarks_to_detection_calculator_pb2.py generating proto file: mediapipe/calculators/util/thresholding_calculator_pb2.py generating proto file: mediapipe/calculators/util/latency_pb2.py generating proto file: mediapipe/calculators/util/visibility_copy_calculator_pb2.py generating proto file: mediapipe/calculators/util/association_calculator_pb2.py generating proto file: mediapipe/calculators/util/landmarks_smoothing_calculator_pb2.py generating proto file: mediapipe/calculators/util/landmarks_to_render_data_calculator_pb2.py generating proto file: mediapipe/calculators/util/refine_landmarks_from_heatmap_calculator_pb2.py generating proto file: mediapipe/calculators/util/packet_frequency_pb2.py generating proto file: mediapipe/calculators/util/top_k_scores_calculator_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/calculators/internal/init.py generating proto file: mediapipe/calculators/internal/callback_packet_calculator_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/calculators/image/init.py generating proto file: mediapipe/calculators/image/opencv_image_encoder_calculator_pb2.py generating proto file: mediapipe/calculators/image/feature_detector_calculator_pb2.py generating proto file: mediapipe/calculators/image/segmentation_smoothing_calculator_pb2.py generating proto file: mediapipe/calculators/image/set_alpha_calculator_pb2.py generating proto file: mediapipe/calculators/image/image_clone_calculator_pb2.py generating proto file: mediapipe/calculators/image/opencv_encoded_image_to_image_frame_calculator_pb2.py generating proto file: mediapipe/calculators/image/warp_affine_calculator_pb2.py generating proto file: mediapipe/calculators/image/bilateral_filter_calculator_pb2.py generating proto file: mediapipe/calculators/image/scale_image_calculator_pb2.py generating proto file: mediapipe/calculators/image/image_cropping_calculator_pb2.py generating proto file: mediapipe/calculators/image/mask_overlay_calculator_pb2.py generating proto file: mediapipe/calculators/image/image_transformation_calculator_pb2.py generating proto file: mediapipe/calculators/image/recolor_calculator_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/calculators/audio/init.py generating proto file: mediapipe/calculators/audio/stabilized_log_calculator_pb2.py generating proto file: mediapipe/calculators/audio/time_series_framer_calculator_pb2.py generating proto file: mediapipe/calculators/audio/spectrogram_calculator_pb2.py generating proto file: mediapipe/calculators/audio/rational_factor_resample_calculator_pb2.py generating proto file: mediapipe/calculators/audio/mfcc_mel_calculators_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/calculators/tensor/init.py generating proto file: mediapipe/calculators/tensor/tensors_to_segmentation_calculator_pb2.py generating proto file: mediapipe/calculators/tensor/inference_calculator_pb2.py generating proto file: mediapipe/calculators/tensor/audio_to_tensor_calculator_pb2.py generating proto file: mediapipe/calculators/tensor/image_to_tensor_calculator_pb2.py generating proto file: mediapipe/calculators/tensor/landmarks_to_tensor_calculator_pb2.py generating proto file: mediapipe/calculators/tensor/tensors_to_detections_calculator_pb2.py generating proto file: mediapipe/calculators/tensor/tensors_to_floats_calculator_pb2.py generating proto file: mediapipe/calculators/tensor/tensors_to_landmarks_calculator_pb2.py generating proto file: mediapipe/calculators/tensor/tensor_converter_calculator_pb2.py generating proto file: mediapipe/calculators/tensor/tensors_to_classification_calculator_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/gpu/init.py generating proto file: mediapipe/gpu/scale_mode_pb2.py generating proto file: mediapipe/gpu/gl_scaler_calculator_pb2.py generating proto file: mediapipe/gpu/gl_surface_sink_calculator_pb2.py generating proto file: mediapipe/gpu/gl_context_options_pb2.py generating proto file: mediapipe/gpu/gpu_origin_pb2.py generating proto file: mediapipe/gpu/copy_calculator_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/modules/holistic_landmark/calculators/init.py generating proto file: mediapipe/modules/holistic_landmark/calculators/roi_tracking_calculator_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/modules/face_geometry/init.py generating proto file: mediapipe/modules/face_geometry/env_generator_calculator_pb2.py generating proto file: mediapipe/modules/face_geometry/effect_renderer_calculator_pb2.py generating proto file: mediapipe/modules/face_geometry/geometry_pipeline_calculator_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/modules/face_geometry/protos/init.py generating proto file: mediapipe/modules/face_geometry/protos/geometry_pipeline_metadata_pb2.py generating proto file: mediapipe/modules/face_geometry/protos/face_geometry_pb2.py generating proto file: mediapipe/modules/face_geometry/protos/environment_pb2.py generating proto file: mediapipe/modules/face_geometry/protos/mesh_3d_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/modules/objectron/calculators/init.py generating proto file: mediapipe/modules/objectron/calculators/frame_annotation_to_rect_calculator_pb2.py generating proto file: mediapipe/modules/objectron/calculators/tensors_to_objects_calculator_pb2.py generating proto file: mediapipe/modules/objectron/calculators/a_r_capture_metadata_pb2.py generating proto file: mediapipe/modules/objectron/calculators/tflite_tensors_to_objects_calculator_pb2.py generating proto file: mediapipe/modules/objectron/calculators/object_pb2.py generating proto file: mediapipe/modules/objectron/calculators/camera_parameters_pb2.py generating proto file: mediapipe/modules/objectron/calculators/frame_annotation_tracker_calculator_pb2.py generating proto file: mediapipe/modules/objectron/calculators/filter_detection_calculator_pb2.py generating proto file: mediapipe/modules/objectron/calculators/annotation_data_pb2.py generating proto file: mediapipe/modules/objectron/calculators/lift_2d_frame_annotation_to_3d_calculator_pb2.py generating proto file: mediapipe/modules/objectron/calculators/belief_decoder_config_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/modules/face_detection/init.py generating proto file: mediapipe/modules/face_detection/face_detection_pb2.py generating proto file: mediapipe/util/audio_decoder_pb2.py generating proto file: mediapipe/util/label_map_pb2.py generating proto file: mediapipe/util/color_pb2.py generating proto file: mediapipe/util/render_data_pb2.py adding init file: /Users/wangzehang/Downloads/mediapipe/mediapipe/util/tracking/init.py generating proto file: mediapipe/util/tracking/camera_motion_pb2.py generating proto file: mediapipe/util/tracking/region_flow_computation_pb2.py generating proto file: mediapipe/util/tracking/motion_analysis_pb2.py generating proto file: mediapipe/util/tracking/box_tracker_pb2.py generating proto file: mediapipe/util/tracking/motion_estimation_pb2.py generating proto file: mediapipe/util/tracking/box_detector_pb2.py generating proto file: mediapipe/util/tracking/flow_packager_pb2.py generating proto file: mediapipe/util/tracking/motion_models_pb2.py generating proto file: mediapipe/util/tracking/motion_saliency_pb2.py generating proto file: mediapipe/util/tracking/tracked_detection_manager_config_pb2.py generating proto file: mediapipe/util/tracking/push_pull_filtering_pb2.py generating proto file: mediapipe/util/tracking/tracking_pb2.py generating proto file: mediapipe/util/tracking/frame_selection_pb2.py generating proto file: mediapipe/util/tracking/tone_models_pb2.py generating proto file: mediapipe/util/tracking/frame_selection_solution_evaluator_pb2.py generating proto file: mediapipe/util/tracking/tone_estimation_pb2.py generating proto file: mediapipe/util/tracking/region_flow_pb2.py (envname) wangzehang@192 mediapipe % python3 setup.py install --link-opencv /Users/wangzehang/miniforge3/envs/envname/lib/python3.8/site-packages/setuptools/config/init.py:28: SetuptoolsDeprecationWarning: As setuptools moves its configuration towards
pyproject.toml
,setuptools.config.parse_configuration
became deprecated.For the time being, you can use the
setuptools.config.setupcfg
module to access a backward compatible API, but this module is provisional and might be removed in the future.warnings.warn(dedent(msg), SetuptoolsDeprecationWarning) /Users/wangzehang/miniforge3/envs/envname/lib/python3.8/site-packages/setuptools/dist.py:507: UserWarning: The version specified ('dev') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details. warnings.warn( running install /Users/wangzehang/miniforge3/envs/envname/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build_binary_graphs generating binarypb: mediapipe/modules/face_detection/face_detection_short_range_cpu WARNING: Ignoring JAVA_HOME, because it must point to a JDK, not a JRE. WARNING: Ignoring JAVA_HOME, because it must point to a JDK, not a JRE. DEBUG: /private/var/tmp/_bazel_wangzehang/8b2bdf8a61f893bff75b2bd4dfd14645/external/org_tensorflow/third_party/repo.bzl:124:14: Warning: skipping import of repository 'com_google_absl' because it already exists. DEBUG: /private/var/tmp/_bazel_wangzehang/8b2bdf8a61f893bff75b2bd4dfd14645/external/org_tensorflow/third_party/repo.bzl:124:14: Warning: skipping import of repository 'com_google_benchmark' because it already exists. DEBUG: /private/var/tmp/_bazel_wangzehang/8b2bdf8a61f893bff75b2bd4dfd14645/external/org_tensorflow/third_party/repo.bzl:124:14: Warning: skipping import of repository 'pybind11_bazel' because it already exists. DEBUG: /private/var/tmp/_bazel_wangzehang/8b2bdf8a61f893bff75b2bd4dfd14645/external/org_tensorflow/third_party/repo.bzl:124:14: Warning: skipping import of repository 'com_google_protobuf' because it already exists. DEBUG: /private/var/tmp/_bazel_wangzehang/8b2bdf8a61f893bff75b2bd4dfd14645/external/org_tensorflow/third_party/repo.bzl:124:14: Warning: skipping import of repository 'com_google_googletest' because it already exists. DEBUG: /private/var/tmp/_bazel_wangzehang/8b2bdf8a61f893bff75b2bd4dfd14645/external/org_tensorflow/third_party/repo.bzl:124:14: Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists. DEBUG: /private/var/tmp/_bazel_wangzehang/8b2bdf8a61f893bff75b2bd4dfd14645/external/org_tensorflow/third_party/repo.bzl:124:14: Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists. DEBUG: /private/var/tmp/_bazel_wangzehang/8b2bdf8a61f893bff75b2bd4dfd14645/external/org_tensorflow/third_party/repo.bzl:124:14: Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists. DEBUG: /private/var/tmp/_bazel_wangzehang/8b2bdf8a61f893bff75b2bd4dfd14645/external/org_tensorflow/third_party/repo.bzl:124:14: Warning: skipping import of repository 'build_bazel_apple_support' because it already exists. DEBUG: /private/var/tmp/_bazel_wangzehang/8b2bdf8a61f893bff75b2bd4dfd14645/external/org_tensorflow/third_party/repo.bzl:124:14: Warning: skipping import of repository 'xctestrunner' because it already exists. DEBUG: /private/var/tmp/_bazel_wangzehang/8b2bdf8a61f893bff75b2bd4dfd14645/external/org_tensorflow/third_party/repo.bzl:124:14: Warning: skipping import of repository 'pybind11' because it already exists. INFO: Build options --action_env, --compilation_mode, and --copt have changed, discarding analysis cache. WARNING: /Users/wangzehang/Downloads/mediapipe/mediapipe/framework/tool/BUILD:184:24: in cc_library rule //mediapipe/framework/tool:field_data_cc_proto: target '//mediapipe/framework/tool:field_data_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use. WARNING: /Users/wangzehang/Downloads/mediapipe/mediapipe/framework/BUILD:54:24: in cc_library rule //mediapipe/framework:calculator_cc_proto: target '//mediapipe/framework:calculator_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use. INFO: Analyzed target //mediapipe/modules/face_detection:face_detection_short_range_cpu (127 packages loaded, 4810 targets configured). INFO: Found 1 target... ERROR: /Users/wangzehang/Downloads/mediapipe/mediapipe/framework/formats/BUILD:205:11: Compiling mediapipe/framework/formats/location.cc failed: (Exit 1): cc_wrapper.sh failed: error executing command external/local_config_cc/cc_wrapper.sh -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics ... (remaining 68 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging In file included from mediapipe/framework/formats/location.cc:15: In file included from ./mediapipe/framework/formats/location.h:44: ./mediapipe/framework/port/opencv_core_inc.h:18:10: fatal error: 'opencv2/core/version.hpp' file not found
include <opencv2/core/version.hpp>
1 error generated. Target //mediapipe/modules/face_detection:face_detection_short_range_cpu failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 15.198s, Critical Path: 4.84s INFO: 12 processes: 12 internal. FAILED: Build did NOT complete successfully