|
|
#1 |
|
Member
![]() 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 ... |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
|
|
|
| Advert | |
|
|
![]() |
|
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 |