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

Application fails when installing PyPi wheel (5.11.1) into Anaconda environment

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 5.11.1
    • PySide
    • None
    • Windows 10, Python 3.6, Anaconda
    • Windows

    Description

      The issue happens in an Anaconda environment with the Qt conda-forge package installed (or previously installed).

      After having installed the latest wheel on PyPi (5.11.1), the application fails to start with the error message:

      "This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem."

      If I run the app after having set QT_DEBUG_PLUGINS=1, I get:

      QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/xxxxx/AppData/Local/py3/platforms" ...
      qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""

      Such a folder does not exist. If I add the right path to the code (using QCoreApplication.addLibraryPath), it works.

      The issue is related to a custom `qt.conf` being copied aside the Python interpreter (and not removed in case of uninstallation of the Qt conda package).

      Uninstall the Qt conda package and manually remove the relic `qt.conf` solves the issue.

      Attachments

        Issue Links

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

          Activity

            People

              crmaurei Cristian Maureira-Fredes
              giumas giu mas
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes