Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 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,352
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 Today, 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: 700
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
Advert
Old Today, 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,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.
kovidgoyal is offline   Reply With Quote
Old Today, 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: 700
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; Today at 02:00 PM.
un_pogaz is offline   Reply With Quote
Old Today, 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,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.
kovidgoyal is offline   Reply With Quote
Advert
Old Today, 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: 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.
un_pogaz 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 02:55 PM.


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