Yeah I think you're right; I'm going to clean out and reinstall both of
those


On Mon, Dec 30, 2013 at 2:41 PM, MinRK <benjami...@gmail.com> wrote:

> And how did you install libzmq? It seems like you have a borked install.
> Perhaps rebuilding libzmq and/or pyzmq is the answer.
>
>
> On Sun, Dec 29, 2013 at 6:27 PM, Thomas Johnson <
> thomas.j.john...@gmail.com> wrote:
>
>> Thanks, that was the problem. The broken one had 4.0.3 and the working
>> one had 2.2.0
>>
>>
>> On Sun, Dec 29, 2013 at 12:09 PM, Min RK <benjami...@gmail.com> wrote:
>>
>>> what is zmq.zmq_version() on each?
>>>
>>> -MinRK
>>>
>>> On Dec 29, 2013, at 0:01, Thomas Johnson <thomas.j.john...@gmail.com>
>>> wrote:
>>>
>>> Consider the following simple program:
>>> #----CUT HERE----
>>> #!/usr/bin/python
>>> import zmq
>>>
>>> context_push = zmq.Context(1)
>>> socket_push = context_push.socket(zmq.PUSH)
>>>
>>> context_pull = zmq.Context(1)
>>> socket_pull = context_pull.socket(zmq.PULL)
>>>
>>> socket_pull.bind("tcp://127.0.0.1:2000")
>>> socket_push.connect("tcp://127.0.0.1:2000")
>>>
>>> socket_push.send("Hello")
>>> message = socket_pull.recv()
>>> print "Got message: '%s'" % message
>>> #----CUT HERE----
>>>
>>>
>>> On machine A, as expected, it prints: Got message: 'Hello'
>>> On machine B, it prints: Got message: ''
>>>
>>>  Separately from this program, Machine B also immediately raises a
>>> "Resource temporarily unavailable" if I create a PULL socket and do a
>>> (blocking) socket.recv() call. Strangely, it seems to hang if I do a
>>> socket.recv(flags=zmq.NOBLOCK), almost as if the flag was being flipped.
>>>
>>> Both A and B are Ubuntu precise, using pyzmq 14.0.1. B happens to have
>>> its native language set as Russian, if that matters.
>>>
>>> Any idea what is going on or what I'm doing wrong?
>>>
>>> _______________________________________________
>>> zeromq-dev mailing list
>>> zeromq-dev@lists.zeromq.org
>>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>>
>>>
>>> _______________________________________________
>>> zeromq-dev mailing list
>>> zeromq-dev@lists.zeromq.org
>>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>>
>>>
>>
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev@lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>
>>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev@lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to