Details
Description
The PySide6 6.5.0 Windows wheels on PyPI are missing opengl32sw.dll.
Therefore, when trying to run the following sample program
# program.py import sys import signal from PySide6 import QtCore, QtWidgets, QtWebEngineWidgets app = QtWidgets.QApplication(sys.argv) view = QtWebEngineWidgets.QWebEngineView() view.setUrl(QtCore.QUrl.fromUserInput("https://www.qt.io")) view.show() app.exec()
in a virtualized environment (VirtualBox VM; although the issue was originally observed in tests failing on GitHub Actions windows runner), it crashes after displaying the following errors:
Failed to load opengl32sw (The specified module could not be found.) Failed to load and resolve WGL/OpenGL functions Failed to load opengl32sw (The specified module could not be found.) Failed to load and resolve WGL/OpenGL functions WebEngineContext is used before QtWebEngineQuick::initialize() or OpenGL context creation failed. Failed to load opengl32sw (The specified module could not be found.) Failed to load and resolve WGL/OpenGL functions Failed to load opengl32sw (The specified module could not be found.) Failed to load and resolve WGL/OpenGL functions QRhiGles2: Failed to create temporary context Failed to load opengl32sw (The specified module could not be found.) Failed to load and resolve WGL/OpenGL functions QRhiGles2: Failed to create context Failed to create QRhi for QBackingStoreRhiSupport Failed to load opengl32sw (The specified module could not be found.) Failed to load and resolve WGL/OpenGL functions QRhiGles2: Failed to create temporary context Failed to load opengl32sw (The specified module could not be found.) Failed to load and resolve WGL/OpenGL functions QRhiGles2: Failed to create context Failed to create QRhi for QBackingStoreRhiSupport QQuickWidget: Failed to get a QRhi from the top-level widget's window QQuickWidget::resizeEvent() no QRhi Failed to load opengl32sw (The specified module could not be found.) Failed to load and resolve WGL/OpenGL functions QRhiGles2: Failed to create temporary context Failed to load opengl32sw (The specified module could not be found.) Failed to load and resolve WGL/OpenGL functions QRhiGles2: Failed to create context Failed to create QRhi for QBackingStoreRhiSupport QQuickWidget: Failed to get a QRhi from the top-level widget's window QQuickWidget: Attempted to render scene with no rhi Failed to load opengl32sw (The specified module could not be found.) Failed to load and resolve WGL/OpenGL functions
It works as expected with PySide 6.4.3 wheels, and copying the opengl32sw.dll from 6.4.3 wheel to 6.5.0 installation fixes the problem.
As release notes seem to make no mention of it, is this omission an oversight or intentional?