Recipe Robot python script not working with AutoPkg 2.0
See original GitHub issueDescribe 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:
- Install AutoPkg 2.0.2
git pull https://github.com/homebysix/recipe-robot.git
- cd recipe-robot/scripts
- ./recipe-robot
- python stack trace
Expected behavior Normal usage of the recipe-robot python script
Desktop (please complete the following information):
- macOS:
10.14.6 (18G3020)
- Recipe Robot Version:
1.2.1
which python
:/usr/bin/python
python --version
:Python 2.7.16
Additional context
Traceback (most recent call last):
File "./recipe-robot", line 42, in <module>
import recipe_robot_lib
File "/Users/n8felton/src/recipe-robot/scripts/recipe_robot_lib/__init__.py", line 26, in <module>
from .recipe_generator import generate_recipes
File "/Users/n8felton/src/recipe-robot/scripts/recipe_robot_lib/recipe_generator.py", line 34, in <module>
from . import processor
File "/Users/n8felton/src/recipe-robot/scripts/recipe_robot_lib/processor.py", line 38, in <module>
import autopkglib
File "/Library/AutoPkg/autopkglib/__init__.py", line 185
raise PreferenceError(f"Could not synchronize preference {key}")
^
SyntaxError: invalid syntax
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Help wanted: Problem transitioning to Python3 · Issue #160 ... - GitHub
Recipe Robot's transition to Python 3 has been delayed due to a problem with the way the ... Recipe Robot python script not...
Read more >Writing better AutoPkg recipes with Recipe Robot
Mac App. Python Script. Stable, tested. Gets new features first. Easier troubleshooting. Geek cred ! Drag and drop. Friendly, easy, simple. Sweet icon....
Read more >Switch AutoPkg recipes to HTTPS - Elliot Jordan
A script that helps AutoPkg recipe authors use HTTPS in download recipes, and context about why using HTTPS is important.
Read more >XyU - River Thames Conditions - Environment Agency - GOV.UK
#in Deep learning toolbox python, Umberloid, Zdjecie profilowe na whatsapp, ... Kate waybourne, Cat eye problems treatment, Song meanings my milkshake, ...
Read more >Page 31 – #! is not a curse word - Scripting OS X
When working in shell scripts on macOS, you can use the date command to get the ... Getting and parsing ISO dates with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Status update: Python 3 compatibility for the script is mostly done. There are two main issues remaining to solve:
curl
for web requests, similar to AutoPkg 2. However, I’m not handling GitHub tokens correctly yet, and getting 403 errors as a result.RoboError
. I may need some help with this one.Work in progress on the https://github.com/homebysix/recipe-robot/tree/2.0.0-dev branch.
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.