python-airmash
python-airmash copied to clipboard
test-client.py "error from callback"
I'm guessing the protocol changed, because when I run test-client, I get the following errors:
Super cool project! I want to make a kill-bot to rend my enemies to pieces! But, it looks like the matrix has changed while you were away. In 20 minutes of skimming code and tracing the callstack I think it's just that the protocol of which I have no understanding has changed.
error from callback <bound method Client._on_message of <airmash.client.Client object at 0x7f33d5764f28>>: _decode() takes 3 positional arguments but 4 were given error from callback <bound method Client._on_message of <airmash.client.Client object at 0x7f33d5764f28>>: 30846 error from callback <bound method Client._on_message of <airmash.client.Client object at 0x7f33d5764f28>>: 30845 error from callback <bound method Client._on_message of <airmash.client.Client object at 0x7f33d5764f28>>: _decode() takes 3 positional arguments but 4 were given error from callback <bound method Client._on_message of <airmash.client.Client object at 0x7f33d5764f28>>: _decode() takes 3 positional arguments but 4 were given error from callback <bound method Client._on_message of <airmash.client.Client object at 0x7f33d5764f28>>: 30845 error from callback <bound method Client._on_message of <airmash.client.Client object at 0x7f33d5764f28>>: _decode() takes 3 positional arguments but 4 were given
Output of pip freeze for me, in case this is just a versioning thing: construct==2.9.45 gevent==1.2.2 greenlet==0.4.13 names==0.3.0 six==1.11.0 websocket-client==0.47.0
Thanks!
Figured it out. I'm too busy to do a pull request right now, but if you add this as your "requirements.txt" it will work. The problem was using construct 2.9. They broke backwards compatability.
construct==2.8.22 gevent==1.2.2 greenlet==0.4.13 names==0.3.0 six==1.11.0 websocket-client==0.47.0