Unsolved ERROR:extension_system_qt.cpp(122)] Failed to parse extension manifest.
-
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 ? -
@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.
-
@SGaist
when I use pyqt5,it works normally -
-
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 -
@SGaist I have put up my issue below, which is wrt C++. Can you please let me know which initialization function we need to use in C++? I am getting this issue in C++.
-
I was thinking about qtwebengine::initialize but I do not think it's going to help.
-
@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.