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

Can't build wheel for MacOs M1 #2579

Closed
asapsmc opened this issue Sep 28, 2021 · 6 comments
Closed

Can't build wheel for MacOs M1 #2579

asapsmc opened this issue Sep 28, 2021 · 6 comments

Comments

@asapsmc
Copy link

asapsmc commented Sep 28, 2021

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MacOs M1 (12.0 Beta Monterey)
TensorFlow version and how it was installed (source or binary): 2.5.0 (pip)
TensorFlow-Addons version and how it was installed (source or binary): source, following instructions in #2503
Python version: 3.9.6
Is GPU used? (yes/no): NA
Describe the bug

Can't build wheel for tensorflow-addons in a conda environment.
Everything goes fine during:

git clone -b mywork https://github.com/tetsuyasu/addons.git/
cd addons
python3 ./configure.py
bazel build build_pip_pkg
pip install pathlib

but when I run bazel-bin/build_pip_pkg artifacts I get

AssertionError: would build wheel with unsupported tag ('cp39', 'cp39', 'macosx_11_0_arm64')
+ true
+ cp 'dist/*.whl' /Users/as/addons/artifacts
cp: dist/*.whl: No such file or directory

Other info / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

@bhack
Copy link
Contributor

bhack commented Sep 28, 2021

/cc @lgeiger

@bhack
Copy link
Contributor

bhack commented Oct 15, 2021

Can we close this?

@bhack
Copy link
Contributor

bhack commented Oct 20, 2021

@lgeiger I don't have the M1. Can you reproduce this? If not I will close it

@lgeiger
Copy link
Contributor

lgeiger commented Oct 20, 2021

@lgeiger I don't have the M1. Can you reproduce this? If not I will close it

I also don't have access to an M1 mac to reproduce this (I previously tested the wheels on a machine from a colleague).

I assume, that this is just due to an old version of some dependencies. I'd recommend trying again after:

python -m pip install wheel setuptools pip --upgrade

See pypa/wheel#381

@asapsmc
Copy link
Author

asapsmc commented Oct 25, 2021

@lgeiger: yes, this allows me to build the wheel.

@asapsmc asapsmc closed this as completed Oct 25, 2021
@sun1638650145
Copy link
Contributor

@lgeiger I don't have the M1. Can you reproduce this? If not I will close it

I also don't have access to an M1 mac to reproduce this (I previously tested the wheels on a machine from a colleague).

I assume, that this is just due to an old version of some dependencies. I'd recommend trying again after:

python -m pip install wheel setuptools pip --upgrade

See pypa/wheel#381

This method is really useful

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

4 participants