View Single Post
Old 06-03-2011, 04:28 PM   #98
Gary_M_Mugford
Groupie
Gary_M_Mugford has a complete set of Star Wars action figures.Gary_M_Mugford has a complete set of Star Wars action figures.Gary_M_Mugford has a complete set of Star Wars action figures.
 
Gary_M_Mugford's Avatar
 
Posts: 180
Karma: 299
Join Date: Jul 2010
Location: Brampton ON
Device: Kobo, Kindle3
Hi Kiwidude,

Generate Cover has stopped working for me. I'm getting an error message that leads to the following log:

Spoiler:
calibre, version 0.8.4
ERROR: Unhandled exception: <b>AttributeError</b>:'NoneType' object has no attribute 'get'

Traceback (most recent call last):
File "calibre_plugins.generate_cover.action", line 48, in generate_cover
File "calibre_plugins.generate_cover.dialogs", line 879, in __init__
File "calibre_plugins.generate_cover.dialogs", line 1071, in compare_current_with_saved
File "calibre_plugins.generate_cover.dialogs", line 1082, in compare_items
File "calibre_plugins.generate_cover.dialogs", line 1082, in compare_items
AttributeError: 'NoneType' object has no attribute 'get'


My Generate Cover.jsn file looks like this:

Spoiler:
{
"Current": {
"fonts": {
"series": {
"name": null,
"size": 24
},
"author": {
"name": null,
"size": 36
},
"custom": {
"name": null,
"size": 24
},
"title": {
"name": null,
"size": 46
}
},
"name": "ShortFantasy",
"fieldOrder": [
{
"name": "Title",
"display": true
},
{
"name": "Author",
"display": true
},
{
"name": "Series",
"display": true
},
{
"name": "Image",
"display": true
},
{
"name": "Custom Text",
"display": false
}
],
"colorApplyStroke": false,
"swapAuthor": false,
"imageFile": "C:\\Documents and Settings\\Gary\\Application Data\\calibre\\resources\\images\\generate_cover\\ CalibreCoverShortFantasy.png",
"colors": {
"stroke": "#000000",
"border": "#000000",
"background": "#cbb193",
"fill": "#000000"
},
"fontsAutoReduced": false,
"backgroundImage": false,
"fontsLinked": false,
"margins": {
"text": 30,
"top": 10,
"left": 0,
"image": 10,
"bottom": 10
},
"borders": {
"coverBorder": 0,
"imageBorder": 0
},
"customText": "",
"size": [
500,
750
]
},
"Files": [
"{Current Cover}",
"C:\\Documents and Settings\\Gary\\Application Data\\calibre\\resources\\images\\generate_cover\\ CalibreCoverLongRomance.png",
"C:\\Documents and Settings\\Gary\\Application Data\\calibre\\resources\\images\\generate_cover\\ CalibreCoverShortFantasy.png",
"C:\\Documents and Settings\\Gary\\Application Data\\calibre\\resources\\images\\generate_cover\\ CalibreCoverShortHorror.png",
"C:\\Documents and Settings\\Gary\\Application Data\\calibre\\resources\\images\\generate_cover\\ CalibreCoverShortMystery.png",
"C:\\Documents and Settings\\Gary\\Application Data\\calibre\\resources\\images\\generate_cover\\ CalibreCoverShortRomance.png",
"C:\\Documents and Settings\\Gary\\Application Data\\calibre\\resources\\images\\generate_cover\\ CalibreCoverShortSci-Fi.png",
"C:\\Documents and Settings\\Gary\\Application Data\\calibre\\resources\\images\\generate_cover\\ CalibreCoverShortSports.png",
"C:\\Documents and Settings\\Gary\\Application Data\\calibre\\resources\\images\\generate_cover\\ CalibreCoverShortThriller.png",
"C:\\Program Files\\Calibre2\\resources\\images\\library.png"
],
"SchemaVersion": 1.35,
"SavedSettings": {
"ShortSF": {
"fonts": {
"series": {
"name": null,
"size": 24
},
"custom": {
"name": null,
"size": 24
},
"title": {
"name": null,
"size": 46
},
"author": {
"name": null,
"size": 36
}
},
"name": "ShortSF",
"fieldOrder": [
{
"name": "Title",
"display": true
},
{
"name": "Author",
"display": true
},
{
"name": "Series",
"display": true
},
{
"name": "Image",
"display": true
},
{
"name": "Custom Text",
"display": false
}
],
"colorApplyStroke": false,
"margins": {
"text": 30,
"top": 10,
"bottom": 10,
"image": 10,
"left": 0
},
"swapAuthor": false,
"imageFile": "C:\\Documents and Settings\\Gary\\Application Data\\calibre\\resources\\images\\generate_cover\\ CalibreCoverShortSci-Fi.png",
"colors": {
"stroke": "#000000",
"border": "#000000",
"background": "#55ffff",
"fill": "#000000"
},
"fontsAutoReduced": false,
"backgroundImage": false,
"fontsLinked": false,
"borders": {
"coverBorder": 0,
"imageBorder": 0
},
"customText": "",
"size": [
500,
750
]
},
"ShortSciFi": {
"fonts": {
"series": {
"name": null,
"size": 24
},
"author": {
"name": null,
"size": 36
},
"custom": {
"name": null,
"size": 24
},
"title": {
"name": null,
"size": 46
}
},
"name": "ShortFantasy",
"fieldOrder": [
{
"name": "Title",
"display": true
},
{
"name": "Author",
"display": true
},
{
"name": "Series",
"display": true
},
{
"name": "Image",
"display": true
},
{
"name": "Custom Text",
"display": false
}
],
"colorApplyStroke": false,
"swapAuthor": false,
"imageFile": "C:\\Documents and Settings\\Gary\\Application Data\\calibre\\resources\\images\\generate_cover\\ CalibreCoverShortFantasy.png",
"colors": {
"stroke": "#000000",
"border": "#000000",
"background": "#cbb193",
"fill": "#000000"
},
"fontsAutoReduced": false,
"backgroundImage": false,
"fontsLinked": false,
"margins": {
"text": 30,
"top": 10,
"left": 0,
"image": 10,
"bottom": 10
},
"borders": {
"coverBorder": 0,
"imageBorder": 0
},
"customText": "",
"size": [
500,
750
]
},
"ShortRomance": {
"fonts": {
"series": {
"name": null,
"size": 24
},
"author": {
"name": null,
"size": 36
},
"custom": {
"name": null,
"size": 24
},
"title": {
"name": null,
"size": 46
}
},
"name": "ShortRomance",
"fieldOrder": [
{
"name": "Title",
"display": true
},
{
"name": "Author",
"display": true
},
{
"name": "Series",
"display": true
},
{
"name": "Image",
"display": true
},
{
"name": "Custom Text",
"display": false
}
],
"colorApplyStroke": false,
"swapAuthor": false,
"imageFile": "C:\\Documents and Settings\\Gary\\Application Data\\calibre\\resources\\images\\generate_cover\\ CalibreCoverShortRomance.png",
"colors": {
"stroke": "#000000",
"border": "#000000",
"background": "#f7a5e1",
"fill": "#000000"
},
"fontsAutoReduced": false,
"backgroundImage": false,
"fontsLinked": false,
"margins": {
"text": 30,
"top": 10,
"bottom": 10,
"image": 10,
"left": 0
},
"borders": {
"coverBorder": 0,
"imageBorder": 0
},
"customText": "",
"size": [
500,
750
]
},
"{Default}": {
"fonts": {
"series": {
"name": null,
"size": 36
},
"author": {
"name": null,
"size": 36
},
"title": {
"name": null,
"size": 46
},
"custom": {
"name": null,
"size": 24
}
},
"name": "{Default}",
"fieldOrder": [
{
"name": "Title",
"display": true
},
{
"name": "Author",
"display": true
},
{
"name": "Series",
"display": true
},
{
"name": "Image",
"display": true
},
{
"name": "Custom Text",
"display": false
}
],
"colorApplyStroke": false,
"swapAuthor": false,
"imageFile": "C:\\Documents and Settings\\Gary\\Application Data\\calibre\\resources\\images\\generate_cover\\ CalibreCoverShortSci-Fi.png",
"colors": {
"stroke": "#000000",
"border": "#000000",
"background": "#ffffff",
"fill": "#000000"
},
"fontsAutoReduced": false,
"backgroundImage": false,
"fontsLinked": true,
"margins": {
"text": 30,
"top": 10,
"bottom": 10,
"image": 10,
"left": 0
},
"borders": {
"coverBorder": 0,
"imageBorder": 0
},
"customText": "",
"size": [
590,
750
]
},
"ShortMystery": {
"fonts": {
"series": {
"name": null,
"size": 24
},
"author": {
"name": null,
"size": 36
},
"custom": {
"name": null,
"size": 24
},
"title": {
"name": null,
"size": 46
}
},
"name": "ShortMystery",
"fieldOrder": [
{
"name": "Title",
"display": true
},
{
"name": "Author",
"display": true
},
{
"name": "Series",
"display": true
},
{
"name": "Image",
"display": true
},
{
"name": "Custom Text",
"display": false
}
],
"colorApplyStroke": false,
"swapAuthor": false,
"imageFile": "C:\\Documents and Settings\\Gary\\Application Data\\calibre\\resources\\images\\generate_cover\\ CalibreCoverShortMystery.png",
"colors": {
"stroke": "#000000",
"border": "#000000",
"background": "#f7f6c0",
"fill": "#000000"
},
"fontsAutoReduced": false,
"backgroundImage": false,
"fontsLinked": false,
"margins": {
"text": 30,
"top": 10,
"bottom": 10,
"image": 10,
"left": 0
},
"borders": {
"coverBorder": 0,
"imageBorder": 0
},
"customText": "",
"size": [
500,
750
]
}
}
}


It's gone a little wonky in the past, but an update usually cures it. This time... not so much.

Any help greaty appreciated.

UPDATE: Sorry!

Last edited by Gary_M_Mugford; 06-03-2011 at 11:34 PM.
Gary_M_Mugford is offline   Reply With Quote