|
|
#16 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,357
Karma: 29630884
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Dont use relativeimport use absolute imports they are always safer
|
|
|
|
|
|
#17 |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 706
Karma: 721246
Join Date: Dec 2017
Device: Kobo
|
|
|
|
|
|
|
#18 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
|
|
|
|
|
#19 | |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 706
Karma: 721246
Join Date: Dec 2017
Device: Kobo
|
Quote:
I used the following code: Code:
try:
print('>>>>>>>>>>>>>>>>>>')
from ..action import read_metadata
except Exception:
print('>traceback>')
import traceback
traceback.print_exc()
raise
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. |
|
|
|
|
|
|
#20 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
|
|
|
|
|
#21 |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#22 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
|
|
|
|
|
#23 |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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". |
|
|
|
|
|
#24 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
|
|
|
|
|
|
|
#25 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
|
|
|
|
|
#26 | |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 706
Karma: 721246
Join Date: Dec 2017
Device: Kobo
|
Quote:
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. |
|
|
|
|
|
|
#27 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
|
|
|
|
|
#28 |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 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) |
|
|
|
|
|
#29 |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#30 |
|
Member
![]() 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
|
|
|
|
![]() |
|
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 |