Error using "jsonrpclib"
this is my code:
import websocket import json from jsonrpclib import Server s=Server("http://192.168.1.200/rpc") s.relay_set(4,1)
I am getting always this error:
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/jsonrpclib/jsonrpc.py", line 239, in _request
TypeError: 'NoneType' object has no attribute 'getitem'
Raspberry 2 B
Hi, is the relay visible in the web interface or the output of the debugging mode? https://github.com/UniPiTechnology/evok#debugging
the relay is visible on the web interface and works fine.
The output of debugging mode is on the attached screenshot.
Could you please try this workadound? https://forum.unipi.technology/topic/86/relay-command-with-python/3
I thought that this issue has been fixed...
I have a Raspberry Pi 3 running Jessie with fresh installation of Evok. I am also using Python 3.4. I received the error, "TypeError: 'NoneType' object is not subscriptable." The workaround Tomas referred to on Nov 25, 2016, worked, but I first had to install jsonrpclib-pelix, a version of jsonrpclib updated for Python 3. The standard jsonrpclib does not work with Python 3.