8000 fatal error: tensorflow/core/protobuf/error_codes.pb.h: No such file or directory · Issue #42721 · tensorflow/tensorflow · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fatal error: tensorflow/core/protobuf/error_codes.pb.h: No such file or directory #42721

New issue
8000

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

Closed
AngeloMascaro opened this issue Aug 28, 2020 · 9 comments
Assignees
Labels
stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues TF 2.3 Issues related to TF 2.3 type:build/install Build and install issues

Comments

@AngeloMascaro
Copy link
AngeloMascaro commented Aug 28, 2020

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template

System information

compile any program that includes tensorflow/core/public/session.h

gcc -I/home/amascaro/Programming/src/tensorflow -I/home/amascaro/.local/lib/python3.6/site-packages/tensorflow_core/include/ loader.cc
In file included from /home/amascaro/Programming/src/tensorflow/tensorflow/core/platform/errors.h:22:0,
from /home/amascaro/Programming/src/tensorflow/tensorflow/core/lib/core/errors.h:19,
from /home/amascaro/Programming/src/tensorflow/tensorflow/core/framework/tensor_shape.h:23,
from /home/amascaro/Programming/src/tensorflow/tensorflow/core/framework/tensor.h:24,
from /home/amascaro/Programming/src/tensorflow/tensorflow/core/public/session.h:24,
from loader.cc:1:
/home/amascaro/Programming/src/tensorflow/tensorflow/core/platform/status.h:28:10: fatal error: tensorflow/core/protobuf/error_codes.pb.h: No such file or directory
#include "tensorflow/core/protobuf/error_codes.pb.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

The missing file is under another path: /home/amascaro/.local/lib/python3.6/site-packages/tensorflow_core/include/tensorflow/core/lib/core/error_codes.pb.h

@AngeloMascaro AngeloMascaro added the type:build/install Build and install issues label Aug 28, 2020
@amahendrakar
Copy link
Contributor

@AngeloMascaro,
Could you please provide the complete code or the commands you have executed before running into this issue.

Also, take a look at this comment from a similar issue and let us know if it helps. Thanks!

@amahendrakar amahendrakar added stat:awaiting response Status - Awaiting response from author subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues TF 2.3 Issues related to TF 2.3 labels Aug 28, 2020
@fisakhan
Copy link
fisakhan commented Sep 3, 2020

I experience a similar problem. While running the following command on Ubuntu 18.04 after compiling TensorFlow 2.3 C++ API (using Bazel). g++ -std=c++11 -I/usr/local/include/tf -I/usr/local/include/tf/third_party/eigen3 -L/usr/local/lib hello.cc -o hello
I searched for the file "error_codes.pb.h" on my computer but its not there. Although, I have installed protoc 3.5.

#include "tensorflow/cc/client/client_session.h"
#include "tensorflow/cc/ops/standard_ops.h"
#include "tensorflow/core/framework/tensor.h"

int main() {
 using namespace tensorflow;
 using namespace tensorflow::ops;
 Scope root = Scope::NewRootScope();
 // Matrix A = [3 2; -1 0]
 auto A = Const(root, { {3.f, 2.f}, {-1.f, 0.f} });
 // Vector b = [3 5]
 auto b = Const(root, { {3.f, 5.f} });
 // v = Ab^T
 auto v = MatMul(root.WithOpName("v"), A, b, MatMul::TransposeB(true));
 std::vector<Tensor> outputs;
 ClientSession session(root);
 // Run and fetch v
 TF_CHECK_OK(session.Run({v}, &outputs));
 // Expect outputs[0] == [19; -3]
 LOG(INFO) << outputs[0].matrix<float>();
 return 0;
}

@amahendrakar
Copy link
Contributor

Also, take a look at this comment from a similar issue and let us know if it helps. Thanks!

@AngeloMascaro,
Is this still an issue? Please feel free to close the issue if resolved. Thanks!

@amahendrakar
Copy link
Contributor

I experience a similar problem.

@fisakhan,
Could you please submit a new issue from this link and fill in the template, so that we can track the issue there. Thanks!

@amahendrakar amahendrakar added stat:awaiting response Status - Awaiting response from author and removed stat:awaiting response Status - Awaiting response from author labels Sep 8, 2020
@AngeloMascaro
Copy link
Author
AngeloMascaro commented Sep 8, 2020 via email

@tensorflowbutler tensorflowbutler removed the stat:awaiting response Status - Awaiting response from author label Sep 10, 2020
@amahendrakar
Copy link
Contributor

I check it today afternoon or tomorrow morning and I let you know.

@AngeloMascaro,
Any updates regarding this issue? Did you get a chance to look into this? Thanks!

@amahendrakar amahendrakar added the stat:awaiting response Status - Awaiting response from author label Sep 16, 2020
@google-ml-butler
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.

@google-ml-butler google-ml-butler bot added the stale This label marks the issue/pr stale - to be closed automatically if no activity label Sep 23, 2020
@google-ml-butler
Copy link

Closing as stale. Please reopen if you'd like to work on this further.

@google-ml-butler
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues TF 2.3 Issues related to TF 2.3 type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

4 participants
0