View Single Post
Old 04-19-2021, 12:29 PM   #543
SoccerDad91016
Enthusiast
SoccerDad91016 began at the beginning.
 
SoccerDad91016's Avatar
 
Posts: 34
Karma: 10
Join Date: Aug 2014
Device: Kindle Paperwhite, Kindle Fire HD 8, Microsoft Surface Go 3
Latest update appears to have broken TemplateBox.

I have the following line in an action chain module:

from calibre_plugins.action_chains.templates import TemplateBox, check_template, get_metadata_object

Getting the following error after the latest plugin and Cailbre updates:
calibre, version 5.16.0
ERROR: Invalid Python code: The code you created is not valid Python code, with error: cannot import name 'TemplateBox' from 'calibre_plugins.action_chains.templates' (C:\Users\xxxxxxx\AppData\Roaming\calibre\plugins\ Action Chains.zip/templates/__init__.py)

Is this something I can fix, or do I need to wait for an update to ActionsChains plugin or Calibre?
SoccerDad91016 is offline   Reply With Quote