tensorflow/io

Colab: 'tensorflow._api.v2.io' has no attribute 'image' for tf.io.image.decode_dicom_image

mariamjabara opened this issue · 1 comments

Versions:

Tensorflow: 2.14.0
Tensorflow IO: 0.34.0

When executing:

image = tfio.image.decode_dicom_image(image_bytes, dtype=tf.uint16)

Fails with:

NotImplementedError: unable to open file: libtensorflow_io.so, from paths: ['/usr/local/lib/python3.10/dist-packages/tensorflow_io/python/ops/libtensorflow_io.so'] caused by: ['/usr/local/lib/python3.10/dist-packages/tensorflow_io/python/ops/libtensorflow_io.so: undefined symbol: _ZNK10tensorflow4data15DatasetOpKernel11TraceStringERKNS_15OpKernelContextEb']'

update:

works with the following versions:

tensorflow: 2.8.0
ensorflow-io: 0.24.0