Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tfio M1 0.34.0 arm64: AudioIOTensor has no attribute 'io_audio_readable_init' #1859

Open
yingding opened this issue Sep 17, 2023 · 10 comments
Open

Comments

@yingding
Copy link

I got an error no attribute io_audio_readable_init on M1 Max MBP with Python 3.10.

pip install tensorflow-io==0.34.0 tensorflow==2.13.0 tensorflow-metal==1.0.1

Run the tfio example code:

import tensorflow_io as tfio
audio = tfio.audio.AudioIOTensor('gs://cloud-samples-tests/speech/brooklyn.flac')

Then got the error no attribute 'io_audio_readable_init' for AudioIOTensor:

File [~/VENV/tfio3.10/lib/python3.10/site-packages/tensorflow_io/python/ops/audio_ops.py:671](https://file+.vscode-resource.vscode-cdn.net/Users/yingding/VCS/github/ml/tf-every-day/08Audio/~/VENV/tfio3.10/lib/python3.10/site-packages/tensorflow_io/python/ops/audio_ops.py:671), in AudioIOTensor.__init__(self, filename, dtype)
    669 if not tf.executing_eagerly():
    670     assert dtype is not None, "dtype must be provided in graph mode"
--> 671 resource = core_ops.io_audio_readable_init(filename)
    672 if tf.executing_eagerly():
    673     shape, dtype, rate = core_ops.io_audio_readable_spec(resource)

File [~/VENV/tfio3.10/lib/python3.10/site-packages/tensorflow_io/python/ops/__init__.py:88](https://file+.vscode-resource.vscode-cdn.net/Users/yingding/VCS/github/ml/tf-every-day/08Audio/~/VENV/tfio3.10/lib/python3.10/site-packages/tensorflow_io/python/ops/__init__.py:88), in LazyLoader.__getattr__(self, attrb)
     87 def __getattr__(self, attrb):
---> 88     return getattr(self._load(), attrb)

AttributeError: module '56c055b4afaba95af0256db7c72edd0d967e1981' has no attribute 'io_audio_readable_init'

The root cause might be the same, which also is causing #1855

@yingding yingding changed the title tfio M1 0.34.0 arm64 has no attribute 'io_audio_readable_init' tfio M1 0.34.0 arm64: AudioIOTensor has no attribute 'io_audio_readable_init' Sep 17, 2023
@AndrewKovalenko
Copy link

I have the same problem using same tf, tf-io and tf-metal versions as @yingding
MacOS: 13.4
Proc: M2 Pro

@kayleeliyx
Copy link

same issue. can not use Tensorflow.io on Mac M1

@newstate
Copy link

newstate commented Dec 19, 2023

I have the same issue. Same tf and tfio versions and M1 system.

@graysonstorer
Copy link

same issue on mbp with m1 pro using python 3.9, tfio 0.34.0, and tf 2.13.0

@fatheaddrummer
Copy link

Same issue for me.

@asserules
Copy link

asserules commented Apr 3, 2024

Any updates on this?, have tried installing tensorflow io from pypi and downloading from source following this guide,
i get same issue, look at source code and i can see the audio ops there, but not working.

recent setup attempt was:
python 3.11
tf: 2.15
tfio:0.36

as suggested here

@MoussaLoop
Copy link

same issue on m3 with tf 2.15.0 and tfio 0.36.0
any workaround ?

@inf17101
Copy link

inf17101 commented Apr 12, 2024

same issue on m3 with tf 2.15.0 and tfio 0.36.0 any workaround ?

I have similar issues with the same versions and also with tfio 0.34.0. I use Mac M1. I would be happy about a quick workaround.

Error AttributeError: module '77ab628d7ad4acaa62f6bde524b9d631895821c9' has no attribute 'io_audio_resample'

@mattusi
Copy link

mattusi commented Apr 22, 2024

Same here with tfio 0.34.0, Tensorflow 2.13 and tensorflow-metal 1.0.0

@AndrewKovalenko
Copy link

Folks at Google also use MacBooks for dev... I'm wondering how come they don't have this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants