[PyQt] problems with PY3 and QTranslator.translate()

Wolfgang Rohdewald wolfgang.kde at rohdewald.de
Wed Oct 22 03:04:06 BST 2014


Am Sonntag, 19. Oktober 2014, 12:58:29 schrieb Phil Thompson:
> 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).

works, thanks!

-- 
Wolfgang


More information about the PyQt mailing list