You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm following the steps in this guide to install the cli on MacOS as we didn't want to depend on brew. It works well in most scenarios, but it fails when using python 3.12. After running make, the following error happens:
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
This happens when make is installing ruamel-yaml-clib==0.2.7.
I tried manually installing version 0.2.8, and the installation works, but when running make, it will try again to install the 0.2.7 and fail.
Expected Behavior
The make command configure to install dependencies should install aws cli when using python 3.12, as that shows as a supported version.
Current Behavior
The make command is failing to install dependencies as ImpImporter is required in one of them, and it is removed on python 3.12.
Reproduction Steps
I'm running this commands when trying to install:
curl -o awscli.tar.gz "https://awscli.amazonaws.com/awscli$version.tar.gz"
mkdir awscli
tar -xzf awscli.tar.gz -C awscli --strip-components=1
cd awscli
./configure --with-download-deps
make
The make command fails when installing dependencies if python 3.12 is used. I tested in MacOS and Ubuntu, it happens for both.
Possible Solution
Updating the version for ruamel-yaml-clib==0.2.7 could fix this issues, as that seems to be the problem, but may be other libraries have the same problem with ImpImporter in python 3.12 and need to be updated.
Additional Information/Context
I need to install the cli like this because the pkg package doesn't work on Apple Silicon, and I want to avoid Brew and Rosetta as dependencies.
CLI version used
latest
Environment details (OS name and version, etc.)
Ubuntu and MacOS with Python 3.12 installed.
The text was updated successfully, but these errors were encountered:
Thanks for reaching out. Python 3.12 is not currently supported for v2, but we hope to have updates on that soon. The tracking issue for adding Python 3.12 support in v2 is here: #8342. And here is a related Dependabot PR for that dependency you referenced: #8217. I'm going to close this as a duplicate, please refer to the other issue for updates going forward.
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
Describe the bug
I'm following the steps in this guide to install the cli on MacOS as we didn't want to depend on brew. It works well in most scenarios, but it fails when using python 3.12. After running make, the following error happens:
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
This happens when make is installing
ruamel-yaml-clib==0.2.7
.I tried manually installing version 0.2.8, and the installation works, but when running make, it will try again to install the 0.2.7 and fail.
Expected Behavior
The make command configure to install dependencies should install aws cli when using python 3.12, as that shows as a supported version.
Current Behavior
The make command is failing to install dependencies as ImpImporter is required in one of them, and it is removed on python 3.12.
Reproduction Steps
I'm running this commands when trying to install:
The make command fails when installing dependencies if python 3.12 is used. I tested in MacOS and Ubuntu, it happens for both.
Possible Solution
Updating the version for
ruamel-yaml-clib==0.2.7
could fix this issues, as that seems to be the problem, but may be other libraries have the same problem with ImpImporter in python 3.12 and need to be updated.Additional Information/Context
I need to install the cli like this because the pkg package doesn't work on Apple Silicon, and I want to avoid Brew and Rosetta as dependencies.
CLI version used
latest
Environment details (OS name and version, etc.)
Ubuntu and MacOS with Python 3.12 installed.
The text was updated successfully, but these errors were encountered: