|
|
#1 |
|
Member
![]() Posts: 13
Karma: 10
Join Date: May 2023
Device: Kindle
|
I have almost completed my plugin. But when I click the icon in the menu bar, it complains:
``` Traceback (most recent call last): File "/usr/bin/calibre-parallel", line 21, in <module> sys.exit(main()) ^^^^^^ File "/usr/lib/calibre/calibre/utils/ipc/worker.py", line 205, in main name, args, kwargs, desc = eintr_retry_call(conn.recv) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/calibre/calibre/utils/ipc/__init__.py", line 24, in eintr_retry_call return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/multiprocessing/connection.py", line 250, in recv return _ForkingPickler.loads(buf.getbuffer()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ModuleNotFoundError: No module named 'calibre_plugins' ``` Could you help me please? Here is the source code: https://github.com/otakutyrant/new_words |
|
|
|
|
|
#2 |
|
Member
![]() Posts: 13
Karma: 10
Join Date: May 2023
Device: Kindle
|
I have removed the job manager so that my plugin can work. Now the old code with the broken job manger is in https://github.com/otakutyrant/new_w...ee/job_manager
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,618
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Dont serialize objects from your plugin. Use basic python types only. That means when calling functions in a job, those functions should take only basic types as parameters.
|
|
|
|
|
|
#4 |
|
Member
![]() Posts: 13
Karma: 10
Join Date: May 2023
Device: Kindle
|
|
|
|
|
|
|
#5 |
|
Member
![]() Posts: 13
Karma: 10
Join Date: May 2023
Device: Kindle
|
I tried the pickle library and found out it can pickle namedtuple objects. However I have to convert the namedtuple objects to tuple objects in my plugin to make them work with the job manager. It is a mystery to me why Calibre cannot serialize them and throw `ModuleNotFoundError`.
|
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| No module named PyQt5.Qt | silentfuzzle | Development | 2 | 08-19-2014 01:31 PM |
| No module named icu | favour | Development | 2 | 04-09-2014 12:37 AM |
| ImportError: No module named djvu | canadianjameson | Conversion | 12 | 04-02-2012 12:23 AM |
| ImportError: No module named profiles | ould | Calibre | 11 | 02-28-2009 08:25 PM |
| ImportError: No module named pkg_resources | erik80 | Calibre | 3 | 08-02-2008 10:33 AM |