question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TFLite fails to build in the Docker container

See original GitHub issue

Hi, I am trying to run your demo on my Mac and when I run yarn build:tflite:all and bazel tries to build tflite, it fails with this error :

$ docker exec -w /tflite_src tflite bazel build --config=wasm -c opt :tflite
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
Loading:
Loading: 0 packages loaded
ERROR: error loading package '': cannot load '@org_tensorflow//tensorflow:workspace.bzl': no such file
INFO: Elapsed time: 4.869s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I would guess I have to change something in the /tflite_src/WORKSPACE file but I don’t know how bazel works yet. I will try to fix the issue and will comment again if I find how to get rid of the error.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
RaphaelRoyerRivardcommented, Mar 12, 2021

I deleted the container and replaced the following line in Dockerfile

RUN git -C /tensorflow_src pull

with

RUN git -C /tensorflow_src fetch
RUN git -C /tensorflow_src checkout 85c8b2a817f95a3e979ecd1ed95bff1dc1335cff

which is the 2.4.1 tag of Tensorflow and it built successfully 😃

0reactions
Volcomixcommented, Mar 12, 2021

3d1593d should fix the issue.

Let me know if you still have troubles to build TFLite (if you decide to switch back to tensorflow master 😉).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to selectively build TensorFlow Lite with Docker #46514
Built and ran the tflite-docker container following instructions from here. First downloaded dockerfile from this place and then ran.
Read more >
Error in reducing Tensorflow lite binary size
I have setup docker using the guide here ( Build TensorFlow Lite for Android) and I have no problem building fat binaries only...
Read more >
TensorFlow Docker Images
Official Docker images for the machine learning framework TensorFlow (http://www.tensorflow.org)
Read more >
Docker container with Python modules gets too big
The builder image can be as big as it needs to be to build and the target image as small as possible and...
Read more >
How to Train New TensorFlow Lite Micro Speech ... - Digikey
This technique does not work yet! Go thru the process to create/fork the official Tensorflow Docker image. After running apt-get install -y curl...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found