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

Error installing from source when using python 3.12 #8878

Closed
marboledacci opened this issue Aug 21, 2024 · 2 comments
Closed

Error installing from source when using python 3.12 #8878

marboledacci opened this issue Aug 21, 2024 · 2 comments
Assignees
Labels
bug This issue is a bug.

Comments

@marboledacci
Copy link

marboledacci commented Aug 21, 2024

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:

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.

@tim-finnigan
Copy link
Contributor

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.

@tim-finnigan tim-finnigan closed this as not planned Won't fix, can't repro, duplicate, stale Aug 27, 2024
@tim-finnigan tim-finnigan removed the needs-triage This issue or PR still needs to be triaged. label Aug 27, 2024
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants