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

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -