Fails on Mac OS Ventura 13.16 Type info must be provided for local resolving

オープン
#1,058 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
aws, docker, python
領域
cli, cloud

調査の方向性

まず cfn submit --set-default を再現し、添付された rpdk.log を確認します。rpdk/core/project.py の _add_hooks_content_to_zip と _load_target_info、続いて rpdk/core/type_name_resolver.py の resolve_type_names_locally を読みます。コマンドが報告された未処理の型解決例外で終了しなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Errors out while trying command "cfn submit --set-default"

[durgesh hooks % cfn submit --set-default
Failed to load target info, attempting local...
Traceback (most recent call last):
File "/usr/local/Cellar/cloudformation-cli/0.2.35_1/libexec/lib/python3.12/site-packages/rpdk/core/project.py", line 715, in _add_hooks_content_to_zip
else self._load_target_info(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/cloudformation-cli/0.2.35_1/libexec/lib/python3.12/site-packages/rpdk/core/project.py", line 1217, in _load_target_info
session = create_sdk_session(region_name, profile_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/cloudformation-cli/0.2.35_1/libexec/lib/python3.12/site-packages/rpdk/core/boto_helpers.py", line 27, in create_sdk_session
_known_error("No region specified")
File "/usr/local/Cellar/cloudformation-cli/0.2.35_1/libexec/lib/python3.12/site-packages/rpdk/core/boto_helpers.py", line 19, in _known_error
raise CLIMisconfiguredError(
rpdk.core.exceptions.CLIMisconfiguredError: No region specified. Please ensure your AWS CLI is configured correctly: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html
Failed to load target info, ignoring...
Traceback (most recent call last):
File "/usr/local/Cellar/cloudformation-cli/0.2.35_1/libexec/lib/python3.12/site-packages/rpdk/core/project.py", line 715, in _add_hooks_content_to_zip
else self._load_target_info(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/cloudformation-cli/0.2.35_1/libexec/lib/python3.12/site-packages/rpdk/core/project.py", line 1217, in _load_target_info
session = create_sdk_session(region_name, profile_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/cloudformation-cli/0.2.35_1/libexec/lib/python3.12/site-packages/rpdk/core/boto_helpers.py", line 27, in create_sdk_session
_known_error("No region specified")
File "/usr/local/Cellar/cloudformation-cli/0.2.35_1/libexec/lib/python3.12/site-packages/rpdk/core/boto_helpers.py", line 19, in _known_error
raise CLIMisconfiguredError(
rpdk.core.exceptions.CLIMisconfiguredError: No region specified. Please ensure your AWS CLI is configured correctly: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/Cellar/cloudformation-cli/0.2.35_1/libexec/lib/python3.12/site-packages/rpdk/core/project.py", line 722, in _add_hooks_content_to_zip
target_info = self._load_target_info(None, None, local_only=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/cloudformation-cli/0.2.35_1/libexec/lib/python3.12/site-packages/rpdk/core/project.py", line 1212, in _load_target_info
targets = TypeNameResolver.resolve_type_names_locally(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/cloudformation-cli/0.2.35_1/libexec/lib/python3.12/site-packages/rpdk/core/type_name_resolver.py", line 48, in resolve_type_names_locally
raise InvalidTypeSchemaError(
rpdk.core.exceptions.InvalidTypeSchemaError: Type info must be provided for local resolving
Starting Docker build. This may take several minutes if the image 'public.ecr.aws/sam/build-python3.7' needs to be pulled first.
=== Unhandled exception ===
Please report this issue to the team.
Issue tracker: github.com/aws-cloudformation/cloudformation-cli/issues
Please include the log file 'rpdk.log'

主要言語
Python
スター
336
フォーク
173
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws-cloudformation/cloudformation-cli のほかの issue

aws-cloudformation/cloudformation-cli の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。