[PyQt] Unicode errors with PyQt5?

Jones, Bryan bjones at ece.msstate.edu
Mon Aug 27 17:21:00 BST 2018


All,

It seems that PyQt5 doesn't handle Unicode library paths correctly. (Of
course, this could be an underlying Qt5 problem). Any advice/pointers?

(venv) F:\tmp\中文路径>python
Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt5.QtCore import QLibraryInfo
>>> QLibraryInfo.location(QLibraryInfo.LibrariesPath)
'F:/tmp/????/venv/lib/site-packages/PyQt5/Qt/lib'
>>> import sys
>>> sys.path
['', 'F:\\tmp\\中文路径\\venv\\Scripts\\python36.zip',
'F:\\Downloads\\Python36-64\\DLLs', 'F:\\Downloads\\Python36-64\\lib',
'F:\\Downloads\\Python36-64', 'F:\\tmp\\中文路径\\venv',
'F:\\tmp\\中文路径\\venv\\lib\\site-packages']
>>> from PyQt5.QtCore import QT_VERSION_STR, PYQT_VERSION_STR
>>> print(QT_VERSION_STR, PYQT_VERSION_STR)
5.11.1 5.11.2

(Credit goes to DionSun, reported at
https://github.com/pyinstaller/pyinstaller/issues/3696)

Bryan
-- 
Bryan A. Jones, Ph.D.
Associate Professor
Department of Electrical and Computer Engineering
231 Simrall / PO Box 9571
Mississippi State University
Mississippi State, MS 39762
http://www.ece.msstate.edu/~bjones
bjones AT ece DOT msstate DOT edu
voice 662-325-3149
fax 662-325-2298

Our Master, Jesus Christ, is on his way. He'll show up right on
time, his arrival guaranteed by the Blessed and Undisputed Ruler,
High King, High God.
- 1 Tim. 6:14b-15 (The Message)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180827/e2a6882c/attachment.html>


More information about the PyQt mailing list