Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to open file libtensorflow_io.so caused by undefined symbol

I have a tensorflow 2.2 conda environment setup with python 3.8.2 on Ubuntu.

I ran pip install tensorflow-io==0.14.0.

When I try to

import tensorflow-io as tfio

I get the erorr:

File "/home/somedir/miniconda3/envs/env_name/lib/python3.8/site-packages/tensorflow_io/core/python/ops/__init__.py", line 65, in _load_library
raise NotImplementedError(

NotImplementedError: unable to open file: libtensorflow_io.so, from paths: ['/home/somedir/miniconda3/envs/env_name/lib/python3.8/site-packages/tensorflow_io/core/python/ops/libtensorflow_io.so']

caused by: ['/home/somedir/miniconda3/envs/env_name/lib/python3.8/site-packages/tensorflow_io/core/python/ops/libtensorflow_io.so undefined symbol:
_ZN10tensorflow0pKernel11TraceStringEPNS_150pKernelContextEb']

What's the issue and how can I fix it?

like image 445
user3731622 Avatar asked Jan 01 '26 08:01

user3731622


1 Answers

As @Smedegaard mentioned, tensorflow_io is not on conda forge. The answer of vlasenkoalexey on Github issues to tackle this:

Obvious workaround is to uninstall tensorflow and tensorflow-io and install them from pip:
pip uninstall tensorflow
pip uninstall tensorflow-io
pip install tensorflow-gpu
pip install --no-deps tensorflow-io

like image 141
vcucu Avatar answered Jan 03 '26 21:01

vcucu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!