Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2289

PySide 6.5.0 Windows PyPI wheels are missing opengl32sw.dll

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.1, 6.6.0
    • 6.5.0
    • PySide
    • None
    • Virtualized environment that presumably lacks full hardware OpenGL support.
    • Windows
    • 0fb880b84 (dev), df281e6e8 (6.5)

    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?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            adherrma Adrian Herrmann
            rok.mandeljc Rok Mandeljc
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes