[MacPorts] #59826: py37-tensorflow 2.0.0 crashes with protobuf3

MacPorts noreply at macports.org
Sat Mar 28 23:35:09 UTC 2020


#59826: py37-tensorflow 2.0.0 crashes with protobuf3
----------------------------+--------------------------
  Reporter:  essandess      |      Owner:  emcrisostomo
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.6.2
Resolution:                 |   Keywords:
      Port:  py-tensorflow  |
----------------------------+--------------------------

Comment (by someuser12):

 Replying to [comment:3 essandess]:
 > The workaround is to use pip:
 >
 > {{{
 > sudo port deactivate py37-protobuf3
 > sudo -EH pip-3.7 install protobuf==3.8
 > }}}

 Thanks for pointing this.

 Another workaround: downgrade the `py-protobuf3` and `protobuf3-cpp` ports
 to version 3.8.0 (3.10.1 is not old enough; I did not test versions >
 3.8.0 and < 3.10.1, maybe they are suitable).

 Then, even if `py-tensorflow1` wasn't rebuilt (which can save more than 15
 hours of compilation on a Macbook Pro), `python -c 'import tensorflow'`
 doesn't crash anymore (tested on Mac OS 10.11 where `py-tensorflow` isn't
 available; based on the comments in the GitHub issue referenced above, my
 guess is that this workaround is also suitable for `py-tensorflow`).

 I'll try to attach rough, custom portfiles for `py-protobuf3` and
 `protobuf3-cpp` at version 3.8.0.

-- 
Ticket URL: <https://trac.macports.org/ticket/59826#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list