[PyQt] bug: Python 2 exception in PyQt-Py3.1-gpl-4.8.1-1

Daniel Goertzen daniel.goertzen at gmail.com
Fri Dec 3 20:47:06 GMT 2010


While running cx_freeze with an installation of PyQt-Py3.1-gpl-4.8.1-1, I
got the following error:


  File "C:\Python31\lib\site-packages\PyQt4\uic\port_v2\load_plugin.py",
line 17
    except Exception, e:
                    ^
SyntaxError: invalid syntax
make: *** [freeze] Error 1



Changing the line to a Python 3 style exception fixed it:

  except Exception as e:



Dan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101203/219c1f08/attachment.html>


More information about the PyQt mailing list