[PyQt] problems with PY3 and QTranslator.translate()
Phil Thompson
phil at riverbankcomputing.com
Sun Oct 19 12:58:29 BST 2014
On 15/10/2014 6:10 am, Wolfgang Rohdewald wrote:
> The attached script works with qt4/Python2.7 but segfaults with
> qt5/Python3.4.
>
> With qt4/Python3.4, it prints random exception messages with random
> values like
>
> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xee in position
> 2: invalid continuation byte
> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfe in position
> 1: invalid start byte
> TypeError: translate() takes from 4 to 5 positional arguments but 7
> were given
>
>
> The same in C++ works correctly, attached too.
>
> Qt is 5.2.1, PyQt is 5.3.2, sip is 4.16.3
Should be fixed in tonight's SIP snapshot (it's a code generation bug).
Thanks,
Phil
More information about the PyQt
mailing list