tflite-micro icon indicating copy to clipboard operation
tflite-micro copied to clipboard

Failure in test_generate_micro_mutable_op_resolver_tests.sh script

Open AdrianLundell opened this issue 1 year ago • 7 comments

The version of setuptools pinned in #2733 is incompatible with bazel, more info here: https://github.com/pypa/setuptools/issues/4487. Manually downgrading to 70.3.0 resolves this issue.

Tested on commit 389e775, using bazel 7.2.1 on a x86 machine

> tensorflow/lite/micro/tools/ci_build/test_generate_micro_mutable_op_resolver_tests.sh
...

FileNotFoundError: [Errno 2] No such file or directory: '/home/matlun01/.cache/bazel/_bazel_matlun01/efbc9c212fc395edf602ea0bb1bc77d0/execroot/tflite_micro/bazel-out/k8-fastbuild/bin/tensorflow/lite/micro/tools/gen_micro_mutable_op_resolver/generate_micro_mutable_op_resolver_from_model_test.runfiles/tflm_pip_deps_setuptools/site-packages/setuptools/_vendor/jaraco/text/Lorem ipsum.txt'

AdrianLundell avatar Oct 30 '24 14:10 AdrianLundell

Alternative fix is creating the file in the pip package installation, something like this:

export JARACO_TEXT=$(find ~/.cache -wholename "**/bin/tensorflow/lite/micro/tools/gen_micro_mutable_op_resolver/generate_micro_mutable_op_resolver_from_model_test.runfiles/tflm_pip_deps_setuptools/site-packages/setuptools/_vendor/jaraco/text")  #Or wherever else the error message points
touch $JARACO_TEXT/Lorem ipsum.txt"

AdrianLundell avatar Oct 30 '24 15:10 AdrianLundell

"This issue is being marked as stale due to inactivity. Remove label or comment to prevent closure in 5 days."

github-actions[bot] avatar Nov 27 '24 10:11 github-actions[bot]

"This issue is being closed because it has been marked as stale for 5 days with no further activity."

github-actions[bot] avatar Dec 02 '24 10:12 github-actions[bot]

"This issue is being marked as stale due to inactivity. Remove label or comment to prevent closure in 5 days."

github-actions[bot] avatar Dec 29 '24 10:12 github-actions[bot]

"This issue is being closed because it has been marked as stale for 5 days with no further activity."

github-actions[bot] avatar Jan 03 '25 10:01 github-actions[bot]

"This issue is being marked as stale due to inactivity. Remove label or comment to prevent closure in 5 days."

github-actions[bot] avatar Feb 03 '25 10:02 github-actions[bot]

"This issue is being closed because it has been marked as stale for 5 days with no further activity."

github-actions[bot] avatar Feb 09 '25 10:02 github-actions[bot]