[Python-modules-team] Bug#558389: Package fails to install

Dmitry Shachnev mitya57 at gmail.com
Sat Dec 31 11:26:03 UTC 2011


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20111231/ff25dbc2/attachment.html>


More information about the Python-modules-team mailing list