When using QWebEngineView, I get a crash "LLVM ERROR: 64-bit code requested on a subtarget that doesn't support it!" and the app closes.
I installed Python 3.10 and PySide2==5.15.2.1 through miniconda3 on an Ubuntu 22.04.3 x86 64Bit machine. Other (apt) packages like python3-pyqt5.qtwebengine or python3-pyqt5.qtwebkit are not installed.
Here is a minimal code example to reproduce it:
import sys
from PySide2.QtWidgets import QApplication, QMainWindow, QWidget, QVBoxLayout, QPushButton
from PySide2.QtWebEngineWidgets import QWebEngineView
class MainWindow(QMainWindow):
def __init__(self):
super(MainWindow, self).__init__()
self.setWindowTitle("My App")
layout = QVBoxLayout()
btn = QPushButton('quit')
btn.clicked.connect(self.appquit)
layout.addWidget(btn)
layout.addWidget(QWebEngineView())
widget = QWidget()
widget.setLayout(layout)
self.setCentralWidget(widget)
def appquit(self):
QApplication.quit()
app = QApplication(sys.argv)
window = MainWindow()
window.show()
app.exec_()
Has it something to do with the Blink (Chromium) web engine?
Edit: The only link I found from QT to LLVM was mentioned on this site under "Dependencies": https://pypi.org/project/PySide2/ However, libclang was not neccessary on another machine to use QWebEngineView.