-
Notifications
You must be signed in to change notification settings - Fork 28
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
Recipe Robot python script not working with AutoPkg 2.0 #156
Comments
Thanks for the report! It's true, I've been busy updating other projects for Python 3 and neglected Recipe Robot. But I hope to bring it up to date soon. |
Status update: Python 3 compatibility for the script is mostly done. There are two main issues remaining to solve:
Work in progress on the https://github.com/homebysix/recipe-robot/tree/2.0.0-dev branch. |
@homebysix Any news you are able to provide? |
@jelockwood - Feel free to try the branch linked above. The command line portion works well, except for the GitHub 403 errors that I'm still addressing. I'll open another issue for the |
@homebysix I think I found a fix for the You can tell curl to dump headers to std out and dump the body of the response to Found HERE So here is how I tested the workaround: def get_headers(url, headers=None):
"""Get a URL's HTTP headers, parse them, and return them."""
curl_cmd = prepare_curl_cmd()
add_curl_headers(curl_cmd, headers)
curl_cmd.extend(["--head", url])
curl_cmd = ["/usr/bin/curl", "-sSL", "-D", "-", url, "-o", "/dev/null"]
output = download_with_curl(curl_cmd, text=True)
parsed_headers = parse_headers(output, url=url)
return parsed_headers I just did a hard override to the curl command there. But it got me past the 403 errors. It seems that S3 is the issue. S3 does not like the |
@n8felton - I'm pleased to report that I've got a release candidate for Recipe Robot 2.0.0, finally. Could you try downloading the release candidate, and let me know if that solves your issue? Thank you. |
This should be solved in the 2.0.0 release |
Describe the bug
After upgrading to AutoPkg 2.0.2, the python script for recipe-robot no longer works.
To Reproduce
Steps to reproduce the behavior:
git pull https://github.com/homebysix/recipe-robot.git
Expected behavior
Normal usage of the recipe-robot python script
Desktop (please complete the following information):
10.14.6 (18G3020)
1.2.1
which python
:/usr/bin/python
python --version
:Python 2.7.16
Additional context
The text was updated successfully, but these errors were encountered: