ERROR:extension_system_qt.cpp(122)] Failed to parse extension manifest.
-
wrote on 27 Dec 2019, 09:57 last edited by
code_text
import sys from PySide2.QtWidgets import * from PySide2.QtWebEngineWidgets import * class MainWindow(QMainWindow): def __init__(self): super().__init__() self.setWindowTitle('my web') self.resize(900, 550) self.setWindowIcon(QIcon('./icons/penguin.png')) self.web = QWebEngineView(self) self.web.load(QUrl('https://www.baidu.com')) self.setCentralWidget(self.web) if __name__ == '__main__': app = QApplication(sys.argv) main_win = MainWindow() main_win.show() exit_code = app.exec_() sys.exit(exit_code) ############# when I run it , IDE say:[63152:80864:1227/175414.020:ERROR:extension_system_qt.cpp(122)] Failed to parse extension manifest.
-
Hi,
What version of PySide2 ?
What version of python ?
What OS ?
What IDE ? -
wrote on 27 Dec 2019, 11:09 last edited by
@SGaist
my code is:import sys from PySide2.QtCore import QUrl from PySide2.QtWidgets import * from PySide2.QtWebEngineWidgets import * class MainWindow(QMainWindow): def __init__(self): super().__init__() self.setWindowTitle('my web') self.resize(900, 550) self.setWindowIcon(QIcon('./icons/penguin.png')) self.web = QWebEngineView(self) self.web.load(QUrl('https://www.baidu.com')) self.setCentralWidget(self.web) if __name__ == '__main__': app = QApplication(sys.argv) main_win = MainWindow() main_win.show() exit_code = app.exec_() sys.exit(exit_code)
python : 3.7 (X64)
pyside2 : 5.14.0
I have two cumputer , all of them can't run this code
windows : win10 home (X64) \ IDE : pycharm 2019.2
windows : win10 LTSC (X64) \ IDE : pycharm 2019.3But , if I don't put QWebEngineView in the window,just put some other widget in the window ,the window can be displayed normally
-
I haven't used QtWebEngine with Python but IIRC there's an initialisation function to call for that module at least in C++, you should check the equivalent for Python.
-
I haven't used QtWebEngine with Python but IIRC there's an initialisation function to call for that module at least in C++, you should check the equivalent for Python.
-
wrote on 8 Apr 2020, 01:38 last edited by
-
wrote on 16 Jun 2020, 20:29 last edited by
I was using QtWebEngineView with Ubuntu 18.04 + Qt 5.14.2 and my application was running properly from deployment package. I have upgraded ubuntu to 20 LTS and Qt to 5.15.0. Now after upgrade, application from deployment package shows issues like-
ERROR:extension_system_qt.cpp(122)] Failed to parse extension manifest.
Though from QtCreator it still works well. I am using C++ for development. I am sure that issue is because of QtWebEngineView as after commenting all functionalities related to QtWebEngineView, deployment package works well.
Any help is much appreciated. Thanks -
I haven't used QtWebEngine with Python but IIRC there's an initialisation function to call for that module at least in C++, you should check the equivalent for Python.
-
I was thinking about qtwebengine::initialize but I do not think it's going to help.
-
I was thinking about qtwebengine::initialize but I do not think it's going to help.
wrote on 18 Jun 2020, 17:24 last edited by@SGaist yeah.. This won't help..
Issue is fixed for me now.. I was facing this issue because in my deployment package, I hadn't updated resources and translations for QtWebEngineView so I was getting this issue. Updating these two folders worked fine for me.