Latest version seems to be failing to install:
...Sorry, NVM, I see, need to downgrade prompt_toolkit. Did not see the similar stack trace below, wrongfully assumed it is new.
Git Clone URL: | https://aur.archlinux.org/aws-cli-v2.git (read-only, click to copy) |
---|---|
Package Base: | aws-cli-v2 |
Description: | Unified command line interface for Amazon Web Services (version 2) |
Upstream URL: | https://github.com/aws/aws-cli/tree/v2 |
Licenses: | Apache-2.0 |
Conflicts: | aws-cli |
Provides: | aws-cli |
Submitter: | jelly |
Maintainer: | kstolp |
Last Packager: | kstolp |
Votes: | 44 |
Popularity: | 9.21 |
First Submitted: | 2024-04-21 11:04 (UTC) |
Last Updated: | 2025-04-27 03:55 (UTC) |
Latest version seems to be failing to install:
...Sorry, NVM, I see, need to downgrade prompt_toolkit. Did not see the similar stack trace below, wrongfully assumed it is new.
Ok, understood, I still have mine somewhere in the pacman cache.
EDIT: There seems to be issue mentioned upstream.
EDIT2: https://github.com/aws/aws-cli/issues/9453#issuecomment-2822186530 as I thought what would the reply be - they just recommend locking prompt_toolkit version.
@roncrowley the python-awscrt package is for a separate manner from the issue with prompt_toolkit. You will still have to downgrade the python-prompt_toolkit package manually to be able to use aws-cli-v2 atm.
You can download the old version from the arch package archives
And install it using pacman -U python-prompt_toolkit-3.0.50-1-any.pkg.tar.zst
The https://aur.archlinux.org/packages/aws-cli-bin works for me, if you can't get this package working, you might want to check that out.
@furai, I've uninstalled aws-cli-v2, then installed aws-cli-v2-python-awscrt, which I understood to be your temporary patch package, but still get what appear to be the same prompt_toolkit
errors when attempting to install aws-cli-v2.
I don't understand aws-cli-v2-python-awscrt package helps, but I'm new to Arch and may be something critical. Would appreciate some guidance. Thank you.
This still fails to install with error about prompt_toolkit.
This package now depends on python-awscrt=0.25.4
: reference commit. Since the official python-awscrt package is being kept at a lower version in order to maintain compatibility with other AWS-related packages in the official repos, I have made a new AUR package to fulfill this requirement. It is named aws-cli-v2-python-awscrt.
FYI, worked around the installation issue by monkey-patch in /usr/lib/python3.13/site-packages/prompt_toolkit/__init__.py
effectivelly:
diff -r -U5 50/usr/lib/python3.13/site-packages/prompt_toolkit/__init__.py 51/usr/lib/python3.13/site-packages/prompt_toolkit/__init__.py
--- 50/usr/lib/python3.13/site-packages/prompt_toolkit/__init__.py 2025-01-30 00:49:18.000000000 +0100
+++ 51/usr/lib/python3.13/site-packages/prompt_toolkit/__init__.py 2025-04-16 05:34:53.000000000 +0200
@@ -15,10 +15,11 @@
"""
from __future__ import annotations
import re
-from importlib import metadata
# note: this is a bit more lax than the actual pep 440 to allow for a/b/rc/dev without a number
pep440 = re.compile(
r"^([1-9]\d*!)?(0|[1-9]\d*)(\.(0|[1-9]\d*))*((a|b|rc)(0|[1-9]\d*)?)?(\.post(0|[1-9]\d*))?(\.dev(0|[1-9]\d*)?)?$",
re.UNICODE,
@@ -26,11 +27,11 @@
from .application import Application
from .formatted_text import ANSI, HTML
from .shortcuts import PromptSession, print_formatted_text, prompt
# Don't forget to update in `docs/conf.py`!
+__version__ = metadata.version("prompt_toolkit")
+__version__ = "3.0.51"
@fossdd and @elessard Thanks so much, downgrade worked nicely and I could get back to work! Aur comments section definately needs some 👍 emoji functionality :)
Pinned Comments
kstolp commented on 2024-10-23 05:14 (UTC)
If you receive this error when trying to build, it is because you have not imported the GPG keys used for verification.
You have two options:
1) Import the key into your keyring. ArchWiki article. The key is available in this repo, which is copied from the AWS documentation. e.g.
gpg --import keys/pgp/FB5DB77FD5C118B80511ADA8A6310ACC4672475C.asc
. (recommended)2) Alternatively, you can skip this verification by passing the
--skippgpcheck
argument tomakepkg
when building. (not recommended)