Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-07-2017, 11:32 AM   #1
zzombie
Junior Member
zzombie began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2017
Device: Kindlewhite
Calibre error "Cannot operate on null QImage"

It was working fine till i tried adding a cover which was not a valid jpg file
and since then it is giving me error
i get the following error when i click the "generate cover" icon

ValueError: Cannot operate on null QImage

please help me get back the cover of my choice on the books.

i get the following text on error

calibre 2.84 embedded-python: True is64bit: False
Windows-7-6.1.7600 Windows ('32bit', 'WindowsPE')
('Windows', '7', '6.1.7600')
Python 2.7.9
Windows: ('7', '6.1.7600', '', 'Multiprocessor Free')
Successfully initialized third party plugins: K4PC, K4Mac, Kindle Mobi and Topaz DeDRM (0, 3, 7) && Inept Epub DeDRM (0, 1, 7) && Inept PDF DeDRM (0, 1, 4) && Generate Cover (1, 5, 21) && Ignoble Epub DeDRM (0, 1, 6) && eReader PDB 2 PML (0, 0, 5)
Traceback (most recent call last):
File "calibre_plugins.generate_cover.action", line 65, in _generate_cover
File "calibre_plugins.generate_cover.dialogs", line 1377, in __init__
File "calibre_plugins.generate_cover.dialogs", line 1669, in display_preview
File "calibre_plugins.generate_cover.draw", line 330, in generate_cover_for_book
File "calibre_plugins.generate_cover.draw", line 178, in create_cover_page
File "site-packages\calibre\utils\magick\legacy.py", line 117, in compose
File "site-packages\calibre\utils\img.py", line 246, in overlay_image
ValueError: Cannot operate on null QImage


P.S i guess its a cover generator plugin error.

Last edited by zzombie; 05-07-2017 at 12:59 PM.
zzombie is offline   Reply With Quote
Old 05-07-2017, 03:57 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by zzombie View Post
It was working fine till i tried adding a cover which was not a valid jpg file
and since then it is giving me error
i get the following error when i click the "generate cover" icon

please help me get back the cover of my choice on the books.
@zzombie - try this, open the book folder and delete cover.???, then drag and drop a valid jpg into the Book Detail panel in the right sidebar.

How did you add the invalid jpg, that's where the error should have been picked up?

BR
BetterRed is offline   Reply With Quote
Advert
Old 05-07-2017, 04:52 PM   #3
zzombie
Junior Member
zzombie began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2017
Device: Kindlewhite
Quote:
Originally Posted by BetterRed View Post
@zzombie - try this, open the book folder and delete cover.???, then drag and drop a valid jpg into the Book Detail panel in the right sidebar.

How did you add the invalid jpg, that's where the error should have been picked up?

BR
the folder you said now has a valid jpg file.. but i still deleted everything and tried again but no success.. the file i initially tried to added wasnt downloaded properly and gave error ..since then it is giving same error inspite of uninstalling and installing again. and no matter what my covers are not showing in kindle ..the MBP1 and MBS are not showing/created by kindle in sdr folder of the book.
zzombie is offline   Reply With Quote
Old 05-07-2017, 06:37 PM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Arrow

Can you see the valid jpg in book details viz:

Click image for larger version

Name:	Capture.JPG
Views:	136
Size:	171.4 KB
ID:	156581

If you can see it, then I think you need to 're-upload' the book to your Kindle. But that's not something I can help you with as I don't own a Kindle.

BR

Last edited by BetterRed; 05-07-2017 at 08:05 PM.
BetterRed is offline   Reply With Quote
Old 05-07-2017, 11:15 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You should post this in the generate cover plugin thread as it is an error in that plugin, not calibre itself.
kovidgoyal is offline   Reply With Quote
Advert
Old 05-08-2017, 03:15 AM   #6
zzombie
Junior Member
zzombie began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2017
Device: Kindlewhite
Thankyou @Kovidgoyal and BetterRed. i searced the generate cover plugin thread and found my answer..now the plugin is working like charm
thankyou for your help
zzombie is offline   Reply With Quote
Old 08-06-2022, 05:59 PM   #7
HRR
Enthusiast
HRR began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Nov 2008
Location: Greenwood Village, Colorado,USA
Device: iPad Air & iPad Pro
I have exactly the same problem, from the same cause. I find a lot of plugin threads. Please tell me how to find the thread with the answer. Thank you.
HRR is offline   Reply With Quote
Old 08-06-2022, 06:20 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by HRR View Post
I have exactly the same problem, from the same cause. I find a lot of plugin threads. Please tell me how to find the thread with the answer. Thank you.
Have a look in the Generate Cover thread.

https://www.mobileread.com/forums/sh...d.php?t=124219
JSWolf is online now   Reply With Quote
Old 08-06-2022, 06:32 PM   #9
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by HRR View Post
I have exactly the same problem, from the same cause. I find a lot of plugin threads. Please tell me how to find the thread with the answer. Thank you.
Index of plugins

That index is one of the Sticky threads at the top of the Plugins subforum.

BR
BetterRed is offline   Reply With Quote
Old 08-06-2022, 07:21 PM   #10
HRR
Enthusiast
HRR began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Nov 2008
Location: Greenwood Village, Colorado,USA
Device: iPad Air & iPad Pro
Found it, fix worked perfectly, and all is well. Thank you all.
HRR is offline   Reply With Quote
Old 08-07-2022, 02:35 PM   #11
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by BetterRed View Post
Index of plugins

That index is one of the Sticky threads at the top of the Plugins subforum.

BR
Index of Calibre Plugins

Can that list be updated so it shows the latest version of Calibre they work with? It's listed what the earliest version is, but not what the latest version. I would list them as Calibre 6 if they work inder Calibre 6.x and same with Calibre 5, etc.
JSWolf is online now   Reply With Quote
Old 08-07-2022, 04:45 PM   #12
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,072
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by JSWolf View Post
Index of Calibre Plugins

Can that list be updated so it shows the latest version of Calibre they work with? It's listed what the earliest version is, but not what the latest version. I would list them as Calibre 6 if they work inder Calibre 6.x and same with Calibre 5, etc.
While it is relatively easy to know which older calibre versions will support a particular plugin release, determining whether later calibre versions are compatible is pretty much a manual process. Are you volunteering to keep that information up to date?

I do think that it would be a good idea to eventually drop plug-ins from that list if they no longer work with recent calibre versions and are not being maintained by anyone.

Last edited by jhowell; 08-07-2022 at 04:51 PM.
jhowell is offline   Reply With Quote
Old 08-07-2022, 05:23 PM   #13
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by jhowell View Post
While it is relatively easy to know which older calibre versions will support a particular plugin release, determining whether later calibre versions are compatible is pretty much a manual process. Are you volunteering to keep that information up to date?
I could go through the plugins thread and the list and see what's said in the threads as to what version. I would hope that info would be in the first post of the thread. If that info is not there, then they can be labeled as unknown for the latest Calibre version.

Quote:
I do think that it would be a good idea to eventually drop plug-ins from that list if they no longer work with recent calibre versions and are not being maintained by anyone.
I think any plugin that won't work with Calibre 4 or later should go. I also think the plugin system should be modified so that you do not get show plugins that will not work with the Calibre version you are running.
JSWolf is online now   Reply With Quote
Old 08-07-2022, 05:56 PM   #14
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,057
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Preferences: Get Plugins
Greys incompatible PI (it also provides a direct link to the dedicated thread for the selected PI)
This path does NOT support other ways (not in the index) to get plugins (lookin at you deDRM )
theducks is online now   Reply With Quote
Old 08-07-2022, 06:16 PM   #15
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by JSWolf View Post
Index of Calibre Plugins

Can that list be updated so it shows the latest version of Calibre they work with? It's listed what the earliest version is, but not what the latest version. I would list them as Calibre 6 if they work inder Calibre 6.x and same with Calibre 5, etc.
It's in the first post, and in the plugin code (which is what the Plugin Updater uses). When it was in the index it wasn't always maintained. So, because it served no operational purpose it was removed. Maintaining the same information in multiple places is generally regarded as poor design - or it was when I studied what came to be called software engineering in the 1960s.

If you want to volunteer to maintain the index, I'm sure that can be arranged.

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Error while parsing file 'element "img" not allowed here" shotsfromthebar Editor 3 03-31-2017 03:53 AM
Latest Calibre gives me the error "'calibre.app' is damaged and can't be opened." Gary King Calibre 5 10-24-2012 06:15 AM
help with Apple error - null - expecting http://www.w3.org/1999/xhtml" mczajka ePub 3 08-15-2012 08:10 AM
Coolreader & certain "legit" epubs - null Archolmn Android Devices 0 03-01-2012 11:54 AM
Calibre plugIn Kindle Collections Error message "Value Error:month..." readee Plugins 4 10-10-2011 11:21 AM


All times are GMT -4. The time now is 10:04 AM.


MobileRead.com is a privately owned, operated and funded community.