-
Notifications
You must be signed in to change notification settings - Fork 290
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
Cannot install Tensorflow.io on Mac M1 #1625
Comments
I am having the same issue. Did you found something related to this? |
you can install using
The tfio wheels are yet to be built and released for M1 macs though. |
After running
|
@ZaibanAli Since GitHub actions don't support M1 mac based runner environments, we couldn't auto build and publish the |
I tried to build io myself using
Reference: #1298 (comment) |
I think a similar result was posted in #1298 (comment). It would be great to continue the discussion over there as I currently don't have an M1 mac to try things out. |
Hi @kvignesh1420 , I have same issue, I can't install tensorflow-io on Mac m1. Till now, I am only able to install tensorflow-macos and tensorflow-metal successfully. Do you have any update or clue on the issue ? Is it possible to build the tensorflow-io source code from my machine Mac m1 ? If yes which tensorflow-io version I have to take ? Here the version of tensorflow-deps installed in my machine. tensorboard 2.8.0 We really appreciate your help. Many thanks. |
same issues |
same issue |
Ive fix it somehow, i think using wheel help. and then i need to manually change in files downloaded from the tutorial: tensorflow.io to tensorflow-io. It works for me but i'm not sure how exactly i fix it 😄 |
@sconiac can you please tell us in more detail how you did it? I am stuck with this for more than 2 weeks. |
I remove my old project, so I create new one by following this tutorial: https://developer.apple.com/metal/tensorflow-plugin/. Then I type:
And last I check if every thing works by: Hope all works, |
@sconiac thank you for explaining what you did. I already reached this point but the part where it throws a dynamic library error is the critical one and it is required by Tensorflow object detection api. |
Oh, sorry. I didn't notice that, but I'm afraid I don't know how to fix your issue. On my Mac every think works fine, even training my own model. I think you can try old fixing method just reinstall everything you can and that may help. |
Seems like @sconiac steps only works for |
same issue |
also got the same issue |
Came here to say, same issue :-) |
Same issue aswell |
same issue as well |
same issue : ) |
Same issue, macOS 12 specifically. |
Same on Mac OS 12 Monterey, with this error:
Any news about compatibility with Apple Silicon please ? |
Same issue (macosx12 m1):
|
Same issue on M1 Pro |
I recently updated my mac to OS 12.3.1 (M1), I am also facing same issue on installing tensorflow-io. kindly share any, if it can be fixed. |
Same issue as well |
I am also facing the same issue on MacOS 12.3.1, on an M1 Pro 2021 MacBook Pro! |
Same problem here! |
thanks @dvaldivia - any idea if their PR (google/ml-metadata#166) is mappable to here? I'm not much of a bazel expert but I could poke around. |
same issue |
same issue 🏳️ |
bump on issue |
same issue |
same issue, any updates? |
same issue |
Worked for me after giving the absolut path to the whl. filed Thank you |
I have tried to follow your steps. I successfully passed
|
@dusskapark , |
python3 -m pip install tensorflow-macos |
It is about Tensorflow-io not only Tensorflow |
Still occurring, any solutions? |
The comment/link from AnasAr96 worked for me for the object-detection model from tensorflow (not sure about tensorflow.io), I've included it below (Thanks @AnasAr96):
So try using tf1:
|
I guess one solution for now is to
|
When I run the above and then
is this the expected behavior? best I can tell the above solutions are not actually installing tensorflow_io on M1 mac yet. |
With the resolution above it seems that some functionality is available and some is not.
|
MacBook Air (M1, 2020) version:12.3.1 (21E258)
|
I'm also getting the |
Now, |
I am able to install it directly with pip install tensorflow-io tensorflow==2.13.0 tensorflow-metal==1.0.1 Now when I run import tensorflow_io as tfio
audio = tfio.audio.AudioIOTensor('gs://cloud-samples-tests/speech/brooklyn.flac') I got the error 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' |
@sun1638650145 I followed your guide and installed locally built tensorflow-io
however I still get
|
FYI there is an Apple Silicon wheel for tensorflow-io 0.34.0 on pypi now |
@AndrewKovalenko This error appears to be caused by a failure to successfully compile |
@sun1638650145 Thanks for linking the issue #1855 (comment), which might be caused by the same root cause of mine. I just opened issue #1859 to track progress. Are the other features of tfio 0.34.0 usable on M1 besides the AudioIOTensor? or do I need to build manually as workaround. |
This worked to get the audio ops compiled on my M1 Mac (Sonoma) with XCode 15 with Tensorflow 2.13 (Python 3.10)
Although, instead of checking out 0.34, I had to make some adjustments to the build process: https://github.com/eashvere/io
Didn't test on other devices, older XCodes and other versions of Python. |
Hi Im trying to use Tensorflow.io while im learning object detection with this tutorial: https://www.youtube.com/watch?v=yqkISICHH-U&t=9352s and while im training my model I noticed an import of Tensorflow.io but I cannot install it. I try "pip install tenorflow.io" but I get error like:
ERROR: Could not find a version that satisfies the requirement tensorflow.io (from versions: none)
ERROR: No matching distribution found for tensorflow.io
The text was updated successfully, but these errors were encountered: