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

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

Open
durgesh891 opened this issue Feb 15, 2024 · 1 comment

Comments

@durgesh891
Copy link

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'

@durgesh891
Copy link
Author

[
rpdk.log
](url)

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