aws / aws-mwaa-local-runner

This repository provides a command line interface (CLI) utility that replicates an Amazon Managed Workflows for Apache Airflow (MWAA) environment locally.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't build Docker Image on version (branch) 2.4.3

coolhandchuck opened this issue · comments

Hello, I get the follow error below during the build process from when the build process runs the boostrap file. Can we get a fix for this? We currently running on MWAA 2.4.3 in our cloud and we would like to test locally. Thanks.

115.9 Collecting lxml>=4.6.5
116.0 Downloading lxml-4.9.3.tar.gz (3.6 MB)
116.7 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.6/3.6 MB 5.3 MB/s eta 0:00:00
116.9 Preparing metadata (setup.py): started
117.1 Preparing metadata (setup.py): finished with status 'error'
117.1 error: subprocess-exited-with-error
117.1
117.1 × python setup.py egg_info did not run successfully.
117.1 │ exit code: 1
117.1 ╰─> [3 lines of output]
117.1 Building lxml version 4.9.3.
117.1 Building without Cython.
117.1 Error: Please make sure the libxml2 and libxslt development packages are installed.
117.1 [end of output]
117.1
117.1 note: This error originates from a subprocess, and is likely not a problem with pip.
117.1 error: metadata-generation-failed
117.1
117.1 × Encountered error while generating package metadata.
117.1 ╰─> See above for output.
117.1
117.1 note: This is an issue with the package mentioned above, not pip.
117.1 hint: See above for details.

Found the solution to this. I'm on an Apple Silicon based Mac. Had to modify the mwaa-local-env script in the root of the aws-mwaa-local-runner directory. On line 56 in the build_image command, you need to add the option to build the docker image as x86. Add the option --platform=linux/amd64. This will fix the issue.