Fails on Mac OS Ventura 13.16 Type info must be provided for local resolving
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 30/100
Piste de recherche
Commencez par reproduire cfn submit --set-default et examiner le rpdk.log joint. Lisez rpdk/core/project.py au niveau de _add_hooks_content_to_zip et _load_target_info, puis rpdk/core/type_name_resolver.py au niveau de resolve_type_names_locally. C'est terminé lorsque la commande ne se termine plus par l'exception de résolution de type non gérée signalée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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'
- Langage dominant
- Python
- Étoiles
- 336
- Forks
- 173
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de aws-cloudformation/cloudformation-cli
-
docs: `--use-docker` and `--no-docker` options of `cfn submit` are missing from the documentationOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 92/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
-
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
aws-cloudformation/cloudformation-cli#1117 · 1 commentaire · 6 réactions ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
aws-cloudformation/cloudformation-cli#1115 · 1 commentaire · 9 réactions ·
Toutes les issues de aws-cloudformation/cloudformation-cli
Issues similaires
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 78/100
-
Needs Triage
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
pandas-dev/pandas#72163 ·
Les mainteneurs répondent en général sous 2 jours
-
LightFM prepare_test_df ignores mapping values and silently mislabels evaluation pairsPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 79/100
recommenders-team/recommenders#2480 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
521xueweihan/HelloGitHub#4385 ·
-
🐛 bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
pdm-project/pdm#4012 ·
Les mainteneurs répondent en général sous 1 jour