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

Generating cloudformation template fails with: CodeBuild does not yet support python version 'python3.10'. #2054

Open
marcinbarczynski opened this issue Jul 16, 2023 · 0 comments

Comments

@marcinbarczynski
Copy link

marcinbarczynski commented Jul 16, 2023

chalice deploy works fine but when I try to generate a cloudformation template, I get:

$ chalice generate-pipeline file
Traceback (most recent call last):
  File "/home/q/.virtualenvs/chalice/lib/python3.10/site-packages/chalice/pipeline.py", line 223, in _get_codebuild_image
    image_suffix = self._CODEBUILD_IMAGE[params.lambda_python_version]
KeyError: 'python3.10'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/q/.virtualenvs/chalice/lib/python3.10/site-packages/chalice/cli/__init__.py", line 637, in main
    return cli(obj={})
  File "/home/q/.virtualenvs/chalice/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/q/.virtualenvs/chalice/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/q/.virtualenvs/chalice/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/q/.virtualenvs/chalice/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/q/.virtualenvs/chalice/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/q/.virtualenvs/chalice/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/q/.virtualenvs/chalice/lib/python3.10/site-packages/chalice/cli/__init__.py", line 620, in generate_pipeline
    output = p.create_template(params)
  File "/home/q/.virtualenvs/chalice/lib/python3.10/site-packages/chalice/pipeline.py", line 205, in create_template
    params['CodeBuildImage']['Default'] = self._get_codebuild_image(
  File "/home/q/.virtualenvs/chalice/lib/python3.10/site-packages/chalice/pipeline.py", line 226, in _get_codebuild_image
    raise InvalidCodeBuildPythonVersion(str(e))
chalice.pipeline.InvalidCodeBuildPythonVersion: CodeBuild does not yet support python version 'python3.10'.
$ chalice --version
chalice 1.29.0, python 3.10.6, linux 5.19.0-46-generic
@marcinbarczynski marcinbarczynski changed the title Generating cloudformation template fails with CodeBuild does not yet support python version 'python3.10'. Generating cloudformation template fails with: CodeBuild does not yet support python version 'python3.10'. Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant