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

Non-Latin characters in Python path prevent Qt from finding plugins

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P1: Critical
    • None
    • 5.12.0
    • PySide
    • None
    • All

    Description

      Python 3 by default installs into the user's AppData directory. If the username contains e.g. cyrillic characters, Qt cannot find plugins.

      C:\Users\Россия\dev\examples\examples\webenginewidgets>where python
      C:\Users\Россия\AppData\Local\Programs\Python\Python37-32\python.exe
      
      C:\Users\Россия\dev\examples\examples\webenginewidgets>python --version
      Python 3.7.2
      
      C:\Users\Россия\dev\examples\examples\webenginewidgets>set QT_DEBUG_PLUGINS=1
      
      C:\Users\Россия\dev\examples\examples\webenginewidgets>python simplebrowser.py
      QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/??????/AppData/Local/Programs/Python/Python37-32/platforms" ...
      qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
      This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
      

      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
              kkohne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes