Closed castorfou closed 2 years ago
Thank you for opening an issue. If this issue is related to a bug, please follow the steps and provide the information outlined in the Troubleshooting Guide. Failure to follow these instructions may result in automatic closing of this issue.
I think this is due to PyYAML yaml.load(input) Deprecation. As explained in https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation,
Use of PyYAML's yaml.load function without specifying the Loader=... parameter, has been deprecated. In PyYAML version 5.1+, you will get a warning, but the function will still work. See How to Disable the Warning below.
I guess now it is not a warning message, but an error message.
Not sure how to fix it, maybe force a previous yaml version?
@castorfou Yes I had to pin this version of pyaml which I fixed. Is there any chance you can start a new repo and copy all your files over? I've made some additional changes based on GitHub Actions that won't allow you to upgrade without copying everything over.
I'll close this issue for now but please feel free to keep the conversation going.
Thank you @hamelsmu
I have just created a new repo and copied everything. It works but .. is there a way to keep the former baseurl?
I tried by modifying _config.yml
and _action_files\settings.ini
without any success.
I have detailed what I did at https://castorfou.github.io/blog/blog/upgrade-fastpages.html
@castorfou can your new repo so its the same as the old repo? That should help. You may have to rename the old repo first
@hamelsmu so simple ;) will do that
Required Prerequisites for filing a bug
You must follow ALL the steps in the troubleshooting guide. Not doing so may result in automatic closure of the issue.
Required information
Create an issue of type [fastpages] Automated Upgrade Open the action
Wait for a new comment in this issue by github-actions:
The action [fastpages] Automated Upgrade fails in the upgrade job. More specifically it fails at the sync baseurl step.
Run import re, os, yaml Traceback (most recent call last): File "/home/runner/work/_temp/514acf91-3852-4d68-a20e-62f3ad147b7d.py", line 22, in
config = yaml.load(cfg)
TypeError: load() missing 1 required positional argument: 'Loader'
Error: Process completed with exit code 1.