Closed jonaslorander closed 5 years ago
Hi,
using python 3.5.3 on a Raspberry Pi Zero W. I can successfully send pushes and list channels. I can how ever not get the listener_example.py working.
listener_example.py
I have updated my API-key from Pushbullet, and when I run the example, this is the printout I get:
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.pushbullet.com:443 DEBUG:urllib3.connectionpool:https://api.pushbullet.com:443 "GET /v2/devices HTTP/1.1" 200 1247 DEBUG:urllib3.connectionpool:https://api.pushbullet.com:443 "GET /v2/chats HTTP/1.1" 200 160 DEBUG:urllib3.connectionpool:https://api.pushbullet.com:443 "GET /v2/users/me HTTP/1.1" 200 331 DEBUG:urllib3.connectionpool:https://api.pushbullet.com:443 "GET /v2/channels HTTP/1.1" 200 318 ERROR:websocket:error from callback <bound method Listener.on_open of <Listener(Thread-1, initial)>>: on_open() missing 1 required positional argument: 'ws' File "/home/pi/gameframe/lib/python3.5/site-packages/websocket/_app.py", line 343, in _callback callback(*args) ERROR:websocket:error from callback <bound method Listener.on_message of <Listener(Thread-1, initial)>>: on_message() missing 1 required positional argument: 'message' File "/home/pi/gameframe/lib/python3.5/site-packages/websocket/_app.py", line 343, in _callback callback(*args) ^C^CERROR:websocket:error from callback <bound method Listener.on_close of <Listener(Thread-1, initial)>>: on_close() missing 1 required positional argument: 'ws' File "/home/pi/gameframe/lib/python3.5/site-packages/websocket/_app.py", line 343, in _callback callback(*args) ^C
I'm running inside a venv, with nothing but pushbullet.py installed by me.
What might be the issue and how to fix it?
Thanks in advance!
I just realized this is because of #139
Hi,
using python 3.5.3 on a Raspberry Pi Zero W. I can successfully send pushes and list channels. I can how ever not get the
listener_example.py
working.I have updated my API-key from Pushbullet, and when I run the example, this is the printout I get:
I'm running inside a venv, with nothing but pushbullet.py installed by me.
What might be the issue and how to fix it?
Thanks in advance!