Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 10-24-2025, 12:39 AM   #1
jsky
Member
jsky began at the beginning.
 
jsky's Avatar
 
Posts: 15
Karma: 10
Join Date: May 2025
Device: kindle
EOFError,how to solve?

Traceback (most recent call last):
File "calibre/utils/ipc/simple_worker.py", line 53, in run
File "calibre/utils/ipc/__init__.py", line 20, in eintr_retry_call
File "multiprocessing/connection.py", line 250, in recv
File "multiprocessing/connection.py", line 430, in _recv_bytes
File "multiprocessing/connection.py", line 399, in _recv
EOFError

here is my code:

futures = [self.thread_pool.submit(self.mymethod,id) for id in ids]

class MYCLASS:
def __init__(self, config, log=None):
...
self.lock = threading.Lock()

def mymethod(self,id):
...
with self.lock:
cover_pixmap = QPixmap()
cover_pixmap.load('/Volumes/data/bookcovers/' + id + '.jpg')
book['cover_pixmap'] = cover_pixmap
...
jsky is offline   Reply With Quote
Old 10-24-2025, 03:24 AM   #2
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,609
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
you cant use qpixmap in non gui threads and they require creation of a Qapplication. You should be using the functions from calibre.utils.img to load QImage instead.
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help solve the problem with my Kindle Polaris_ua Amazon Kindle 18 03-17-2022 08:32 PM
I have problems to solve. Everyone help me. michaeltoan016 Writers' Corner 3 05-25-2018 09:42 PM
Can anybody help me solve problem with ADE? jmilica Kobo Reader 17 07-12-2013 04:53 PM
Color Can anyone solve djvu error ? read365 Ectaco jetBook 1 05-08-2013 10:36 PM
PRS-350 Would the PRS-T2 solve my problem? GoodCompany Sony Reader 4 08-23-2012 07:34 PM


All times are GMT -4. The time now is 09:33 PM.


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