Closed alvdavi closed 2 years ago
The installers.py script relies on platform.architecture()[0] to differentiate between x86_64 and aarch64, however, that value will return 64bit for both.
installers.py
platform.architecture()[0]
x86_64
aarch64
64bit
Replaced the code to make use of platform.machine() that will provide different values.
platform.machine()
Running on an x86_64 system:
$ python -c "import platform;print(platform.machine())" x86_64
Running on an arm system:
$ python -c "import platform;print(platform.machine())" aarch64
Without this patch awscliv2 will install the x86_64 on arm systems and fail to execute
Thank you for this fix! I am going to release it ASAP.
The
installers.py
script relies onplatform.architecture()[0]
to differentiate betweenx86_64
andaarch64
, however, that value will return64bit
for both.Replaced the code to make use of
platform.machine()
that will provide different values.Running on an x86_64 system:
Running on an arm system:
Without this patch awscliv2 will install the x86_64 on arm systems and fail to execute