View Single Post
Old 01-28-2020, 07:36 PM   #70
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 876
Karma: 3501146
Join Date: Jan 2017
Location: Poland
Device: Various
Quote:
Originally Posted by davidfor View Post
That seems to suggest that the values in the configuration file are not being seen as numbers. Could you post the plugins config file? This will be "Resize Cover.json" in the plugins directory of the calibre configuration directory.
Sure.
Spoiler:
Code:
{
  "Options": {
    "sizes": [
      {
        "default": false, 
        "height": 680, 
        "ratio": false, 
        "width": 450
      }, 
      {
        "default": true, 
        "height": 300, 
        "ratio": false, 
        "width": 300
      }, 
      {
        "default": false, 
        "height": 1000, 
        "ratio": true, 
        "width": 1000
      }, 
      {
        "default": false, 
        "height": 450, 
        "ratio": true, 
        "width": 400
      }
    ]
  }
}


I also noticed after running calibre-debug -g

Spoiler:
Code:
Traceback (most recent call last):
File "site-packages\calibre\gui2\ui.py", line 236, in initialize
File "site-packages\calibre\gui2\actions\__init__.py", line 147, in do_genesis
File "calibre_plugins.resize_cover.action", line 48, in genesis
File "calibre_plugins.resize_cover.action", line 67, in rebuild_menus
AttributeError: 'unicode' object has no attribute 'get'


EDIT1: The latter error occurs if you delete the .json file completely.

EDIT2: Additional information: Even if the plug-in starts, creating a new item menu always creates a "Default" item.

Last edited by BeckyEbook; 01-28-2020 at 07:45 PM. Reason: The reason for the error
BeckyEbook is online now   Reply With Quote