Skip to content

Fixes for TensorFlow compilation and running problems - #1500

Closed
petewarden wants to merge 1 commit into
protocolbuffers:masterfrom
petewarden:master
Closed

petewarden wants to merge 1 commit into
protocolbuffers:masterfrom
petewarden:master

Conversation

@petewarden

Copy link
Copy Markdown
Contributor

These are the changes I've found necessary to successfully build and run the top-of-tree protobuf with TensorFlow. I don't understand the intricacies of the Python importing changes, those fixes come from empirically trying different import paths until I found one that worked!

@grpc-kokoro

Copy link
Copy Markdown

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok to test.

@davidzchen

Copy link
Copy Markdown
Contributor

I think the changes to add std:: to the using statements are needed, but the imports attribute of Bazel's Python rules should cover adding the right directory to the PYTHONPATH, and the changes to the Python imports here are not necessary.

I have verified that all tests are passing when running baze test //tensorflow/python/... with my patch to replace the vendored protobuf tree in TensorFlow with a workspace dependency in tensorflow/tensorflow#1289.

However, if you happen to have protobuf installed on your local system and are getting Python build errors, most likely, you are running into bazelbuild/bazel#1209.

@davidzchen

Copy link
Copy Markdown
Contributor

FYI I have opened #1586 for the Python fixes.

@TeBoring TeBoring self-assigned this Jun 8, 2018
@TeBoring TeBoring closed this Jun 8, 2018
adellahlou pushed a commit to adellahlou/protobuf that referenced this pull request Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants