yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

Argument error since PR #756

Open ResonantWave opened this issue 11 years ago • 6 comments

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?

ResonantWave avatar May 05 '15 17:05 ResonantWave

Fixes #763

betoroar avatar May 05 '15 19:05 betoroar

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 avatar May 05 '15 20:05 ResonantWave

@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?

tgalal avatar May 06 '15 06:05 tgalal

That did it. Thank you very much and sorry (because the fault was mine, indeed).

ResonantWave avatar May 06 '15 18:05 ResonantWave

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 avatar May 06 '15 20:05 yorickr

@yorickr thanks for the tip, updated

tgalal avatar May 07 '15 05:05 tgalal