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