Package Details: aws-cli-v2 2.0.60-1

Git Clone URL: https://aur.archlinux.org/aws-cli-v2.git (read-only, click to copy)
Package Base: aws-cli-v2
Description: Universal Command Line Interface for Amazon Web Services (version 2)
Upstream URL: https://github.com/aws/aws-cli
Keywords: devops
Licenses: Apache
Conflicts: aws-cli, aws-cli-git, aws-cli-v2-bin
Provides: aws-cli
Submitter: dbirks
Maintainer: None
Last Packager: dbirks
Votes: 8
Popularity: 0.29
First Submitted: 2020-06-24 20:18
Last Updated: 2020-10-29 02:11

Required by (17)

Sources (1)

Pinned Comments

abruegmann commented on 2021-02-08 18:59

Currently it's practically impossible to make this package work on Arch since it relies on old versions of python modules. I recommend using https://aur.archlinux.org/packages/aws-cli-v2-bin/.

I doubt this'll change anytime soon. If you're interested: https://github.com/aws/aws-cli/issues/4947#issuecomment-586046886

Latest Comments

1 2 3 Next › Last »

abruegmann commented on 2021-02-08 18:59

Currently it's practically impossible to make this package work on Arch since it relies on old versions of python modules. I recommend using https://aur.archlinux.org/packages/aws-cli-v2-bin/.

I doubt this'll change anytime soon. If you're interested: https://github.com/aws/aws-cli/issues/4947#issuecomment-586046886

etienne commented on 2020-12-04 10:36

Hello, for the python version problem. I fixed it locally by using this page https://wiki.archlinux.org/index.php/Python_package_guidelines#Using_site-packages

line 37 (install ac.index update)

local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
install -Dm 644 ac.index "$pkgdir""$site_packages"/awscli/data/ac.index

This will use the good python site package whatever your python version

Comradin commented on 2020-12-04 08:36

This package has a dependency on python-botocore-v2-git which is flagged orphaned for me and today my aws tooling broke. I should add that I haven't used the aws cli for a week or so, I only stumpled upon the error today.

There is a community/python-botocore 1.19.13-3 which is quite uptodate.

For the quick fix I installed the aws-cli-v2-bin package, due to the dependency conflict.

piquer commented on 2020-12-02 10:29

The PKBUILD has /usr/lib/python3.8 hard-coded in one place, which is not the right directory anymore now that 3.9 has been rolled out.

aliencoder commented on 2020-09-29 08:40

@mnesterenko, I found the reason, I have it installed via my distro, and manually, when v2 came out there was no AUR package, so I did a manual install, and forgot about it.

mnesterenko commented on 2020-09-28 19:12

@aliencoder, that is strange path you have

I have checked built package contents:

$ pacman -Ql aws-cli-v2 | head -n 5
aws-cli-v2 /usr/
aws-cli-v2 /usr/bin/
aws-cli-v2 /usr/bin/aws
aws-cli-v2 /usr/bin/aws.cmd

You should have it by this path

aliencoder commented on 2020-09-28 06:01

Hi there, Editing the build scripts fixed the build, but it seems I still have the old

aws --version
aws-cli/2.0.33 Python/3.7.3 Linux/5.8.6-1-MANJARO botocore/2.0.0dev37

which aws
/usr/local/aws-cli/v2/current/bin/aws

any ideas?

L0-FF commented on 2020-09-27 22:00

Solved. Based on @aliencoder and my issues. Figured it had to do with PYTHONPATH.

Especially considering that the import error was referencing the $USER local dir: /home/$USER/.local/lib/python3.8/site-packages

I explicitly set PYTHONPATH to the proper global path and the local (for the package build) and all went as expected.

So for the PKGBUILD.

PYTHONPATH=.:/usr/lib/python3.8/site-packages ./scripts/gen-ac-index --index-location=./ac.index

Solves it. Pretty sure this will work for most users.

dbirks commented on 2020-09-27 03:59

Thank you all, I just moved PYTHONPATH inline.

mnesterenko commented on 2020-09-26 22:49

@dbirks, @L0-FF, not sure about this error, when PYTHONPATH is fixed aws-cli-v2 is built successfully:

Dockerfile that builds aws-cli-v2 with fixed PYTHONPATH:

from archlinux/base

run pacman -Syu --noconfirm git sudo vim binutils fakeroot shadow awk && \
    groupadd sudo && useradd test --create-home -G sudo && (echo test:test | chpasswd) && \
    (echo "test   ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/test)

workdir /home/test
user test

run git clone https://aur.archlinux.org/trizen.git && (cd trizen && makepkg -sri --noconfirm) && \
    trizen -S --noconfirm python-botocore-v2-git && \
    trizen -S --noconfirm python-colorama python-cryptography python-distro python-prompt_toolkit python-ruamel-yaml python-s3transfer && \
    git clone https://aur.archlinux.org/aws-cli-v2.git && ( \
            cd aws-cli-v2 && \
            echo -e '''diff --git a/PKGBUILD b/PKGBUILD\n\
index 0566e35..01ff3ed 100644\n\
--- a/PKGBUILD\n\
+++ b/PKGBUILD\n\
@@ -27,8 +27,7 @@ build() {\n\
     python setup.py build\n\
 \n\
     echo "Generating auto-complete index. Takes 5-10 minutes..."\n\
-    local PYTHONPATH=.\n\
-    ./scripts/gen-ac-index --index-location=./ac.index\n\
+    PYTHONPATH=. ./scripts/gen-ac-index --index-location=./ac.index\n\
 }\n\
 \n\
 package() {''' | git apply && makepkg -sri --noconfirm)