-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
AWS CLI v2 support for Python 3.13 #9234
Comments
I think its because You can verify it on your machine inside a virtualenv This problem is fixed in 0.2.9. Since there is version lock on ruamel.yaml.clib it never go updated. May be someone from maintainers can comment more on the issue. "ruamel.yaml>=0.15.0,<=0.17.21",
# ruamel.yaml only requires ruamel.yaml.clib for Python versions
# less than or equal to Python 3.10. In order to ensure we have
# a consistent dependency closure across all Python versions,
# we explicitly include ruamel.yaml.clib as a dependency.
"ruamel.yaml.clib>=0.2.0,<=0.2.8", Line 41 in df661fc
You can try install with following flags till we get the patch. export CFLAGS="-Wno-error=incompatible-pointer-types";
cd /tmp/awscli-2.23.2;
make && make install
|
Hi! Same happening here, can't build any version. |
Hi @aureq, thanks for reaching out. Installing AWS CLI v2 with You are correct that AWS CLI v2 is incompatible with Python 3.13. You can see the supported Python versions for v2 in Hope that helps, please let me know if you have any follow-up questions. |
@RyanFitzSimmonsAK thank you for your detailed reply. For now, I've rolled back to Python 3.12 until the AWS CLI v2 supports 3.13. Thanks |
Yep, this can be the tracking issue for AWS CLI v2 support for Python 3.13. I'll move the labels and title around to make that clear, and leave this open. |
The error describe on the original post isn't due to the usage of As @shuklaabhi mentioned above, can one of the maintainers update the dependencies? The latest version of |
What version of Python are you using? |
I am able to reproduce this with Python 3.9, 3.10, 3.11, and 3.12. Python 3.8 isn't available with Alpine 3.21. Some of the libraries do not allow Python 3.13. |
Describe the bug
Hi,
I'm unable to install the AWS CLI version 2 using Python 3.13.1 by running
/usr/local/bin/pip install https://github.com/aws/aws-cli/archive/refs/tags/2.23.2.tar.gz
(this work fine on Python 3.12.x, and this works fine with AWS CLI 1.37.2 too).Regression Issue
Expected Behavior
The AWS CLI v2 should install as expected on Python 3.13.x.
Current Behavior
The build fails with the following errors and warnings
Reproduction Steps
pip install https://github.com/aws/aws-cli/archive/refs/tags/2.23.2.tar.gz
Running
pip install https://github.com/aws/aws-cli/archive/refs/tags/1.37.2.tar.gz
works as expected ✔Possible Solution
No response
Additional Information/Context
Note 1: It seems like the issue stems from the use of the
ruamel.yaml
package but I'm not sure how this dependency is dragged. Maybe PyYAML?Note 2: I'm using the method described above to globally install the AWS CLI v2 (ie, available to all users). Running
pip install --upgrade awscliv2
followed byawsv2 --install
result in some executable being installed in/usr/local/bin
but also in/root/.awscliv2
which is not desired as it would require other users to run 1) runawsv2 --install
themselves and result in extra binaries installed in$HOME/.awscliv2/
.CLI version used
2.23.2
Environment details (OS name and version, etc.)
Containerized Debian 12 (bookwork)
The text was updated successfully, but these errors were encountered: