@kstolp the problem is with the python prompt_toolkit package, not directly this AUR. See https://github.com/prompt-toolkit/python-prompt-toolkit/issues/1988 - in particular this comment explains how to download, build and install the previous version: https://github.com/prompt-toolkit/python-prompt-toolkit/issues/1988#issuecomment-2827704607
Search Criteria
Package Details: aws-cli-v2 2.27.17-1
Package Actions
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: | 46 |
Popularity: | 7.94 |
First Submitted: | 2024-04-21 11:04 (UTC) |
Last Updated: | 2025-05-18 01:47 (UTC) |
Dependencies (20)
- python (python37AUR, python311AUR, python310AUR)
- python-awscrt
- python-certifi
- python-colorama (python-colorama-gitAUR)
- python-cryptography
- python-dateutil (python-dateutil-gitAUR)
- python-distro
- python-docutils
- python-jmespath
- python-prompt_toolkit
- python-ruamel-yaml (python-ruamel-yaml-hgAUR)
- python-urllib3
- python-build (make)
- python-flit-core (make)
- python-installer (make)
- python-wheel (make)
- procps-ng (procps-ng-gitAUR) (check)
- python-jsonschema (check)
- python-pytest (check)
- python-pytest-xdist (check)
Required by (20)
- arkade-bin (requires aws-cli) (optional)
- aurbuilder-git
- awj-git (requires aws-cli)
- aws-credential-1password (requires aws-cli) (optional)
- aws-session-manager-plugin (requires aws-cli)
- aws2-wrap (requires aws-cli)
- curam-git (requires aws-cli)
- datomic-cli (requires aws-cli)
- git-remote-codecommit (requires aws-cli)
- k3sup-bin (requires aws-cli) (optional)
- lambroll-bin (requires aws-cli) (optional)
- liquidprompt (requires aws-cli) (optional)
- porter-bin (requires aws-cli) (optional)
- python-awscli-local (requires aws-cli)
- python-awscli-plugin-endpoint (requires aws-cli)
- python-pdf2video (requires aws-cli)
- rattlesnakeos-stack-bin (requires aws-cli) (optional)
- scwrypts (optional)
- statsite (requires aws-cli) (optional)
- stsauth (requires aws-cli) (make)
Sources (9)
TTimo commented on 2025-05-15 14:21 (UTC)
kstolp commented on 2025-05-15 01:28 (UTC)
@project0 Do you mind formatting your suggestion as a patch to this repo?
project0 commented on 2025-05-12 16:25 (UTC)
Can we add a patch to fix the import?
This seems to work for me:
from contextlib import contextmanager, nullcontext
import importlib.metadata
# Patch metadata.version to prevent crash due to missing dist-info
real_metadata_version = importlib.metadata.version
def safe_version(name):
if name == "prompt_toolkit":
return "0.0.0" # dummy version
return real_metadata_version(name)
importlib.metadata.version = safe_version
from prompt_toolkit.application import Application
from prompt_toolkit.completion import Completer, Completion, ThreadedCompleter
from prompt_toolkit.document import Document
ram4nd commented on 2025-05-08 15:26 (UTC)
Needed to run downgrade on python-prompt_toolkit to 3.0.50
ian-melo commented on 2025-05-06 21:33 (UTC)
The workaround proposed in https://github.com/aws/aws-cli/issues/9453#issuecomment-2818611814 worked for me:
sudo pacman -U /var/cache/pacman/pkg/python-prompt_toolkit-3.0.50-1-any.pkg.tar.zst
nik_gr commented on 2025-04-28 01:02 (UTC) (edited on 2025-04-28 01:08 (UTC) by nik_gr)
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.
furai commented on 2025-04-21 19:00 (UTC) (edited on 2025-04-24 05:38 (UTC) by furai)
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.
TheEdgeOfRage commented on 2025-04-21 10:04 (UTC)
@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
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)