Tracebacks in examples

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Tracebacks in examples

Cody Scott-2
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'



_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt