python - ZeroRpc: TypeError ord() expected string of length 1 -
i trying run example website, server:
import zerorpc  class hellorpc(object):     def hello(self, name):         return "hello, %s" % name  s = zerorpc.server(hellorpc()) s.bind("tcp://0.0.0.0:4242") s.run()   and client:
import zerorpc  c = zerorpc.client() c.connect("tcp://127.0.0.1:4242") print c.hello("rpc")   however it's not working should, getting error message:
typeerror: ord() expected string of length 1, memoryview found   i running on windows anaconda (python 2.7.11) have zerorpc installed via pip, , zeromq installed via installer website.
 how can fix ? 
 
 
  
Comments
Post a Comment