Argument error since PR #756
Since PR #756, I've been getting this error (And no changes were made in my side):
ERROR:root:__init__() takes exactly 5 arguments (4 given)
I've made a bash loop, so the python script restarts after an error. The strange thing is that sometimes the error appears, and others it just doesn't, until it receives any message, where the error appears again.
So, any ideas on what's happening? Has any function changed?
Fixes #763
I was already ahead of that fix, and still the error appears. I even downloaded the most recent commit (94605c7095), and not fixed yet.
@ResonantWave Recently OutgoingAckProtocolEntity constructor was changed and now it must take an extra argument "to", which is the jid of the sender of the message we are acking. Could it be in your code it's not updated to contain that argument yet?
That did it. Thank you very much and sorry (because the fault was mine, indeed).
onReceipt in https://github.com/tgalal/yowsup/wiki/Yowsup-2.0-Sample-app should be updated as well then, it's lacking the jid argument.
@yorickr thanks for the tip, updated