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

ruamel.yaml no longer supports load and safe_load methods #101

Open
honibis opened this issue Nov 7, 2023 · 1 comment
Open

ruamel.yaml no longer supports load and safe_load methods #101

honibis opened this issue Nov 7, 2023 · 1 comment

Comments

@honibis
Copy link

honibis commented Nov 7, 2023

ruamel.yaml no longer supports load and safe_load methods.

File \"/usr/local/lib/python3.10/dist-packages/ruamel/yaml/main.py\", line 1105, in safe_load\n error_deprecation('safe_load', 'load', arg=\"typ='safe', pure=True\")\n File \"/usr/local/lib/python3.10/dist-packages/ruamel/yaml/main.py\", line 1039, in error_deprecation\n raise AttributeError(s, name=None)\nAttributeError: \n\"safe_load()\" has been removed, use\n\n yaml = YAML(typ='safe', pure=True)\n yaml.load(...)\n\ninstead of file \"/tmp/ansible_yedit_payload_97zxk_ep/ansible_yedit_payload.zip/ansible/modules/yedit.py\", line 495\n\n\n\n",

I solved it by simply commenting use of ruamel.yaml and switch to default yaml

# try:
#     import ruamel.yaml as yaml  # noqa: F401
# except ImportError:
import yaml  # noqa: F401
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

2 participants