Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-29-2026, 11:54 AM   #16
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: 46,357
Karma: 29630884
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Dont use relativeimport use absolute imports they are always safer
kovidgoyal is offline   Reply With Quote
Old 06-29-2026, 01:20 PM   #17
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 706
Karma: 721246
Join Date: Dec 2017
Device: Kobo
Quote:
Originally Posted by kovidgoyal View Post
Dont use relativeimport use absolute imports they are always safer
I try that too, didn't work either.
un_pogaz is offline   Reply With Quote
Old 06-29-2026, 01:34 PM   #18
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: 46,357
Karma: 29630884
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If the import is still failing put it in a try except block and print the traceback for the exception to a file. The traceback should tell you why the import is failing.
kovidgoyal is offline   Reply With Quote
Old 06-29-2026, 01:57 PM   #19
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 706
Karma: 721246
Join Date: Dec 2017
Device: Kobo
Quote:
Originally Posted by kovidgoyal View Post
If the import is still failing put it in a try except block and print the traceback for the exception to a file. The traceback should tell you why the import is failing.
Nope, either.
I used the following code:
Code:
try:
    print('>>>>>>>>>>>>>>>>>>')
    from ..action import read_metadata
except Exception:
    print('>traceback>')
    import traceback
    traceback.print_exc()
    raise
and no traceback; The second print('>traceback>') is not even called.

Some thing go wrong enough badly to skip the local try except block and directly raise a exception on the worker level.
The better thing I can suggest is try it on your side, with the last version of "ePub Extended Metadata"
the file here alway raise the error
https://www.mobileread.com/forums/sh...1&postcount=12

Last edited by un_pogaz; 06-29-2026 at 02:00 PM.
un_pogaz is offline   Reply With Quote
Old 06-29-2026, 02:00 PM   #20
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: 46,357
Karma: 29630884
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That would impl your import is crashing the interpreter. So you need to put print statements into the action.py file and see where it is crashing.
kovidgoyal is offline   Reply With Quote
Old 06-29-2026, 02:24 PM   #21
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 706
Karma: 721246
Join Date: Dec 2017
Device: Kobo
Yeah, but action.py is the file that contain the InterfaceAction inhertied class used in the GUI, and is therefore loaded when launching Calibre. And it do perfectly fine.

But that import fail. And is not a simple import error, else be sure I would have spotted it and corrected it. No, somehow, something catastrophically bad happen to crash the worker itself.

Code:
calibre, version 9.10.0
ERREUR : Impossible d'ajouter les livres: Échec lors de l'ajout de certains livres, cliquez sur "Afficher les détails" pour plus d'information.

Worker process crashed while executing job
Traceback (most recent call last):
  File "calibre/utils/ipc/pool.py", line 106, in recv
  File "calibre/utils/ipc/__init__.py", line 20, in eintr_retry_call
  File "multiprocessing/connection.py", line 226, in recv_bytes
  File "multiprocessing/connection.py", line 451, in _recv_bytes
  File "multiprocessing/connection.py", line 420, in _recv
EOFError

Last edited by un_pogaz; 06-29-2026 at 02:27 PM.
un_pogaz is offline   Reply With Quote
Old 06-29-2026, 03:07 PM   #22
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: 84,001
Karma: 153695583
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
@un_pogaz I have another strange error with your plugin. I installed the version in the plugin thread and was unable to uninstall it. I uninstalled it by using the last config backup prior to installing it.
JSWolf is offline   Reply With Quote
Old 06-29-2026, 03:19 PM   #23
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 706
Karma: 721246
Join Date: Dec 2017
Device: Kobo
"ePub Extended Metadata" contain 2 companion plugin named "ePub Extended Metadata {Reader}" and "ePub Extended Metadata {Writer}" that are intergrated with with it (and virtually installed). You can't uninstall that 2 companion plugins individualy.

You need to unistall the main "ePub Extended Metadata".
un_pogaz is offline   Reply With Quote
Old 06-29-2026, 03:25 PM   #24
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: 84,001
Karma: 153695583
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 un_pogaz View Post
"ePub Extended Metadata" contain 2 companion plugin named "ePub Extended Metadata {Reader}" and "ePub Extended Metadata {Writer}" that are intergrated with with it (and virtually installed). You can't uninstall that 2 companion plugins individualy.

You need to unistall the main "ePub Extended Metadata".
I'll try it when I get a chance. Thanks.
JSWolf is offline   Reply With Quote
Old 06-29-2026, 09:39 PM   #25
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: 46,357
Karma: 29630884
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If it's already imported then importing it again should only bump its reference count and have no other effect.
kovidgoyal is offline   Reply With Quote
Old 06-30-2026, 12:57 AM   #26
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 706
Karma: 721246
Join Date: Dec 2017
Device: Kobo
Quote:
Originally Posted by kovidgoyal View Post
If it's already imported then importing it again should only bump its reference count and have no other effect.
Agree. But the error exist.

I would really appreciate it if you could look into the problem, in case it a top-level calibre issue, because right now my plugin is dead and I've done everything I can.
I'm not request this lightly, Kovid, it's too weird to be just a problem on the plugin developer's end.
un_pogaz is offline   Reply With Quote
Old 06-30-2026, 01:24 AM   #27
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: 46,357
Karma: 29630884
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
What happens if your run

calibredb add bad-file.epub

in a windows command prompt
kovidgoyal is offline   Reply With Quote
Old 06-30-2026, 01:56 AM   #28
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 706
Karma: 721246
Join Date: Dec 2017
Device: Kobo
Code:
calibredb add bad-zip.epub 
QPixmap: Must construct a QGuiApplication before a QPixmap
Abandon                    (core dumped)calibredb add bad-zip.epub
Oh oh. That... unexpected.
So I know Qt that call a QPixmap before QGuiApplication is a garranted crash.
That is something I can work on.
I will investigate that, thanks for the command, I never thought to that to get a clearest log rather than the gui one

But how, how?
(maybe because I use quite twisted hacky way on ePub Extended Metadata)
un_pogaz is offline   Reply With Quote
Old 06-30-2026, 02:50 AM   #29
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 706
Karma: 721246
Join Date: Dec 2017
Device: Kobo
FIXED.

ePub Extended Metadata work again.

Thanks for your time Kovid. At the end it was only a error on the plugin side, but a odd one since it was part of Qt hard behavior.
un_pogaz is offline   Reply With Quote
Old Yesterday, 02:36 AM   #30
DragoLord19d
Member
DragoLord19d began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Apr 2019
Device: Ipad
well... I'm glad I could help more people with this post. I just figured I'd messed something up
DragoLord19d is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange new error with 0.7.3? bfollowell Sigil 3 10-30-2013 03:03 PM
Strange error onlystarlight Devices 7 07-07-2011 12:35 AM
Strange Error Message - Anybody Else Hughdal Sony Reader 4 05-27-2009 06:04 PM
Strange Conversion error. thepete Calibre 3 03-23-2009 11:39 AM


All times are GMT -4. The time now is 05:23 PM.


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