Trying to install python3-pyqt4, I get this error:

>>>>>>>>>>
Setting up python3-pyqt4 package (4.9-1ubuntu1~ppa1~oneiric1) ...
  File "/usr/lib/python3/dist-packages/PyQt4/uic/port_v2/invoke.py", line 41
    except IOError, e:
                  ^
SyntaxError: invalid syntax

  File "/usr/lib/python3/dist-packages/PyQt4/uic/port_v2/load_plugin.py",
line 41
    except Exception, e:
                    ^
SyntaxError: invalid syntax
<<<<<<<<<<

You should change such strings to "except Exception as e" — this will work
in both python2 and python3.

Reply via email to