Sceptre delete command failing to delete templates

Hello guys. Can somebody help me here.
At some point of time maybe 3 -4 weeks ago sceptre delete command stopped work for all the templates that we have.
The first problem was with this:
/home/github-actions/.local/lib/python3.10/site-packages/sceptre/stack.py:465: DeprecatedWarning: template_path is deprecated as of 4.0.0. Use the template Stack Config key instead.
58
setattr(self, deprecated_attribute_name, deprecated_value)

This problem was fixed by changing template_path to
template:
path: common/ecr.yaml
as mentioned in the documentation.

And now still not possible to delete the template with the sceptre delete command and I got this error

“template is a required Stack Config.”

have you tried using the latest version, v4.5.3?

Yes i tried differen versions

will try this version also

it works for me…

Sceptre, version 4.5.3

➜ AWS_PROFILE=strides-ampad-workflows-admin AWS_DEFAULT_REGION=us-east-1 sceptre --ignore-dependencies delete prod/wpoehlman-instance1.yaml
The following stacks, in the following order, will be deleted:
prod/wpoehlman-instance1

Do you want to delete 'prod/wpoehlman-instance1.yaml' [y/N]: y
[2025-04-23 12:06:59] - prod/wpoehlman-instance1 - Deleting stack
[2025-04-23 12:07:00] - prod/wpoehlman-instance1 wpoehlman-instance1 AWS::CloudFormation::Stack DELETE_IN_PROGRESS User Initiated
[2025-04-23 12:07:05] - prod/wpoehlman-instance1 OutboundSecurityGroup AWS::EC2::SecurityGroup DELETE_IN_PROGRESS
[2025-04-23 12:07:05] - prod/wpoehlman-instance1 Instance AWS::EC2::Instance DELETE_IN_PROGRESS
[2025-04-23 12:07:05] - prod/wpoehlman-instance1 OutboundSecurityGroup AWS::EC2::SecurityGroup DELETE_COMPLETE
[2025-04-23 12:07:48] - prod/wpoehlman-instance1 Instance AWS::EC2::Instance DELETE_COMPLETE
[2025-04-23 12:07:48] - prod/wpoehlman-instance1 InstanceProfile AWS::IAM::InstanceProfile DELETE_IN_PROGRESS
[2025-04-23 12:07:52] - prod/wpoehlman-instance1 InstanceProfile AWS::IAM::InstanceProfile DELETE_COMPLETE
[2025-04-23 12:07:52] - prod/wpoehlman-instance1 InstanceRole AWS::IAM::Role DELETE_IN_PROGRESS
[2025-04-23 12:08:01] - prod/wpoehlman-instance1 - delete complete```

Ok i will give you the details
here is the command

sceptre --debug delete -y dev/us-west-2/apps/consent-v2-infra/ecrtest.yaml

template:
  type: file
  path: common/ecr.yaml
stack_name: identity-profile-dev-us-west-2-apps-consent-v2-ecrtest
parameters:
  RepoName: *********************
  DataClassificationTag: "********"```


Here is the template

are you running in a virtual env?

I think no. it is running in github actions. Just set up python, install sceptre and then run sceptre delete command

which version of python?

i would try to reproduce in your local environment and debug there.

it’s working for us with python 3.9 in github actions…

  File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/bin/sceptre", line 8, in <module>
    sys.exit(cli())
             ~~~^^
  File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/click/core.py", line 1161, in __call__
    return self.main(*args, **kwargs)
           ~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/click/core.py", line 1082, in main
    rv = self.invoke(ctx)
  File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/click/core.py", line 1697, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/click/core.py", line 1443, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/click/core.py", line 788, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/sceptre/cli/helpers.py", line 46, in decorated
    return func(*args, **kwargs)
  File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/sceptre/cli/delete.py", line 41, in delete_command
    plan = SceptrePlan(context)
  File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/sceptre/plan/plan.py", line 50, in __init__
    all_stacks, command_stacks = self.config_reader.construct_stacks()
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/sceptre/config/reader.py", line 273, in construct_stacks
    stack = self._construct_stack(rel_path, stack_group_config)
  File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/sceptre/config/reader.py", line 639, in _construct_stack
    stack = Stack(
        name=stack_name,
    ...<29 lines>...
        config=config,
    )
  File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/sceptre/stack.py", line 256, in __init__
    self._set_field_with_deprecated_alias(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        "template_handler_config",
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<4 lines>...
        preferred_config_name="template",
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/bin/actions-runner/_work/_tool/Python/3.13.3/x64/lib/python3.13/site-packages/sceptre/stack.py", line 467, in _set_field_with_deprecated_alias
    raise InvalidConfigFileError(
        f"{preferred_config_name} is a required Stack Config."
    )
sceptre.exceptions.InvalidConfigFileError: template is a required Stack Config.```

it traces from debug mode.

ohh wait, why do you have sceptre==4.5.3 in the sceptre config file?

i just tried differen versions of scptre

No it is not ther i just messaged what version of sceptre I am using

sceptre==4.5.3 - this is not in the template

sorry, i think you are on your own. i don’t use python 3.13 and it’s not even a supported version. I would try python 3.9 to 3.12.

the same with python 3.9