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.

no such package '@protobuf//': java.io.IOException: Error downloading ... Checksum was XXX but wanted YYY

See original GitHub issue

Description of the problem / feature request / question:

Whole day “bazel build” command fails. From logs I see that it compares check sum ‘@protobuf//’ and they do not match. I’ve tried it on several machines - had same error.

If possible, provide a minimal example to reproduce the problem:

git clone https://github.com/tensorflow/tensorflow.git cd tensorflow ./configure bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package

Environment info

  • Operating System: Ubuntu 16.04

  • Bazel version (output of bazel info release): release 0.5.2 (also tried 0.5.3, 0.5.4 - had same result)

Anything else, information or logs or outputs that would be helpful?

` oleksandrmalinin@oleksandrmalinin:~/serving/tensorflow$ bazel build -c opt tensorflow/python/tools:freeze_graph ERROR: /home/oleksandrmalinin/serving/tensorflow/tensorflow/python/tools/BUILD:32:1: error loading package ‘tensorflow/core’: Encountered error while reading extension file ‘protobuf.bzl’: no such package ‘@protobuf//’: java.io.IOException: Error downloading [https://github.com/google/protobuf/archive/0b059a3d8a8f8aa40dde7bea55edca4ec5dfea66.tar.gz, http://mirror.bazel.build/github.com/google/protobuf/archive/0b059a3d8a8f8aa40dde7bea55edca4ec5dfea66.tar.gz] to /home/oleksandrmalinin/.cache/bazel/_bazel_oleksandrmalinin/2c37fc95110689297cb64483825480ed/external/protobuf/0b059a3d8a8f8aa40dde7bea55edca4ec5dfea66.tar.gz: Checksum was e5fdeee6b28cf6c38d61243adff06628baa434a22b5ebb7432d2a7fbabbdb13d but wanted 6d43b9d223ce09e5d4ce8b0060cb8a7513577a35a64c7e3dad10f0703bf3ad93 and referenced by ‘//tensorflow/python/tools:freeze_graph’. ERROR: Analysis of target ‘//tensorflow/python/tools:freeze_graph’ failed; build aborted. INFO: Elapsed time: 14.464s

oleksandrmalinin@oleksandrmalinin:~/serving/tensorflow$ bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package ERROR: /home/oleksandrmalinin/serving/tensorflow/tensorflow/tools/pip_package/BUILD💯1: no such package ‘@protobuf//’: java.io.IOException: Error downloading [https://github.com/google/protobuf/archive/0b059a3d8a8f8aa40dde7bea55edca4ec5dfea66.tar.gz, http://mirror.bazel.build/github.com/google/protobuf/archive/0b059a3d8a8f8aa40dde7bea55edca4ec5dfea66.tar.gz] to /home/oleksandrmalinin/.cache/bazel/_bazel_oleksandrmalinin/2c37fc95110689297cb64483825480ed/external/protobuf/0b059a3d8a8f8aa40dde7bea55edca4ec5dfea66.tar.gz: Checksum was e5fdeee6b28cf6c38d61243adff06628baa434a22b5ebb7432d2a7fbabbdb13d but wanted 6d43b9d223ce09e5d4ce8b0060cb8a7513577a35a64c7e3dad10f0703bf3ad93 and referenced by ‘//tensorflow/tools/pip_package:licenses’. ERROR: Analysis of target ‘//tensorflow/tools/pip_package:build_pip_package’ failed; build aborted. INFO: Elapsed time: 1.090s `

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
davidstankecommented, Sep 14, 2017

Hey – take a look at https://github.com/tensorflow/tensorflow/issues/12979 … it seems GitHub changed the way they compress archives and invalidated all the existing checksums. 😦

1reaction
alexanderremmcommented, Oct 16, 2018

@nkjassal I am not sure why your protobuf.bzl is giving you an error. Double check the path to the archive. Mine ended up being something like this.

tf_local_repository(
        name = "protobuf_archive",
        path = "C:/bazel/repos/protobuf-3.6.0",
    )

    # We need to import the protobuf library under the names com_google_protobuf
    # and com_google_protobuf_cc to enable proto_library support in bazel.
    # Unfortunately there is no way to alias http_archives at the moment.
    tf_local_repository(
        name = "com_google_protobuf",
		path = "C:/bazel/repos/protobuf-3.6.0",
    )

The path should point to the directory of the BUILD file. Let me know if you are still having issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Protobuf error when compiling Java runtime library
proto file to .java file using the protoc command. The version of protobuf is 2.6.1 for both the installed binary and the Java...
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
Bug :1523 - "[IDEA] Offload work by distributing trivial ebuild ... No such file or directory" status:RESOLVED resolution:OBSOLETE severity:normal ...
Read more >
sbt Reference Manual — Combined Pages
There are not that many concepts, but sbt is not exactly like other build systems ... reports about SSL error using Ubuntu: Server...
Read more >
Apache HBase ™ Reference Guide
10/12/08 20:10:31 INFO hdfs.DFSClient: Could not obtain block blk_XXXXXXXXXXXXXXXXXXXXXX_YYYYYYYY from any node: java.io.IOException: No live nodes ...
Read more >
Bug List - Bugs - Eclipse
Bugzilla – Bug List ... 566278, z_Archiv, 3p, 3p-inbox, NEW, ---, java.lang. ... @SuppressWarnings("removal") not sufficient for Eclipse but sufficient for ...
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