[PyQt] Python2 Errors in Installer

Cody Scott cody at perspexis.com
Thu Nov 17 19:52:35 GMT 2016


I am using pynsist to create an installer and that works great.

During installation it tries to pre generate the __pycache__/ folders but
it can't compile some files and they show up as errors.

They are caused by using Python2 syntax.

PyQt5/uic/port_v2/invoke.py
line 36 except IOError, e:
line 39 except SyntaxError, e:
line 42 except NoSuchWidgetError, e:
line 45 except Exception, e:

PyQt5\uic\port_v2\load_plugin.py
line 38 except Exception, e:

Should be an easy fix

except Exception as e:

will work in both Python 2.7 and Python 3

Maybe the PyQt5/uic/port_v2/ shouldn't be included in the Python 3 wheel?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20161117/4bb7444a/attachment.html>


More information about the PyQt mailing list