02-16-2020, 07:10 AM | #1 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Running calibre's run_checks inside a UI plugin
@kovid,
I've just noticed a new error message when running my ScrambleEbook plugin in commandline mode. I'm pretty sure it wasn't there when I did most of my py2-to-py3 testing in early January. This is what I see in the CMD window in Win10 calibre 4.10.1 32-bit Code:
stdout+stderr from file dialog helper: ['', ''] piped data from file dialog helper: ['LA\xa2q\x86D\xa4\'\x93\x94\xf4"C\xa6L\xaamFh9\xf5\xfa\xf2f\x04\xfd{\xf5\x9a]\x19F', 'D:\\sysfiles\\Downloads'] Release of profile requested but WebEnginePage still not deleted. Expect troubles ! Release of profile requested but WebEnginePage still not deleted. Expect troubles ! Release of profile requested but WebEnginePage still not deleted. Expect troubles ! Release of profile requested but WebEnginePage still not deleted. Expect troubles ! Error in atexit._run_exitfuncs: Traceback (most recent call last): File "atexit.py", line 24, in _run_exitfuncs File "site-packages\calibre\ebooks\oeb\polish\check\css.py", line 225, in shutdown RuntimeError: wrapped C/C++ object of type Worker has been deleted Error in sys.exitfunc: Traceback (most recent call last): File "atexit.py", line 24, in _run_exitfuncs File "site-packages\calibre\ebooks\oeb\polish\check\css.py", line 225, in shutdown RuntimeError: wrapped C/C++ object of type Worker has been deleted Press any key to continue . . . The odd thing is that if I hadn't seen that message I wouldn't know there was anything wrong. The plugin seems to be functioning OK. Is there something I need to do to stop the error? |
02-16-2020, 07:51 AM | #2 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The message will not affect the working of the plugin. To avoid it, you should call the shutdown() function from polish.check.css before your plugin exits.
|
02-16-2020, 08:29 AM | #3 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Set a value to a custom column inside a plugin | thiago.eec | Development | 2 | 08-27-2019 05:48 PM |
Get cursor position or highlighted text inside plugin | otherpasserby | Plugins | 10 | 12-16-2018 05:40 AM |
Issue by running a plugin in the command line interface | RbnJrg | Plugins | 4 | 06-13-2018 11:27 AM |
How to get Calibre 3 running on Raspberry Pi 3 running Raspbian Jessie? | fivestones | Calibre | 6 | 01-25-2018 09:41 PM |
UnicodeWarning when running Sigil plugin | turbulent | Plugins | 9 | 12-17-2014 07:11 AM |