[PyQt] Tracebacks in examples

Cody Scott cody at perspexis.com
Tue Dec 18 20:42:43 GMT 2018


This is fixed in PyQt5==5.11.3


On Tue, 3 Jul 2018 at 12:35, Cody Scott <cody at perspexis.com> wrote:

> 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/20181218/38354cc7/attachment.html>


More information about the PyQt mailing list