Models: no such attribute 'paropts' in 'py_binary' rule

Created on 30 Mar 2018  路  4Comments  路  Source: tensorflow/models

Failed to build download_and_convert_imagenet with Bazel

Error log

$ bazel build :download_and_convert_imagenet
ERROR: /root/projects/models/research/slim/BUILD:697:1: //:train_image_classifier: no such attribute 'paropts' in 'py_binary' rule
ERROR: /root/projects/models/research/slim/BUILD:721:1: //:export_inference_graph: no such attribute 'paropts' in 'py_binary' rule
ERROR: error loading package '': Package '' contains errors
INFO: Elapsed time: 0.337s
FAILED: Build did NOT complete successfully (0 packages loaded)

Bazel version

$ bazel version
Build label: 0.11.1
Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue May 14 07:48:23 +50148 (1520362424903)
Build timestamp: 1520362424903
Build timestamp as int: 1520362424903

Most helpful comment

Build successfully after commented out the un-supported paropts line in BUILD

All 4 comments

Build successfully after commented out the un-supported paropts line in BUILD

Hi
I get an same error, How to fix it? Can you describe the details of the solution?

I've fix it . I commented tow lines of code including "paropts"

Yes, comment it out the lines with 'parapets' in BUILD file. It fixed my problem.

Was this page helpful?
0 / 5 - 0 ratings