Skip to content

Every deploy command ends with a long traceback #61

@tino

Description

@tino
╭────────────────────────── Traceback (most recent call last) ──────────────────────────╮
│ /Users/tino/.local/bin/beam:10 in <module>                                            │
│                                                                                       │
│    7 │   │   sys.argv[0] = sys.argv[0][:-11]                                          │
│    8 │   elif sys.argv[0].endswith(".exe"):                                           │
│    9 │   │   sys.argv[0] = sys.argv[0][:-4]                                           │
│ ❱ 10 │   sys.exit(cli())                                                              │
│   11                                                                                  │
│                                                                                       │
│ /Users/tino/.local/share/uv/tools/beam-client/lib/python3.13/site-packages/beam/cli/m │
│ ain.py:49 in cli                                                                      │
│                                                                                       │
│   46 │   utils.check_version()                                                        │
│   47 │                                                                                │
│   48 │   try:                                                                         │
│ ❱ 49 │   │   if exit_code := _cli(standalone_mode=False):                             │
│   50 │   │   │   sys.exit(exit_code)                                                  │
│   51 │   except (EOFError, KeyboardInterrupt) as e:                                   │
│   52 │   │   click.echo(file=sys.stderr)                                              │
│                                                                                       │
│ /Users/tino/.local/share/uv/tools/beam-client/lib/python3.13/site-packages/beta9/cli/ │
│ main.py:61 in __call__                                                                │
│                                                                                       │
│    58 │   │   )                                                                       │
│    59 │                                                                               │
│    60 │   def __call__(self, **kwargs) -> None:                                       │
│ ❱  61 │   │   self.common_group.main(prog_name=self.settings.name.lower(), **kwargs)  │
│    62 │                                                                               │
│    63 │   def register(self, module: ModuleType) -> None:                             │
│    64 │   │   if hasattr(module, "common"):                                           │
│                                                                                       │
│ /Users/tino/.local/share/uv/tools/beam-client/lib/python3.13/site-packages/click/core │
│ .py:1363 in main                                                                      │
│                                                                                       │
│   1360 │   │   try:                                                                   │
│   1361 │   │   │   try:                                                               │
│   1362 │   │   │   │   with self.make_context(prog_name, args, **extra) as ctx:       │
│ ❱ 1363 │   │   │   │   │   rv = self.invoke(ctx)                                      │
│   1364 │   │   │   │   │   if not standalone_mode:                                    │
│   1365 │   │   │   │   │   │   return rv                                              │
│   1366 │   │   │   │   │   # it's not safe to `ctx.exit(rv)` here!                    │
│                                                                                       │
│ /Users/tino/.local/share/uv/tools/beam-client/lib/python3.13/site-packages/beta9/cli/ │
│ extraclick.py:132 in invoke                                                           │
│                                                                                       │
│   129 │   def invoke(self, ctx: click.Context) -> Any:                                │
│   130 │   │   if ctx.protected_args:                                                  │
│   131 │   │   │   if group := self.sources_map.get(ctx.protected_args[0]):            │
│ ❱ 132 │   │   │   │   group.invoke(ctx)                                               │
│   133 │   │   │   else:                                                               │
│   134 │   │   │   │   print(self.get_help(ctx))                                       │
│   135 │   │   │   │   sys.exit(1)                                                     │
│                                                                                       │
│ /Users/tino/.local/share/uv/tools/beam-client/lib/python3.13/site-packages/click/core │
│ .py:1830 in invoke                                                                    │
│                                                                                       │
│   1827 │   │   │   │   super().invoke(ctx)                                            │
│   1828 │   │   │   │   sub_ctx = cmd.make_context(cmd_name, args, parent=ctx)         │
│   1829 │   │   │   │   with sub_ctx:                                                  │
│ ❱ 1830 │   │   │   │   │   return _process_result(sub_ctx.command.invoke(sub_ctx))    │
│   1831 │   │                                                                          │
│   1832 │   │   # In chain mode we create the contexts step by step, but after the     │
│   1833 │   │   # base command has been invoked.  Because at that point we do not      │
│                                                                                       │
│ /Users/tino/.local/share/uv/tools/beam-client/lib/python3.13/site-packages/click/core │
│ .py:1226 in invoke                                                                    │
│                                                                                       │
│   1223 │   │   │   echo(style(message, fg="red"), err=True)                           │
│   1224 │   │                                                                          │
│   1225 │   │   if self.callback is not None:                                          │
│ ❱ 1226 │   │   │   return ctx.invoke(self.callback, **ctx.params)                     │
│   1227 │                                                                              │
│   1228 │   def shell_complete(self, ctx: Context, incomplete: str) -> list[Completion │
│   1229 │   │   """Return a list of completions for the incomplete value. Looks        │
│                                                                                       │
│ /Users/tino/.local/share/uv/tools/beam-client/lib/python3.13/site-packages/click/core │
│ .py:794 in invoke                                                                     │
│                                                                                       │
│    791 │   │                                                                          │
│    792 │   │   with augment_usage_errors(self):                                       │
│    793 │   │   │   with ctx:                                                          │
│ ❱  794 │   │   │   │   return callback(*args, **kwargs)                               │
│    795 │                                                                              │
│    796 │   def forward(self, cmd: Command, /, *args: t.Any, **kwargs: t.Any) -> t.Any │
│    797 │   │   """Similar to :meth:`invoke` but fills in default keyword              │
│                                                                                       │
│ /Users/tino/.local/share/uv/tools/beam-client/lib/python3.13/site-packages/click/deco │
│ rators.py:34 in new_func                                                              │
│                                                                                       │
│    31 │   """                                                                         │
│    32 │                                                                               │
│    33 │   def new_func(*args: P.args, **kwargs: P.kwargs) -> R:                       │
│ ❱  34 │   │   return f(get_current_context(), *args, **kwargs)                        │
│    35 │                                                                               │
│    36 │   return update_wrapper(new_func, f)                                          │
│    37                                                                                 │
│                                                                                       │
│ /Users/tino/.local/share/uv/tools/beam-client/lib/python3.13/site-packages/beta9/cli/ │
│ deployment.py:87 in deploy                                                            │
│                                                                                       │
│    84 │   format: str,                                                                │
│    85 │   **kwargs,                                                                   │
│    86 ):                                                                              │
│ ❱  87 │   ctx.invoke(                                                                 │
│    88 │   │   create_deployment,                                                      │
│    89 │   │   name=name,                                                              │
│    90 │   │   handler=handler,                                                        │
│                                                                                       │
│ /Users/tino/.local/share/uv/tools/beam-client/lib/python3.13/site-packages/click/core │
│ .py:794 in invoke                                                                     │
│                                                                                       │
│    791 │   │                                                                          │
│    792 │   │   with augment_usage_errors(self):                                       │
│    793 │   │   │   with ctx:                                                          │
│ ❱  794 │   │   │   │   return callback(*args, **kwargs)                               │
│    795 │                                                                              │
│    796 │   def forward(self, cmd: Command, /, *args: t.Any, **kwargs: t.Any) -> t.Any │
│    797 │   │   """Similar to :meth:`invoke` but fills in default keyword              │
│                                                                                       │
│ /Users/tino/.local/share/uv/tools/beam-client/lib/python3.13/site-packages/beta9/chan │
│ nel.py:155 in wrapper                                                                 │
│                                                                                       │
│   152 def with_grpc_error_handling(func: Callable) -> Callable:                       │
│   153 │   def wrapper(*args, **kwargs):                                               │
│   154 │   │   try:                                                                    │
│ ❱ 155 │   │   │   return func(*args, **kwargs)                                        │
│   156 │   │   except grpc.RpcError as e:                                              │
│   157 │   │   │   handle_grpc_error(e)                                                │
│   158                                                                                 │
│                                                                                       │
│ /Users/tino/.local/share/uv/tools/beam-client/lib/python3.13/site-packages/beta9/cli/ │
│ extraclick.py:218 in decorator                                                        │
│                                                                                       │
│   215 │   │   with ServiceClient(config) as client:                                   │
│   216 │   │   │   base_abstraction.set_channel(client.channel)                        │
│   217 │   │   │                                                                       │
│ ❱ 218 │   │   │   return func(client, *args, **kwargs)                                │
│   219 │                                                                               │
│   220 │   return decorator                                                            │
│   221                                                                                 │
│                                                                                       │
│ /Users/tino/.local/share/uv/tools/beam-client/lib/python3.13/site-packages/beta9/cli/ │
│ deployment.py:183 in create_deployment                                                │
│                                                                                       │
│   180 │   │   if not module and hasattr(user_obj, "generate_deployment_artifacts"):   │
│   181 │   │   │   user_obj.generate_deployment_artifacts(**kwargs)                    │
│   182 │   │                                                                           │
│ ❱ 183 │   │   response, ok = user_obj.deploy(                                         │
│   184 │   │   │   name=name,                                                          │
│   185 │   │   │   context=service._config,                                            │
│   186 │   │   │   url_type=url_type,                                                  │
╰───────────────────────────────────────────────────────────────────────────────────────╯
TypeError: cannot unpack non-iterable bool object

Python 3.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions