Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bazel 0.22.0 error: Unable to load package for '//tensorflow/tools/def_file_filter:def_file_filter_configure.bzl' #7501

Closed
AliceDinh opened this issue Feb 22, 2019 · 1 comment

Comments

@AliceDinh
Copy link

Description of the problem / feature request:

I run bazel to convert tf model to tflite model according to this tutorial Running on mobile with TensorFlow Lite
ERROR: error loading package '': in F:/card-details-recognition-android-version2/tensorflow/tensorflow/workspace.bzl: Unable to load package for '//tensorflow/tools/def_file_filter:def_file_filter_configure.bzl': BUILD file not found on package path

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

bazel run -c opt tensorflow/lite/toco:toco -- --input_file=F:/ssd_mobilenet_v1_coco_2018_01_28/lite/tflite_graph.pb --output_file=F:/ssd_mobilenet_v1_coco_2018_01_28/lite/detect.tflite --input_shapes=1,300,300,3 --input_arrays=normalized_input_image_tensor --output_arrays='TFLite_Detection_PostProcess','TFLite_Detection_PostProcess:1','TFLite_Detection_PostProcess:2','TFLite_Detection_PostProcess:3' --inference_type=QUANTIZED_UINT8 --mean_values=128 --std_values=128 --change_concat_input_ranges=false --allow_custom_ops
The error is:
ERROR: error loading package '': in F:/tensorflow/tensorflow/workspace.bzl: Unable to load package for '//tensorflow/tools/def_file_filter:def_file_filter_configure.bzl': BUILD file not found on package path

What operating system are you running Bazel on?

Window10

What's the output of bazel info release?

release 0.22.0

What's the output of git remote get-url origin ; git rev-parse master ; git rev-parse HEAD ?

git remote get-url origin
https://github.com/ixuexi/bazel.git
git rev-parse master
edeebd8
git rev-parse HEAD
edeebd8

Have you found anything relevant by searching the web?

bazel build fails with error loading package '' when invoked in a git submodule foreach command

@aehlig
Copy link
Contributor

aehlig commented Feb 22, 2019

I'm a bit confused, what this issue is about. First of all, the bazel commit you point at...

git remote get-url origin
https://github.com/ixuexi/bazel.git
git rev-parse master
edeebd8
git rev-parse HEAD
edeebd8

is from September 2017 wheras bazel 0.22.0 is from January 2019; that's more than a year off.

Secondly, you quote the error message

ERROR: error loading package '': in F:/card-details-recognition-android-version2/tensorflow/tensorflow/workspace.bzl: Unable to load package for '//tensorflow/tools/def_file_filter:def_file_filter_configure.bzl': BUILD file not found on package path

Now, it complains that it didn't find a BUILD in the directory tensorflow/tools/def_file_filter. Does such a file exist? Does the directory even exist? If the BUILD file exists, please provide more information on how the source tree looks like (how can we obtain it?). If the BUILD file does not exist, the error message is legitimate and it is not a bazel problem, but an issue with the repository you're trying to build.

Closing for now as a duplicate of tensorflow/tensorflow#25997. Please reopen if it actually turns out to be a bazel issue.

@aehlig aehlig closed this as completed Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants