View Single Post
Old 02-07-2020, 11:39 AM   #9
Akeras
Junior Member
Akeras began at the beginning.
 
Posts: 5
Karma: 12
Join Date: Feb 2020
Device: None
Thanks again for your reply!
I did explore the QWebEnginePage idea but when I want to import it

Code:
from PyQt5.QtWebEngineWidgets import  QWebEnginePage
I get:
calibre, version 4.8.0
ERROR: Invalid recipe: Failed to compile the recipe, with syntax error: QtWebEngineWidgets must be imported before a QCoreApplication instance is created

So I tried so trick found on internet which is to call first
Code:
from PyQt5.QtWidgets import QApplication
app = QApplication.instance()
if app is not None:
    import sip
    app.quit()
    sip.delete(app)
but app.quit() is actually killing Calibre....

Any thoughts?

Thanks a lot!
Akeras is offline   Reply With Quote