[PyQt] Fwd: Problem with QImage.bits().asstring

Phil Thompson phil at riverbankcomputing.com
Sun Dec 7 22:21:18 GMT 2014


On 07/12/2014 2:38 pm, Andrea Griffini wrote:
> On arch linux (sip 4.16.4, pyqt4 4.11.3-1, pyqt5 5.3.2-1) I'm getting 
> the
> error
> 
>     SystemError: Bad call flags in PyCFunction_Call. METH_OLDARGS is no
> longer supported!
> 
> on Python 3.4.2 when using QImage.bits().asstring(...) call, with
> both PyQt4 and PyQt5.
> The code works fine with Python 2.7.8.
> 
> To see the problem just evaluate
> 
>     from PyQt4.Qt import QImage
>     QImage(1,1,QImage.Format_ARGB32).bits().asstring(4)
> 
> If the asstring function is now not supported what is the substitute 
> for it?
> 
> Andrea Griffini
> 
> PS: Sorry if this message has been sent before, I realized I used the 
> wrong
> sender address.

Fixed in tonight's SIP snapshot.

Thanks,
Phil


More information about the PyQt mailing list