[kde-freebsd] py-qt4 python3 correction

Raphael Kubo da Costa rakuco at FreeBSD.org
Mon Jul 8 08:39:06 UTC 2013


Yarin <yarin at warpmail.net> writes:

> Hello,
>
> Your port (devel/py-qt4) failed to compile on my machine (FreeBSD 9.1-4
> generic), due to some of your files not being Python 3 compatible.
>
> I located the problem files, during the compilation to be at:
> /usr/ports/devel/py-qt4-core/work/PyQt-x11-gpl-4.9.1/pyuic/uic/port_v2/load_plugin.py
> /usr/ports/devel/py-qt4-core/work/PyQt-x11-gpl-4.9.1/pyuic/uic/port_v2/invoke.py
>
> They have Python 2 style exception handlers. Changing them to Python 3 style
> was very straightforward, after which py-qt4 compiled and installed
> fine.

PyQt was recently updated in ports to version 4.10.2. Could you give it
a try and check if you still have problems? I believe it should be
compatible with Python 3.


More information about the kde-freebsd mailing list