[PyQt] Python2 Errors in Installer
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.
line 36 except IOError, e:
line 39 except SyntaxError, e:
line 42 except NoSuchWidgetError, e:
line 45 except Exception, e:
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...
More information about the PyQt