Closed jitvimol closed 2 years ago
Yes please ensure you are using PyYAML >= 5.3.1. Regards.
Hi @mkhorasani I'm having this same issue even after upgrading PyYAML
Hi @mkhorasani I'm having this same issue even after upgrading PyYAML
Worked after I added from yaml import SafeLoader
Hi @mkhorasani I'm having this same issue even after upgrading PyYAML
Worked after I added
from yaml import SafeLoader
Confirm that it works. Thank you!
ymal config loader might depreciated? I try running the code and there's an error about "Loader=SafeLoader" I switch to new code below and found working.
with open('user.ymal') as file:
config = yaml.load(file, Loader=SafeLoader) # previous code, not working