Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Fix YAMLLoadWarning #3 #4

Closed

Conversation

YoshihikoFuruhashi
Copy link

(Ref)
This page explains the PyYAML 5.1+ deprecation of the plain yaml.load(input) function.
https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation
@sontl
Copy link

sontl commented Nov 16, 2021

pls help to merge this fix !!

@YoshihikoFuruhashi
Copy link
Author

YoshihikoFuruhashi commented Apr 27, 2022

We have 2 options to avoid this error:

  1. Adding labels manually, instead of using docker-auto-labels.
  2. Use PyYaml 4.2b4.
    python -m pip install docker-auto-labels
    python -m pip install PyYAML==4.2b4

@abduakhatov
Copy link

abduakhatov commented Feb 14, 2023

@YoshihikoFuruhashi I didnt notice you PR so opened a new one with your second solution.

It would be good to include version for pyyaml in setup in order to overcome such version issues

@tiangolo
Copy link
Owner

Thanks! This was updated in #11

On the other hand, I deprecated this package. 😅 https://github.com/tiangolo/docker-auto-labels#deprecated-

@tiangolo tiangolo closed this Aug 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants