[PyQt] Fwd: Problem with QImage.bits().asstring
Andrea Griffini
agriff at tin.it
Sun Dec 7 14:38:35 GMT 2014
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20141207/5ee3e2f9/attachment.html>
More information about the PyQt
mailing list