#61279 closed defect (fixed)
py-tensorflow: Symbol not found: __ZN10tensorflow4data12experimental19SnapshotDatasetV2Op10kShardFuncE
Reported by: | essandess (Steve Smith) | Owned by: | emcrisostomo (Enrico Maria Crisostomo) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.3 |
Keywords: | Cc: | cjones051073 (Chris Jones) | |
Port: | py-tensorflow |
Description
py37-tensorflow @2.3.1_0 error: Symbol not found: __ZN10tensorflow4data12experimental19SnapshotDatasetV2Op10kShardFuncE
$ python3 -c 'import tensorflow as tf' Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/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.7/lib/python3.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so, 6): Symbol not found: __ZN10tensorflow4data12experimental19SnapshotDatasetV2Op10kShardFuncE Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so Expected in: flat namespace in /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/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.7/lib/python3.7/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.7/lib/python3.7/site-packages/tensorflow/python/__init__.py", line 40, in <module> from tensorflow.python.eager import context File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow/python/eager/context.py", line 35, in <module> from tensorflow.python import pywrap_tfe File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow/python/pywrap_tfe.py", line 28, in <module> from tensorflow.python import pywrap_tensorflow File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/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.7/lib/python3.7/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.7/lib/python3.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so, 6): Symbol not found: __ZN10tensorflow4data12experimental19SnapshotDatasetV2Op10kShardFuncE Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so Expected in: flat namespace in /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/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.
Change History (7)
comment:1 Changed 4 years ago by I-Thompson (Ian Thompson)
comment:2 Changed 4 years ago by mf2k (Frank Schima)
Cc: | emcrisostomo removed |
---|---|
Owner: | set to emcrisostomo |
Status: | new → assigned |
comment:3 Changed 4 years ago by fgp (Florian G. Pflug)
I have exactly the same problem on macOS 10.15.17. I tried rebuilding tensorflow locally (using "port install -s") but to no avail. Is there any additional information I can provide to help fix this?
comment:4 Changed 4 years ago by essandess (Steve Smith)
Same issue with the latest bazel PG and py-tensorflow Portfile.
comment:5 Changed 4 years ago by cjones051073 (Chris Jones)
see e.g. https://github.com/tensorflow/tensorflow/issues/41682
might be fixable with a small patch. Let me try.
comment:6 Changed 4 years ago by Chris Jones <jonesc@…>
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
This is not a build error, but an error on first import: as shown in report. It does not occur in tensorflow-2.3.0, so I install that with pip to get tf working on a mac.