|
|
#16 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,352
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: 700
Karma: 721246
Join Date: Dec 2017
Device: Kobo
|
|
|
|
|
| Advert | |
|
|
|
|
#18 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,352
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: 700
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; Today at 02:00 PM. |
|
|
|
|
|
|
#20 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,352
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.
|
|
|
|
| Advert | |
|
|
|
|
#21 |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 700
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; Today at 02:27 PM. |
|
|
|
![]() |
|
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 |