[MacPorts] #62474: tensorflow build fails on 10.15

MacPorts noreply at macports.org
Thu Mar 25 13:45:44 UTC 2021


#62474: tensorflow build fails on 10.15
----------------------------+--------------------------
  Reporter:  essandess      |      Owner:  emcrisostomo
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.6.4
Resolution:                 |   Keywords:
      Port:  py-tensorflow  |
----------------------------+--------------------------

Comment (by essandess):

 I'm on tho this chronic issue building tensorflow: {{{Symbol not found:
 __ZN10tensorflow4data12experimental19SnapshotDatasetV2Op13kReaderPrefixE}}}.

 Tensorflow builds and installs using the latest bazel PG and Portfile, but
 it doesn't load because of some missing symbol.

 This was an issue for a long time in MacPorts pre-compiled version. Was it
 ever resolved?

 {{{
 python3 -c 'import tensorflow as tf'
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/tensorflow/python/pywrap_tensorflow.py", line 64, in
 <module>
     from tensorflow.python._pywrap_tensorflow_internal import *
 ImportError:
 dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/tensorflow/python/_pywrap_tensorflow_internal.so, 6):
 Symbol not found:
 __ZN10tensorflow4data12experimental19SnapshotDatasetV2Op13kReaderPrefixE
   Referenced from:
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/tensorflow/python/_pywrap_tensorflow_internal.so
   Expected in: flat namespace
  in
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/tensorflow/python/_pywrap_tensorflow_internal.so

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "<string>", line 1, in <module>
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/tensorflow/__init__.py", line 41, in <module>
     from tensorflow.python.tools import module_util as _module_util
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/tensorflow/python/__init__.py", line 39, in <module>
     from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/tensorflow/python/pywrap_tensorflow.py", line 83, in
 <module>
     raise ImportError(msg)
 ImportError: Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/tensorflow/python/pywrap_tensorflow.py", line 64, in
 <module>
     from tensorflow.python._pywrap_tensorflow_internal import *
 ImportError:
 dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/tensorflow/python/_pywrap_tensorflow_internal.so, 6):
 Symbol not found:
 __ZN10tensorflow4data12experimental19SnapshotDatasetV2Op13kReaderPrefixE
   Referenced from:
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/tensorflow/python/_pywrap_tensorflow_internal.so
   Expected in: flat namespace
  in
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/tensorflow/python/_pywrap_tensorflow_internal.so


 Failed to load the native TensorFlow runtime.

 See https://www.tensorflow.org/install/errors

 for some common reasons and solutions.  Include the entire stack trace
 above this error message when asking for help.
 }}}

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


More information about the macports-tickets mailing list