question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Recipe Robot python script not working with AutoPkg 2.0

See original GitHub issue

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:

  1. Install AutoPkg 2.0.2
  2. git pull https://github.com/homebysix/recipe-robot.git
  3. cd recipe-robot/scripts
  4. ./recipe-robot
  5. 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:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
homebysixcommented, Feb 19, 2020

Status update: Python 3 compatibility for the script is mostly done. There are two main issues remaining to solve:

  • I’ve transitioned to using curl for web requests, similar to AutoPkg 2. However, I’m not handling GitHub tokens correctly yet, and getting 403 errors as a result.
  • The swift notification listener is not working as expected, causing the app to fail to display the output from a Recipe Robot run if the script raised a 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.

2reactions
homebysixcommented, Feb 8, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found