Yocto meta-nn and meta-tensorflow

Hi, here is the problem when I’m tring to bitbake the “tensorflow-lite“ in G720 Yocto.

The Error Log say I got the Github 429, it’s too many requests.

Is there ant one got the same problem and how it fix ?

Hi @Huang_Shu_Chun ,

It seems like you are hitting the GitHub API rate limit. Could you please share the specific error log snippet?
We need to check which URL or submodule is triggering the 429 error during the do_fetch task to suggest a proper fix.

Thanks for the reply. here is the Error LOG:

ERROR: tensorflow-native-2.16.1-r0 do_compile: ExecutionError(‘/media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/temp/run.do_compile.101445’, 1, None, None)
ERROR: Logfile of failure stored in: /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/temp/log.do_compile.101445
Log data follows:
| DEBUG: Executing shell function do_compile
| Extracting Bazel installation…
| INFO: Options provided by the client:
| Inherited ‘common’ options: --isatty=0 --terminal_columns=80
| INFO: Reading rc options for ‘build’ from /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/git/.bazelrc:
| Inherited ‘common’ options: --experimental_repo_remote_exec
| INFO: Reading rc options for ‘build’ from /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/git/.bazelrc:
| ‘build’ options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --features=-force_no_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility
| INFO: Reading rc options for ‘build’ from /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/git/.tf_configure.bazelrc:
| ‘build’ options: --action_env PYTHON_BIN_PATH=/media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/recipe-sysroot-native/usr/bin/python3-native/python3 --action_env PYTHON_LIB_PATH=/media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/recipe-sysroot-native/usr/lib/python3.12/site-packages --python_path=/media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/recipe-sysroot-native/usr/bin/python3-native/python3 --define=with_xla_support=false
| INFO: Reading rc options for ‘build’ from /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/git/bazelrc:
| ‘build’ options: --verbose_failures --spawn_strategy=standalone --genrule_strategy=standalone --linkopt=-Wl,–no-as-needed --host_linkopt=-Wl,–no-as-needed --host_conlyopt=-D_PYTHON_INCLUDE_NATIVE --host_cxxopt=-D_PYTHON_INCLUDE_NATIVE --conlyopt=-D_PYTHON_INCLUDE_TARGET --cxxopt=-D_PYTHON_INCLUDE_TARGET --strip=never --python_path=python3 --distdir=/media/yocto/usblab/iot-yocto/build/../downloads --jobs=HOST_CPUS*.25 --local_cpu_resources=HOST_CPUS*.25 --local_ram_resources=HOST_RAM*.25 --conlyopt=-Wno-stringop-overflow --conlyopt=-Wno-dangling-pointer
| INFO: Found applicable config definition build:short_logs in file /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/git/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
| INFO: Found applicable config definition build:v2 in file /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/git/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
| INFO: Found applicable config definition build:linux in file /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/git/.bazelrc: --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --experimental_guard_against_concurrent_changes
| INFO: Found applicable config definition build:dynamic_kernels in file /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/git/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
| INFO: Repository rules_foreign_cc instantiated at:
| /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/git/WORKSPACE:90:14: in
| /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/git/tensorflow/workspace1.bzl:35:19: in workspace
| /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/bazel/output_base/external/com_google_benchmark/bazel/benchmark_deps.bzl:18:21: in benchmark_deps
| Repository rule http_archive defined at:
| /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/bazel/output_base/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in
| WARNING: Download from https://github.com/bazelbuild/rules_foreign_cc/archive/0.7.1.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 429 Too Many Requests
| ERROR: An error occurred during the fetch of repository ‘rules_foreign_cc’:
| Traceback (most recent call last):
| File “/media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/bazel/output_base/external/bazel_tools/tools/build_defs/repo/http.bzl”, line 132, column 45, in _http_archive_impl
| download_info = ctx.download_and_extract(
| Error in download_and_extract: java.io.IOException: Error downloading [https://github.com/bazelbuild/rules_foreign_cc/archive/0.7.1.tar.gz\] to /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/bazel/output_base/external/rules_foreign_cc/temp1428616768415748037/0.7.1.tar.gz: GET returned 429 Too Many Requests
| ERROR: /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/git/WORKSPACE:90:14: fetching http_archive rule //external:rules_foreign_cc: Traceback (most recent call last):
| File “/media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/bazel/output_base/external/bazel_tools/tools/build_defs/repo/http.bzl”, line 132, column 45, in _http_archive_impl
| download_info = ctx.download_and_extract(
| Error in download_and_extract: java.io.IOException: Error downloading [https://github.com/bazelbuild/rules_foreign_cc/archive/0.7.1.tar.gz\] to /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/bazel/output_base/external/rules_foreign_cc/temp1428616768415748037/0.7.1.tar.gz: GET returned 429 Too Many Requests
| INFO: Repository com_google_protobuf instantiated at:
| /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/git/WORKSPACE:86:14: in
| /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/git/tensorflow/workspace2.bzl:940:21: in workspace
| /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/git/tensorflow/workspace2.bzl:377:20: in _tf_repositories
| /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/git/third_party/repo.bzl:136:21: in tf_http_archive
| Repository rule _tf_http_archive defined at:
| /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/git/third_party/repo.bzl:89:35: in
| ERROR: Error computing the main repository mapping: no such package ‘@rules_foreign_cc//foreign_cc’: java.io.IOException: Error downloading [https://github.com/bazelbuild/rules_foreign_cc/archive/0.7.1.tar.gz\] to /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/bazel/output_base/external/rules_foreign_cc/temp1428616768415748037/0.7.1.tar.gz: GET returned 429 Too Many Requests
| WARNING: exit code 1 from a shell command.
ERROR: Task (/media/yocto/usblab/iot-yocto/src/poky/../meta-tensorflow/recipes-framework/tensorflow/tensorflow-native_2.16.1.bb:do_compile) failed with exit code ‘1’
NOTE: Tasks Summary: Attempted 1838 tasks of which 1826 didn’t need to be rerun and 1 failed.

Summary: 1 task failed:
/media/yocto/usblab/iot-yocto/src/poky/../meta-tensorflow/recipes-framework/tensorflow/tensorflow-native_2.16.1.bb:do_compile
log: /media/yocto/usblab/iot-yocto/build/tmp/work/x86_64-linux/tensorflow-native/2.16.1/temp/log.do_compile.101445
Summary: There was 1 ERROR message, returning a non-zero exit code.

I have tried the “tensorflow“ and “tensorflow-lite“ and there is the same error.

But here is the thing, when I tried bitbake “bazel-native“ it’s succeed.