Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws-sam-cli: command doesn't work anymore #368884

Open
arianvp opened this issue Dec 28, 2024 · 2 comments
Open

aws-sam-cli: command doesn't work anymore #368884

arianvp opened this issue Dec 28, 2024 · 2 comments
Labels
0.kind: bug Something is broken

Comments

@arianvp
Copy link
Member

arianvp commented Dec 28, 2024

Describe the bug

rror: BaseObserver.schedule() takes 3 positional arguments but 4 were given
Traceback:
  File "/nix/store/ph85hcjvg05cxzgga3pc540ypx06a6a6-python3.12-click-8.1.7/lib/python3.12/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/nix/store/ph85hcjvg05cxzgga3pc540ypx06a6a6-python3.12-click-8.1.7/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/ph85hcjvg05cxzgga3pc540ypx06a6a6-python3.12-click-8.1.7/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/ph85hcjvg05cxzgga3pc540ypx06a6a6-python3.12-click-8.1.7/lib/python3.12/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/k6w0jjrzlpz9g23w1j0snbi9dcn10cm3-aws-sam-cli-1.132.0/lib/python3.12/site-packages/samcli/cli/cli_config_file.py", line 347, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/ph85hcjvg05cxzgga3pc540ypx06a6a6-python3.12-click-8.1.7/lib/python3.12/site-packages/click/decorators.py", line 92, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/ph85hcjvg05cxzgga3pc540ypx06a6a6-python3.12-click-8.1.7/lib/python3.12/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/k6w0jjrzlpz9g23w1j0snbi9dcn10cm3-aws-sam-cli-1.132.0/lib/python3.12/site-packages/samcli/lib/telemetry/metric.py", line 185, in wrapped
    raise exception  # pylint: disable=raising-bad-type
    ^^^^^^^^^^^^^^^
  File "/nix/store/k6w0jjrzlpz9g23w1j0snbi9dcn10cm3-aws-sam-cli-1.132.0/lib/python3.12/site-packages/samcli/lib/telemetry/metric.py", line 150, in wrapped
    return_value = func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/k6w0jjrzlpz9g23w1j0snbi9dcn10cm3-aws-sam-cli-1.132.0/lib/python3.12/site-packages/samcli/lib/telemetry/event.py", line 376, in wrapped
    raise exception
  File "/nix/store/k6w0jjrzlpz9g23w1j0snbi9dcn10cm3-aws-sam-cli-1.132.0/lib/python3.12/site-packages/samcli/lib/telemetry/event.py", line 368, in wrapped
    return_value = func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/k6w0jjrzlpz9g23w1j0snbi9dcn10cm3-aws-sam-cli-1.132.0/lib/python3.12/site-packages/samcli/lib/cli_validation/image_repository_validation.py", line 111, in wrapped
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/k6w0jjrzlpz9g23w1j0snbi9dcn10cm3-aws-sam-cli-1.132.0/lib/python3.12/site-packages/samcli/lib/telemetry/metric.py", line 104, in wrapped
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/k6w0jjrzlpz9g23w1j0snbi9dcn10cm3-aws-sam-cli-1.132.0/lib/python3.12/site-packages/samcli/lib/utils/version_checker.py", line 43, in wrapped
    actual_result = func(*args, **kwargs)
                    ^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/k6w0jjrzlpz9g23w1j0snbi9dcn10cm3-aws-sam-cli-1.132.0/lib/python3.12/site-packages/samcli/cli/main.py", line 95, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/k6w0jjrzlpz9g23w1j0snbi9dcn10cm3-aws-sam-cli-1.132.0/lib/python3.12/site-packages/samcli/commands/_utils/cdk_support_decorators.py", line 40, in wrapped
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/k6w0jjrzlpz9g23w1j0snbi9dcn10cm3-aws-sam-cli-1.132.0/lib/python3.12/site-packages/samcli/commands/_utils/command_exception_handler.py", line 89, in wrapper_command_exception_handler
    raise ex
  File "/nix/store/k6w0jjrzlpz9g23w1j0snbi9dcn10cm3-aws-sam-cli-1.132.0/lib/python3.12/site-packages/samcli/commands/_utils/command_exception_handler.py", line 69, in wrapper_command_exception_handler
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/k6w0jjrzlpz9g23w1j0snbi9dcn10cm3-aws-sam-cli-1.132.0/lib/python3.12/site-packages/samcli/commands/sync/command.py", line 229, in cli
    do_cli(
  File "/nix/store/k6w0jjrzlpz9g23w1j0snbi9dcn10cm3-aws-sam-cli-1.132.0/lib/python3.12/site-packages/samcli/commands/sync/command.py", line 411, in do_cli
    execute_watch(
  File "/nix/store/k6w0jjrzlpz9g23w1j0snbi9dcn10cm3-aws-sam-cli-1.132.0/lib/python3.12/site-packages/samcli/commands/sync/command.py", line 572, in execute_watch
    watch_manager.start()
  File "/nix/store/k6w0jjrzlpz9g23w1j0snbi9dcn10cm3-aws-sam-cli-1.132.0/lib/python3.12/site-packages/samcli/lib/sync/watch_manager.py", line 230, in start
    self._start()
  File "/nix/store/k6w0jjrzlpz9g23w1j0snbi9dcn10cm3-aws-sam-cli-1.132.0/lib/python3.12/site-packages/samcli/lib/sync/watch_manager.py", line 245, in _start
    self._execute_infra_sync(first_sync)
  File "/nix/store/k6w0jjrzlpz9g23w1j0snbi9dcn10cm3-aws-sam-cli-1.132.0/lib/python3.12/site-packages/samcli/lib/sync/watch_manager.py", line 285, in _execute_infra_sync
    self._start_sync()
  File "/nix/store/k6w0jjrzlpz9g23w1j0snbi9dcn10cm3-aws-sam-cli-1.132.0/lib/python3.12/site-packages/samcli/lib/sync/watch_manager.py", line 253, in _start_sync
    self._add_template_triggers()
  File "/nix/store/k6w0jjrzlpz9g23w1j0snbi9dcn10cm3-aws-sam-cli-1.132.0/lib/python3.12/site-packages/samcli/lib/sync/watch_manager.py", line 186, in _add_template_triggers
    self._observer.schedule_handlers(template_trigger.get_path_handlers())
  File "/nix/store/k6w0jjrzlpz9g23w1j0snbi9dcn10cm3-aws-sam-cli-1.132.0/lib/python3.12/site-packages/samcli/lib/utils/path_observer.py", line 153, in schedule_handlers
    watches.append(self.schedule_handler(path_handler))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/k6w0jjrzlpz9g23w1j0snbi9dcn10cm3-aws-sam-cli-1.132.0/lib/python3.12/site-packages/samcli/lib/utils/path_observer.py", line 170, in schedule_handler
    watch: ObservedWatch = self.schedule(path_handler.event_handler, str(path_handler.path), path_handler.recursive)

Steps To Reproduce

sam sync

Expected behavior

Screenshots

Additional context

Metadata

Notify maintainers


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

@arianvp arianvp added the 0.kind: bug Something is broken label Dec 28, 2024
@arianvp
Copy link
Member Author

arianvp commented Dec 28, 2024

This is caused by e5fb68f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

1 participant