[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] Unicode errors with PyQt5?
From: "Jones, Bryan" <bjones () ece ! msstate ! edu>
Date: 2018-08-27 16:21:00
Message-ID: CAHhYbD_xZPfmuc3Bu7C=7vge5tuCNfa7y2VACCxEXanMKn1vcQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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)
[Attachment #5 (text/html)]
<div dir="ltr"><div class="gmail_default" \
style="font-family:arial,helvetica,sans-serif;font-size:small">All,</div><div \
class="gmail_default" \
style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div \
class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">It seems \
that PyQt5 doesn't handle Unicode library paths correctly. (Of course, this could be an \
underlying Qt5 problem). Any advice/pointers?</div><div class="gmail_default" \
style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div \
class="gmail_default" style="font-size:small"><div class="gmail_default" style=""><font \
face="monospace, monospace">(venv) F:\tmp\中文路径>python</font></div><div \
class="gmail_default" style=""><font face="monospace, monospace">Python 3.6.1 (v3.6.1:69c0db5, \
Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] on win32</font></div><div \
class="gmail_default" style=""><font face="monospace, monospace">Type "help", \
"copyright", "credits" or "license" for more \
information.</font></div><div class="gmail_default" style=""><font face="monospace, \
monospace">>>> from PyQt5.QtCore import QLibraryInfo</font></div><div \
class="gmail_default" style=""><span style="font-family:monospace,monospace">>>> \
QLibraryInfo.location(QLibraryInfo.LibrariesPath)</span><br></div><div class="gmail_default" \
style=""><font face="monospace, \
monospace">'F:/tmp/????/venv/lib/site-packages/PyQt5/Qt/lib'</font></div><div \
class="gmail_default" style=""><font face="monospace, monospace">>>> import \
sys</font></div><div class="gmail_default" style=""><font face="monospace, \
monospace">>>> sys.path</font></div><div class="gmail_default" style=""><font \
face="monospace, monospace">['', \
'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']</font></div><div \
class="gmail_default" style=""><font face="monospace, monospace">>>> from PyQt5.QtCore \
import QT_VERSION_STR, PYQT_VERSION_STR</font></div><div class="gmail_default" style=""><font \
face="monospace, monospace">>>> print(QT_VERSION_STR, \
PYQT_VERSION_STR)</font></div><div class="gmail_default" style=""><font face="monospace, \
monospace">5.11.1 5.11.2</font></div></div><div class="gmail_default" \
style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div \
class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">(Credit \
goes to DionSun, reported at <a \
href="https://github.com/pyinstaller/pyinstaller/issues/3696">https://github.com/pyinstaller/pyinstaller/issues/3696</a>)</div><div><div \
class="gmail_default" \
style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div \
class="gmail_default" \
style="font-family:arial,helvetica,sans-serif;font-size:small">Bryan</div></div>-- <br><div \
dir="ltr" class="gmail_signature"><div dir="ltr"><div>Bryan A. Jones, Ph.D.<br>Associate \
Professor<br>Department of Electrical and Computer Engineering<br>231 Simrall / PO Box \
9571<br>Mississippi State University<br>Mississippi State, MS 39762<br><a \
href="http://www.ece.msstate.edu/~bjones" \
target="_blank">http://www.ece.msstate.edu/~bjones</a><br>bjones AT ece DOT msstate DOT \
edu<br>voice 662-325-3149<br>fax 662-325-2298<br><br>Our Master, Jesus Christ, is on his way. \
He'll show up right on<br>time, his arrival guaranteed by the Blessed and Undisputed \
Ruler,<br>High King, High God.<br>- 1 Tim. 6:14b-15 (The Message)<br></div></div></div></div>
[Attachment #6 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic