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 02-16-2020, 07:10 AM   #1
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
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 . . .
From that message I'm presuming it's related to the recent changes to CSS checking in calibre.ebooks.oeb.polish.check.main run_checks. ScrambleEbook (in standalone/CLI mode) has always had the ability to compare number of book errors before/after scrambling, although I doubt it's being used by many (or even any???) users.

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?
jackie_w is offline   Reply With Quote
Old 02-16-2020, 07:51 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: 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.
kovidgoyal is offline   Reply With Quote
Old 02-16-2020, 08:29 AM   #3
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by kovidgoyal View Post
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.
Thanks. That's less painful than I feared it might be
jackie_w is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 10:34 PM.


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