我尝试像这样使用 zerorpc python 客户端:
import zerorpc
c = zerorpc.Client()
c.connect("tcp://127.0.0.1:4242")
print c.hello("RPC")
我一开始就收到这个错误
Traceback (most recent call last):
File "/Programming/python/snmp01/snmp01.py", line 34, in <module>
print c.hello("RPC")
File "/Library/Python/2.7/site-packages/zerorpc-0.4.3-py2.7.egg/zerorpc/core.py", line 256, in <lambda>
return lambda *args, **kargs: self(method, *args, **kargs)
File "/Library/Python/2.7/site-packages/zerorpc-0.4.3-py2.7.egg/zerorpc/core.py", line 241, in __call__
return self._process_response(request_event, bufchan, timeout)
File "/Library/Python/2.7/site-packages/zerorpc-0.4.3-py2.7.egg/zerorpc/core.py", line 225, in _process_response
raise
zerorpc.exceptions.RemoteError: Error: Hello, RPC
at Server._recv.result (//Programming/node/snmp01/node_modules/zerorpc/lib/server.js:146:55)
任何想法?