youtube-video-upload
youtube-video-upload copied to clipboard
yaml loading
When I try to execute the example code I get an error:
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\youtube_video_upload\__main__.py", line 11, in <module>
options = yaml.load(yaml_file.read())
TypeError: load() missing 1 required positional argument: 'Loader'
Then, I changed line 11 of main to:
options = yaml.safe_load(yaml_file.read())
And it works