-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
aws codeartifact login does not work with PyYAML v6 #8046
Comments
The issues with |
Hey @agoblet! This issue wasn't reproducible with the given command. I was able to make the call successfully:
Can you provide debug logs (with any sensitive info redacted) by adding |
hey @jonathan343 after your message I tried the same in some other Sagemaker notebook kernels, and it appears that this problem only occurs in SparkMagic kernel. I need to do some additional research why this is the case. I'll get back to you once I know more. Will close the issue if I find out that it is not awscli related. |
reinstalling PyYAML v6 in the environment seems to solve the issue. The problem seems to be inside the kernel image rather than in awscli. Will close the issue, thanks for your help! |
|
@agoblet seeing the same thing when running the cli commands in Github Actions. Tried installing PyYAML along with the CLI in the workflow and still seeing the same issue. |
@eugenefm how did you install the packages? If using pip, did you use the |
Using pip but did not use the
Should I try something like this instead, to force a reinstall of PyYAML after the awscli install?
|
For me that solved the problem, can you try it? |
Describe the bug
Recently, support for PyYAML v6 has been added. Some parts of the awscli do not work with that PyYAML version though. When trying to login to CodeArtifact, awscli raises an exception. This does not happen when downgrading to PyYAML v5.4.
Expected Behavior
I expected awscli to just login to codeartifact without any errors, like it does when PyYAML v5.4 is installed.
Current Behavior
Reproduction Steps
Possible Solution
make the yamlhelper compatible with PyYAML v6
Additional Information/Context
It would be great if awscli would support PyYAML v6, because other AWS packages such as sagemaker depend on PyYAML v6.
CLI version used
1.29.5
Environment details (OS name and version, etc.)
AWS Sagemaker SparkMagic kernel, awscli==1.29.5, PyYAML==6.0.1
The text was updated successfully, but these errors were encountered: