Repository navigation
tensorflow 2.0.0 crashes with protobuf 3.10.1 on macOS #35573
Description
Activity
- addedsubtype:macOSmacOS Build/Installation issuesmacOS Build/Installation issuesTF 2.0Issues relating to TensorFlow 2.0Issues relating to TensorFlow 2.0type:build/installBuild and install issuesBuild and install issues
on Jan 6, 2020 Are you installing TF through macports or pip.
Unless macports just fetches the package from what we are building, it may be built with different flags, causing all kinds of ABI issues.
Similar for protobuf. If these are packages not built by us, I do not think we can do much to help.If this issue is reproducible with the TF 2.0 from pip(pypi) and latest protobuf from pypi(3.11.2, or even 3.10.1), we can debug. Otherwise, I would say this is potentially due to th way macports builds these packages.
Good point. The issue isn't reproducible with a pip install, so it's some MacPorts flag or related issue.
I'll try to produce a clean, working build on macOS and reflect the working steps in a Portfile.
Another thing you can try is to install an older version of libprotobuf and *protobuf. I had the same issue but I was using anaconda. I went from version 3.10.1 to version 3.8.0. After doing this it started working. Not sure if this is because I unistalled and reinstalled thoughs pakcages or if it was a version issue.
Reacted by Philip Shaw, Ziwei Zhang, Skynet and HimI experience the same issue if I install tensorflow from conda, which gets libprotobuf 3.11.1
Workaround ofprotobuf==3.8suggested here worked for me on conda as well.Reacted by hestrang1993, Ziwei Zhang, Piotr Januszewski, Skynet, Josh Levy-Kramer, Alexander Gechis and ChristopherHaensselI experience the same issue if I install tensorflow from conda, which gets libprotobuf 3.11.1
Workaround ofprotobuf==3.8suggested here worked for me on conda as well.It works with protobuf 3.8. Thank you.
had a similar issue when loading Tensorboard in a jupyter notebook. uninstalling protobuf 3.11.2 and installing protobuf==3.8 worked. protobuff==3.11.3 did NOT work.
Reacted by Josh Levy-Kramer and ChristopherHaenssel7 remaining items
downgrade onnx to 1.6.0 work for me.
It doesn't work for tf-2.0.0 and protobuf-3.8.0, and i have tried many versions for tf and protobuf , but this error still exists. Which one can tell me the exactly reason and the solution for this problem?
I got the same error, and use tf2.0.0 and protobuf 3.6, seems solved
- added a commit that references this issue
on Feb 25, 2021 - added a commit that references this issue
on Apr 24, 2021 @essandess Looks like this was resolved. Can you please confirm whether this is still an issue with recent TF version? Thanks!
- addedstat:awaiting responseStatus - Awaiting response from authorStatus - Awaiting response from author
on Jun 8, 2021 Yes, thank you, resolved with TF 2.5.0 and protobuf 3.17.0.
Closing this issue as this was resolved. Thanks!
Please open a new issue, this issues has been closed 2 years ago.

Using MacPorts with the latest up-to-date versions (tensorflow 2.0.0, protobuf 3.10.1),
This is reported and closed in tensorflow/tensorboard#2985, but the issue persists.
A workaround is
pip-3.7 install protobuf==3.8, but this doesn't work with system-level, up-to-date library installs like with MacPorts. Also see: https://trac.macports.org/ticket/59826Is this an issue with TF, or with protobuf?