Package Details: aws-sam-cli 1.126.0-1

Git Clone URL: https://aur.archlinux.org/aws-sam-cli.git (read-only, click to copy)
Package Base: aws-sam-cli
Description: CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM
Upstream URL: https://github.com/aws/aws-sam-cli
Licenses: Apache
Submitter: javmorin
Maintainer: javmorin
Last Packager: javmorin
Votes: 13
Popularity: 0.94
First Submitted: 2020-06-11 05:09 (UTC)
Last Updated: 2024-10-26 22:11 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

javmorin commented on 2022-11-03 20:37 (UTC) (edited on 2022-11-03 20:38 (UTC) by javmorin)

I have uploaded 1.61.0-2 which performs a minor sed/patch to avoid inclusion of the files which conflict with the python-installer package. This may only be a temporary fix, as conversation is happening with upstream to resolve this as well.

I will keep this patch in place until resolved upstream; see https://github.com/aws/aws-sam-cli/issues/4375 for that discussion.

javmorin commented on 2022-11-02 18:03 (UTC) (edited on 2022-11-02 19:25 (UTC) by javmorin)

@sedot: This is definitely not intentional. I am looking into it now.

Edit: This unfortunately is an existing issue in how AWS packages the SAM cli.

I need to do more research into whether I can remove the conflicting files and I may need to raise an issue upstream to determine WHY this is the case, in order to do so. In the meantime, you could try the (unrelated) aws-sam-cli-bin package which isolates all the components of aws-sam-cli from the rest of your system. Otherwise you will need to remove python-installer on your system in order to install this package.

sedot commented on 2022-11-02 08:52 (UTC) (edited on 2022-11-02 08:53 (UTC) by sedot)

Hi, I have trouble installing this package. Pacman complains with:

error: failed to commit transaction (conflicting files)
aws-sam-cli: /usr/lib/python3.10/site-packages/installer/__init__.py exists in filesystem (owned by python-installer)
[...]

Do you know why the aws-sam-cli package tries to install these files instead of relying on the python-installer package as a dependency? How can I solve this elegantly?

javmorin commented on 2022-03-26 16:15 (UTC)

@hendry et al: The python-aws-sam-translator package dependency has yet to be updated to the needed version (it has been flagged). Your options are to keep using the version of aws-sam-cli you have installed (if you have one) until a TU updates that package (it's in the Community repo), build an updated version of that package yourself, or checkout and build the 1.41.0 version of aws-sam-cli.

Sorry for the mismatch. I try to get my packages updated right after upstream release, and I haven't used sam-cli myself for a bit, so I didn't catch the breakage.

hendry commented on 2022-03-26 10:59 (UTC)

Hitting a ModuleNotFoundError: No module named 'samtranslator.utils.py27hash_fix' issue

javmorin commented on 2022-02-18 16:46 (UTC) (edited on 2022-02-18 16:47 (UTC) by javmorin)

@shura I have added it in pkgrel 2, to unblock you (and me) but it's actually a bug upstream. They are using typing_extensions to get access to Protocol, but Protocol is included in the core types package in Python 3.8+ so it shouldn't be needed.

shurizzle commented on 2022-02-18 09:36 (UTC)

2022-02-18 10:27:21 Command 'sync' is not configured correctly. Unable to import 'samcli.commands.sync'
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/samcli/cli/command.py", line 114, in get_command
    mod = importlib.import_module(pkg_name)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/samcli/commands/sync/__init__.py", line 4, in <module>
    from .command import cli  # noqa
  File "/usr/lib/python3.10/site-packages/samcli/commands/sync/command.py", line 37, in <module>
    from samcli.lib.sync.sync_flow_factory import SyncFlowFactory
  File "/usr/lib/python3.10/site-packages/samcli/lib/sync/sync_flow_factory.py", line 8, in <module>
    from samcli.lib.sync.flows.auto_dependency_layer_sync_flow import AutoDependencyLayerParentSyncFlow
  File "/usr/lib/python3.10/site-packages/samcli/lib/sync/flows/auto_dependency_layer_sync_flow.py", line 22, in <module>
    from samcli.lib.sync.flows.layer_sync_flow import AbstractLayerSyncFlow
  File "/usr/lib/python3.10/site-packages/samcli/lib/sync/flows/layer_sync_flow.py", line 17, in <module>
    from samcli.lib.sync.sync_flow import SyncFlow, ResourceAPICall
  File "/usr/lib/python3.10/site-packages/samcli/lib/sync/sync_flow.py", line 12, in <module>
    from samcli.lib.utils.boto_utils import get_boto_client_provider_from_session_with_config
  File "/usr/lib/python3.10/site-packages/samcli/lib/utils/boto_utils.py", line 7, in <module>
    from typing_extensions import Protocol
ModuleNotFoundError: No module named 'typing_extensions'

To fix this just add python-typing_extensions to dependencies. Thank you!

codemutation commented on 2021-08-22 06:41 (UTC) (edited on 2021-08-22 06:42 (UTC) by codemutation)

If you happen to be running sam without docker, for the time being you will need to: pip3 install --user docker==4.2.0

javmorin commented on 2021-03-09 23:05 (UTC)

@cortiz - your issue is with a different package that uses the AWS bundled version of the client.