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

Problem using non-latin characters in path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.0.0
    • 5.12.1
    • PySide
    • None
    • ed1846b94 (dev), 19bb50bcc (6.4), 76cd3bc2b (tqtc/lts-6.2)

    Description

      Steps to reproduce:

      [✔] nexus:~/dev  % mkdir 汉语
      [✔] nexus:~/dev  % cd 汉语
      [✔] nexus:~/dev/汉语  % ls
      [✔] nexus:~/dev/汉语  % source
      [✘] nexus:~/dev/汉语  % virtualenv test
      Using base prefix '/usr'
      New python executable in /home/cmaureir/dev/汉语/test/bin/python
      Installing setuptools, pip, wheel...done.
      [✔] nexus:~/dev/汉语  % source test/bin/activate
      [✔] nexus:~/dev/汉语(test) % pip install PySide2
      Collecting PySide2
        Downloading https://files.pythonhosted.org/packages/9a/86/49a66303c07b22a6244a968b560d4d38bc4a151db5d15f278c7e765639e0/PySide2-5.12.1-5.12.1_1-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl (144.0MB)
          100% |████████████████████████████████| 144.0MB 421kB/s 
      Collecting shiboken2==5.12.1 (from PySide2)
        Using cached https://files.pythonhosted.org/packages/4e/a7/efa256fed7a07a8a679cbce755cab37cdb85744f990351bd2a9bd8ba796b/shiboken2-5.12.1-5.12.1-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl
      Installing collected packages: shiboken2, PySide2
      Successfully installed PySide2-5.12.1 shiboken2-5.12.1
      

      After the installation,
      as soon as one tries to create a QApplication, it crashes:

      [✔] nexus:~/dev/汉语(test) % python
      Python 3.7.2 (default, Jan 10 2019, 23:51:51) 
      [GCC 8.2.1 20181127] on linux
      Type "help", "copyright", "credits" or "license" for more information.
      >>> from PySide2.QtWidgets import QApplication
      >>> app = QApplication()
      qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
      This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
      
      zsh: abort (core dumped)  python
      [✘] nexus:~/dev/汉语(test) % gdb python  
      GNU gdb (GDB) 8.2.1
      Copyright (C) 2018 Free Software Foundation, Inc.
      License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law.
      Type "show copying" and "show warranty" for details.
      This GDB was configured as "x86_64-pc-linux-gnu".
      Type "show configuration" for configuration details.
      For bug reporting instructions, please see:
      <http://www.gnu.org/software/gdb/bugs/>.
      Find the GDB manual and other documentation resources online at:
          <http://www.gnu.org/software/gdb/documentation/>.
      
      For help, type "help".
      Type "apropos word" to search for commands related to "word"...
      Reading symbols from python...(no debugging symbols found)...done.
      (gdb) r
      Starting program: /home/cmaureir/dev/汉语/test/bin/python 
      [Thread debugging using libthread_db enabled]
      Using host libthread_db library "/usr/lib/libthread_db.so.1".
      Python 3.7.2 (default, Jan 10 2019, 23:51:51) 
      [GCC 8.2.1 20181127] on linux
      Type "help", "copyright", "credits" or "license" for more information.
      >>> from PySide2.QtWidgets import QApplication
      >>> app = QApplication()
      qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
      This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
      
      
      Program received signal SIGABRT, Aborted.
      0x00007ffff7de2d7f in raise () from /usr/lib/libc.so.6
      (gdb) bt
      #0  0x00007ffff7de2d7f in raise () from /usr/lib/libc.so.6
      #1  0x00007ffff7dcd672 in abort () from /usr/lib/libc.so.6
      #2  0x00007ffff3db1dcc in QMessageLogger::fatal(char const*, ...) const () from /home/cmaureir/dev/汉语/test/lib/python3.7/site-packages/PySide2/Qt/lib/libQt5Core.so.5
      #3  0x00007ffff46020e8 in QGuiApplicationPrivate::createPlatformIntegration() () from /home/cmaureir/dev/汉语/test/lib/python3.7/site-packages/PySide2/Qt/lib/libQt5Gui.so.5
      #4  0x00007ffff46023fd in QGuiApplicationPrivate::createEventDispatcher() () from /home/cmaureir/dev/汉语/test/lib/python3.7/site-packages/PySide2/Qt/lib/libQt5Gui.so.5
      #5  0x00007ffff3fa5faf in QCoreApplicationPrivate::init() () from /home/cmaureir/dev/汉语/test/lib/python3.7/site-packages/PySide2/Qt/lib/libQt5Core.so.5
      #6  0x00007ffff4603c7b in QGuiApplicationPrivate::init() () from /home/cmaureir/dev/汉语/test/lib/python3.7/site-packages/PySide2/Qt/lib/libQt5Gui.so.5
      #7  0x00007ffff588f719 in QApplicationPrivate::init() () from /home/cmaureir/dev/汉语/test/lib/python3.7/site-packages/PySide2/Qt/lib/libQt5Widgets.so.5
      #8  0x00007ffff631dfdd in Sbk_QApplication_Init () from /home/cmaureir/dev/汉语/test/lib/python3.7/site-packages/PySide2/QtWidgets.abi3.so
      #9  0x00007ffff7bb33ac in _PyObject_FastCallKeywords () from /usr/lib/libpython3.7m.so.1.0
      #10 0x00007ffff7bfe5e7 in _PyEval_EvalFrameDefault () from /usr/lib/libpython3.7m.so.1.0
      #11 0x00007ffff7b40b99 in _PyEval_EvalCodeWithName () from /usr/lib/libpython3.7m.so.1.0
      #12 0x00007ffff7b41ab4 in PyEval_EvalCodeEx () from /usr/lib/libpython3.7m.so.1.0
      #13 0x00007ffff7b41adc in PyEval_EvalCode () from /usr/lib/libpython3.7m.so.1.0
      #14 0x00007ffff7c6bc94 in ?? () from /usr/lib/libpython3.7m.so.1.0
      #15 0x00007ffff7b07f36 in ?? () from /usr/lib/libpython3.7m.so.1.0
      #16 0x00007ffff7b0a485 in PyRun_InteractiveLoopFlags () from /usr/lib/libpython3.7m.so.1.0
      #17 0x00007ffff7b0a528 in ?? () from /usr/lib/libpython3.7m.so.1.0
      #18 0x00007ffff7c70eb7 in ?? () from /usr/lib/libpython3.7m.so.1.0
      #19 0x00007ffff7c710fc in _Py_UnixMain () from /usr/lib/libpython3.7m.so.1.0
      #20 0x00007ffff7dcf223 in __libc_start_main () from /usr/lib/libc.so.6
      #21 0x000055555555505e in _start ()
      (gdb) 
      

      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
              crmaurei Cristian Maureira-Fredes
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews