[PyQt] Tracebacks in examples

Cody Scott cody at perspexis.com
Tue Jul 3 17:35:39 BST 2018


A couple of the examples do not work for me with Python 3.7.0 32bit and
PyQt5==5.11.2 on Windows 10.


(venv)
C:\Users\Cody\Downloads\PyQt5_gpl-5.11.2\PyQt5_gpl-5.11.2\examples>python
draganddrop\dropsite.py
Traceback (most recent call last):
  File "draganddrop\dropsite.py", line 162, in updateFormatsTable
    text = " ".join(["%02X" % ord(datum) for datum in
mimeData.data(format)])
  File "draganddrop\dropsite.py", line 162, in <listcomp>
    text = " ".join(["%02X" % ord(datum) for datum in
mimeData.data(format)])
UnicodeDecodeError: 'ascii' codec can't decode byte 0xdc in position 0:
ordinal not in range(128)


I was getting this traceback for the opengl\ examples. I think this might
be normal but I even tried installing pyopengl but I still get the same
traceback.

(venv)
C:\Users\Cody\Downloads\PyQt5_gpl-5.11.2\PyQt5_gpl-5.11.2\examples>python
opengl\grabber.py
Traceback (most recent call last):
  File "opengl\grabber.py", line 100, in initializeGL
    self.gl = self.context().versionFunctions()
ModuleNotFoundError: No module named
'PyQt5._QOpenGLFunctions_4_5_Compatibility'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180703/21d1c5c0/attachment.html>


More information about the PyQt mailing list