How did you install pyzmq? What OS is this?

-MinRK

On Wed, Mar 11, 2015 at 7:03 AM, Adam Najman <[email protected]> wrote:

> I'm trying to establish a NORM connection using ZeroMQ as detailed here:
>
> http://zeromq.org/topics:norm-protocol-transport
>
> I've already built NORM and ZeroMQ with support for norm using ./configure
> –with-norm=/path/to/norm.
>
> The code I'm trying is as follows:
>
> #Subscriberimport zmq
> context = zmq.Context()
> socket = context.socket(zmq.SUB)
> socket.bind("norm://224.1.2.3:5556")
> socket.setsockopt(zmq.SUBSCRIBE, "ZMQ-Test")while True:
>     string = socket.recv()
>     print string
> #Publisherimport zmqimport time
> context = zmq.Context()
> socket = context.socket(zmq.PUB)
> socket.connect("norm://224.1.2.3:5556")
> i = 1while True:
>     topic = "ZMQ-Test"
>     message = "Hello, NORM " + str(i) + " …"
>     socket.send("%s %s" % (topic, message))
>     i += 1
>     time.sleep(1)
>
> Whenever I run either of these, I get an error message:
>
> Traceback (most recent call last):
>   File "pub.py", line 5, in <module>
>     socket.connect("norm://224.1.2.3:5556")
>   File "zmq/backend/cython/socket.pyx", line 471, in 
> zmq.backend.cython.socket.Socket.connect (zmq/backend/cython/socket.c:4295)
> zmq.error.ZMQError: Protocol not supported
>
> I've tried re-installing everything and building everything from scratch,
> including NORM ZeroMQ and PyZMQ. Can anyone help with this issue? Python
> Version: 2.7.9 NORM Version: 1.5b4 ZeroMQ Version: 3.2.5
>
> _______________________________________________
> zeromq-dev mailing list
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to