skia-python icon indicating copy to clipboard operation
skia-python copied to clipboard

ERROR: No matching distribution found for skia-python==87.4 when building docker with Apple M1

Open Adir207 opened this issue 3 years ago • 7 comments

Describe the bug As described in the title, when building docker image on Apple M1, I get the error above. I'm using python:3.10.2 image, but got the same error with ubuntu:18.04 image

To Reproduce Steps to reproduce the behavior:

  1. Run docker build and try installing skia-python

Expected behavior Build success

Desktop (please complete the following information):

  • OS: macOS 12.2
  • Python: 3.10.2
  • skia-python version: v87.4

Additional context I tried: apt-get install libfontconfig1 libgl1-mesa-glx libgl1-mesa-dri but it did not help.

Thank you! :)

Adir207 avatar Feb 03 '22 13:02 Adir207

Are you building aarch64 linux image? The current release do not support aarch64 due to the CI issue. The workaround is to use x86_64 linux image, or manually build the wheel in the target environment.

kyamagu avatar Feb 03 '22 13:02 kyamagu

Thank you for your response! Is there any estimation for a release that support aarch64? I tried using the workaround Docker official documentation suggested which is adding a --platform linux/amd64 flag on my docker-compose file but it makes the container very slow. Do you have any reference for manually build the skia-python wheel? And again, thanks!

Adir207 avatar Feb 03 '22 13:02 Adir207

The CI build setup is here, which internally calls the linux build script.

The Github Actions runners do not support a native aarch64 environment, and qemu aarch64 on a x86_64 runner easily timeouts to build. It is unlikely the situation changes anytime soon.

kyamagu avatar Feb 03 '22 14:02 kyamagu

Thanks, I still hope that there will be a release in the near future that will support aarch64 😃

Adir207 avatar Feb 03 '22 14:02 Adir207

Hi, I noticed that Github added support for M1 aarch64 actions runners: https://github.com/actions/runner/blob/main/releaseNote.md Any chance adding the build for aarch64? It would be amazing! Thanks :)

Adir207 avatar May 23 '22 15:05 Adir207

I do not have any plan to use self-hosted runners, but only github-hosted runners. Hope Github offers those.

kyamagu avatar May 25 '22 00:05 kyamagu