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

Apple Silicon aws-mwaa-local-runner produces plugins with aarch64 wheels Instead of x86_64 #393

Open
MatusChladek opened this issue Sep 10, 2024 · 0 comments

Comments

@MatusChladek
Copy link

When using aws-mwaa-local-runner on Apple Silicon Macs (aarch64) to build and package the environment, the resulting plugins.zip contains wheels built for aarch64 architecture instead of x86_64. This results in compatibility issues for users expecting x86_64 wheels.

Steps to Reproduce:

$ uname -m
> arm64
$ ./mwaa-local-env build-image
$ ./mwaa-local-env test-requirements
$ ./mwaa-local-env package-requirements
> ...
> Collecting snowflake_connector_python==3.10.1
  Downloading snowflake_connector_python-3.10.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.5/2.5 MB 13.5 MB/s eta 0:00:00
> ...

Steps for a fix:

Replace

docker build --rm --compress -t amazon/mwaa-local:$AIRFLOW_VERSION ./docker

by

docker build --rm --platform linux/amd64 --compress -t amazon/mwaa-local:$AIRFLOW_VERSION ./docker

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

1 participant