[zeromq-dev] ZeroMQ and NORM

MinRK benjaminrk at gmail.com
Wed Mar 11 17:54:00 CET 2015


How did you install pyzmq? What OS is this?

-MinRK

On Wed, Mar 11, 2015 at 7:03 AM, Adam Najman <najman at gmail.com> 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
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150311/ee42026d/attachment.htm>


More information about the zeromq-dev mailing list