[MacPorts] #63237: py39-tensorflow: Symbol not found: __ZN10tensorflow4data17FinalizeDatasetOp15kHasCapturedRefE

MacPorts noreply at macports.org
Fri Jul 9 11:06:27 UTC 2021


#63237: py39-tensorflow: Symbol not found:
__ZN10tensorflow4data17FinalizeDatasetOp15kHasCapturedRefE
--------------------+-----------------------------
 Reporter:  p-bro   |      Owner:  emcrisostomo
     Type:  defect  |     Status:  assigned
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  py39-tensorflow
--------------------+-----------------------------
 After successfully installing py39-tensorflow (`import tensorflow as tf`),
 I get the following error when I attempt to import tensorflow in python
 (full context below):


 {{{
 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:
 __ZN10tensorflow4data17FinalizeDatasetOp15kHasCapturedRefE
   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
 }}}

 This is unexpected behaviour. A similar error message is reported in
 #60663, but during build, not run phase.

 Full traceback information:
 {{{
 ---------------------------------------------------------------------------
 ImportError                               Traceback (most recent call
 last)
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/tensorflow/python/pywrap_tensorflow.py in <module>
      63   try:
 ---> 64     from tensorflow.python._pywrap_tensorflow_internal import *
      65   # This try catch logic is because there is no bazel equivalent
 for py_extension.

 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:
 __ZN10tensorflow4data17FinalizeDatasetOp15kHasCapturedRefE
   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:

 ImportError                               Traceback (most recent call
 last)
 <ipython-input-13-64156d691fe5> in <module>
 ----> 1 import tensorflow as tf

 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/tensorflow/__init__.py in <module>
      39 import sys as _sys
      40
 ---> 41 from tensorflow.python.tools import module_util as _module_util
      42 from tensorflow.python.util.lazy_loader import LazyLoader as
 _LazyLoader
      43

 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/tensorflow/python/__init__.py in <module>
      38 # pylint: disable=wildcard-import,g-bad-import-order,g-import-not-
 at-top
      39
 ---> 40 from tensorflow.python.eager import context
      41 from tensorflow.python import pywrap_tensorflow as
 _pywrap_tensorflow
      42

 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/tensorflow/python/eager/context.py in <module>
      33 from tensorflow.core.protobuf import config_pb2
      34 from tensorflow.core.protobuf import rewriter_config_pb2
 ---> 35 from tensorflow.python import pywrap_tfe
      36 from tensorflow.python import tf2
      37 from tensorflow.python.client import pywrap_tf_session

 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/tensorflow/python/pywrap_tfe.py in <module>
      26
      27 # pylint: disable=invalid-import-order,g-bad-import-order,
 wildcard-import, unused-import
 ---> 28 from tensorflow.python import pywrap_tensorflow
      29 from tensorflow.python._pywrap_tfe import *

 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/tensorflow/python/pywrap_tensorflow.py in <module>
      81 for some common reasons and solutions.  Include the entire stack
 trace
      82 above this error message when asking for help.""" %
 traceback.format_exc()
 ---> 83   raise ImportError(msg)
      84
      85 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import
 ,line-too-long

 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:
 __ZN10tensorflow4data17FinalizeDatasetOp15kHasCapturedRefE
   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/63237>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list