Closed raditv closed 9 years ago
I can't replicate this issue, have you made any changes to the code?
azelphur@darth-vader:~/tmp$ git clone https://github.com/Azelphur/pyPushBullet.git
Cloning into 'pyPushBullet'...
remote: Counting objects: 114, done.
remote: Total 114 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (114/114), 25.74 KiB | 0 bytes/s, done.
Resolving deltas: 100% (41/41), done.
Checking connectivity... done.
azelphur@darth-vader:~/tmp$ cd pyPushBullet/
azelphur@darth-vader:~/tmp/pyPushBullet$ ./pushbullet_cmd.py jz3k8zxF8CH9uxD4yOt15ih8HsneFuqH getdevices
uffuk27sjAiVsKnSTs Google Chrome
uffuk27sjz7O3P0Jl6 samsung GT-N5100
Hmm, this actually looks like there may be something wrong with your requests library, what version of requests are you using? Maybe it is out of date.
Can confirm. Had the same issue and upgrading to requests 2.4.3 worked to fix it.
Confimed the problem caused due out of date request library. thank you very much.
root@agocontrol:/home/agocontrol/Downloads/pushbullet# ./pushbullet_cmd.py jz3k8zxF8CH9uxD4yOt15ih8HsneFuqH getdevices Traceback (most recent call last): File "./pushbullet_cmd.py", line 149, in
args.func(args)
File "./pushbullet_cmd.py", line 32, in getDevices
devices = p.getDevices()
File "/home/agocontrol/Downloads/pushbullet/pushbullet.py", line 69, in getDevices
return self._request("GET", HOST + "/devices")["devices"]
File "/home/agocontrol/Downloads/pushbullet/pushbullet.py", line 45, in _request
return r.json()
TypeError: 'dict' object is not callable