Package Details: aws-sam-cli 1.113.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: 11
Popularity: 0.123156
First Submitted: 2020-06-11 05:09 (UTC)
Last Updated: 2024-03-20 17:49 (UTC)

Latest Comments

1 2 3 Next › Last »

javmorin commented on 2024-03-05 17:12 (UTC)

@jarivm Thanks for the note, but the issue appears to be coming from the requests library, not in the sam-cli package. Further, from the stacktrace it appears you are using an install of the requests library in your home directory, rather than the system/pacman provided one. When checking the requests library installed via pacman (python-requests), it will use simplejson if available, and fall back to python's built-in json library if not.

As this means simplejson is merely optional for python-requests, and not directly required by this package, I will not be adjusting the dependency list.

jarivm commented on 2024-03-05 10:34 (UTC)

If you were to get an error

+ sam build --use-container
2024-03-05 11:28:39 Command 'build' is not configured correctly. Unable to import 'samcli.commands.build'
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/samcli/cli/command.py", line 264, in get_command
    mod = importlib.import_module(pkg_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.11/site-packages/samcli/commands/build/__init__.py", line 6, in <module>
    from .command import cli  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/samcli/commands/build/command.py", line 11, in <module>
    from samcli.commands._utils.options import (
  File "/usr/lib/python3.11/site-packages/samcli/commands/_utils/options.py", line 30, in <module>
    from samcli.commands._utils.custom_options.hook_name_option import HookNameOption
  File "/usr/lib/python3.11/site-packages/samcli/commands/_utils/custom_options/hook_name_option.py", line 15, in <module>
    from samcli.lib.telemetry.event import EventName, EventTracker
  File "/usr/lib/python3.11/site-packages/samcli/lib/telemetry/event.py", line 16, in <module>
    from samcli.lib.telemetry.telemetry import Telemetry
  File "/usr/lib/python3.11/site-packages/samcli/lib/telemetry/telemetry.py", line 7, in <module>
    import requests
  File "/home/jarivm/.local/lib/python3.11/site-packages/requests/__init__.py", line 45, in <module>
    from .exceptions import RequestsDependencyWarning
  File "/home/jarivm/.local/lib/python3.11/site-packages/requests/exceptions.py", line 9, in <module>
    from .compat import JSONDecodeError as CompatJSONDecodeError
  File "/home/jarivm/.local/lib/python3.11/site-packages/requests/compat.py", line 40, in <module>
    from simplejson import JSONDecodeError
ImportError: cannot import name 'JSONDecodeError' from 'simplejson' (unknown location)

just install the simplejson python package (e.g. pacman -Sy python-simplejson or whatever) as it is currently not listed as a dependency.

javmorin commented on 2023-08-24 23:08 (UTC)

v1.94+ introduced a dependency on the type-checking variants of the boto3 library which I need to work on integrating as a dependency.

I have downgraded the package to 1.93 -- the last version pre-typechecking -- for the moment until this is resolved. Anyone who has updated to 1.94+ will need to force the downgrade in their systems.

dcooke commented on 2023-08-24 21:59 (UTC)

Missing mypy_boto3_cloudformation on the latest build (1.95.0)

2023-08-24 22:59:14 Command 'deploy' is not configured correctly. Unable to import 'samcli.commands.deploy'
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/samcli/cli/command.py", line 263, in get_command
    mod = importlib.import_module(pkg_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.11/site-packages/samcli/commands/deploy/__init__.py", line 6, in <module>
    from .command import cli  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/samcli/commands/deploy/command.py", line 39, in <module>
    from samcli.lib.bootstrap.companion_stack.companion_stack_manager import sync_ecr_stack
  File "/usr/lib/python3.11/site-packages/samcli/lib/bootstrap/companion_stack/companion_stack_manager.py", line 10, in <module>
    from mypy_boto3_cloudformation.client import CloudFormationClient
ModuleNotFoundError: No module named 'mypy_boto3_cloudformation'

javmorin commented on 2023-07-10 02:59 (UTC)

@utkarsh thanks for the heads up! This has been resolved alongside the latest version bump.

utkarsh commented on 2023-07-08 10:23 (UTC)

Hi @javmorin,

I think we also need python-rich. Otherwise we get the following error:

$ sam --version
Traceback (most recent call last):
  File "/usr/bin/sam", line 33, in <module>
    sys.exit(load_entry_point('aws-sam-cli==1.86.1', 'console_scripts', 'sam')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/sam", line 25, in importlib_load_entry_point
    return next(matches).load()
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.11/site-packages/samcli/cli/main.py", line 12, in <module>
    from samcli.cli.context import Context
  File "/usr/lib/python3.11/site-packages/samcli/cli/context.py", line 13, in <module>
    from samcli.lib.utils.sam_logging import (
  File "/usr/lib/python3.11/site-packages/samcli/lib/utils/sam_logging.py", line 8, in <module>
    from rich.console import Console
ModuleNotFoundError: No module named 'rich'

null commented on 2023-04-24 20:27 (UTC)

You're right. Sorry I didn't check as I use aurutils which (usually) installs base-devel automatically..

javmorin commented on 2023-04-23 17:18 (UTC)

@null debugedit is depended on by base-devel which is assumed to be installed if you are building AUR packages (see https://wiki.archlinux.org/title/Arch_User_Repository).

Make sure you've updated your base-devel package per https://archlinux.org/news/switch-to-the-base-devel-meta-package-requires-manual-intervention/

null commented on 2023-04-23 17:14 (UTC)

I'm getting many /usr/share/makepkg/tidy/strip.sh: line 48: debugedit: command not found messages while building messages while building in a clean environment. core/debugedit should probably be added to build dependencies.

sedot commented on 2022-11-07 12:57 (UTC)

Thanks @javmorin! I wish my issues with commercial software were handled this professionally. ;)