pyzmq Questions
2
I'm using pyzmq library with pub/sub pattern. I have some fast ZMQ publishers using .connect() method and a slower ZMQ subscriber using .bind() method.
Then after a few minutes, my subscriber recei...
5
Solved
I would like to run an IPython instance on one machine and connect to it (over LAN) from a different process (to run some python commands). I understand that it is possible with zmq : http://ipytho...
4
Solved
I can only find old C++ source examples. Anyways, I did mine, based on them. Here's my publisher in python:
import zmq
context = zmq.Context()
socket = context.socket(zmq.PUB)
socket.bind("tcp://*...
2
Solved
In Python ZMQ publisher/subscriber sample template, the publisher uses .bind() method and the subscriber uses .connect() method, that connected to the bind IP address.
But we can replace .bind() a...
2
Solved
I have spent a week searching and trying different solutions with no luck. I've seen several others having the same problems going back over a year.
The issue:
Windows 10 Pro build 15063.674
I'm...
4
During py2exe build I get the following error:
creating python loader for extension 'win32clipboard' (C:\Python27\lib\site-packages\win32\win32clipboard.pyd -> win32clipboard.pyd)
creating pyth...
1
Solved
I'm trying to set up a toy example of Docker networking with ZeroMQ in macOS, where the serverd.py sends a message to the clientd.py and the client simply displays it using PUSH/PULL. If I run them...
Simonesimoneau asked 19/8, 2017 at 13:23
1
Solved
I'm trying to run a most simple demo of flask app in an iPython notebook like this.
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():.
return 'Hello World!'
...
Rewrite asked 26/1, 2016 at 18:9
1
I want to use jupyter kernels in side the celery worker. There will be one Jupyter Kernel for each Celery Worker.
To achieve it I am overriding the default Worker class of the celery, at the initi...
1
Solved
I'm having some trouble understanding how the ZeroMQ high-water mark (HWM) queues work.
I have made two scripts attached below, which reproduce the following.
Stablish a PUSH/PULL connection, Se...
1
So I'm new to ZeroMQ and I am trying to send byte message with ZeroMQ, using a PUB / SUB setting.
Choice of programming language is not important for this question since I am using ZeroMQ for commu...
Save asked 8/1, 2017 at 4:19
4
Solved
I can't seem to install pyzmq on my macbook (OSX 10.9.1)
First call was to run:
sudo pip install pyzmq
There was an error that libzmq couldn't be found, and it appeared to try and compile the b...
Penuche asked 5/3, 2014 at 3:14
4
Solved
Suppose that several machines are interacting together using python's zeroMQ client.
These messages are naturally formatted as strings.
Is there a limit to the length of a message (string)?
1
Solved
Here is my code with the extraneous stuff stripped out:
coordinator.py
context = zmq.Context()
socket = context.socket(zmq.ROUTER)
port = socket.bind_to_random_port(ZMQ_ADDRESS)
poller = zmq.Pol...
1
Solved
ZeroMQ provides pretty good documentation about how to set up a pub-sub pattern with the topic filter, as described in the api docs. ZeroMQ also provides the methods socket.send_json() and socket.s...
1
Solved
I am trying to use ZeroMQ's pub-sub sockets. However, I don't clearly understand the role of context (zmq::context_t) while creating sockets (zmq::socket_t).
Assuming that I want to create 5 subs...
2
Solved
How can I implement or do kind of "hack" in PUB-SUB pattern to get an ability to publish only to authorized subscribers, disconnect unauthorized subscribers etc?
I googled for this problem, but al...
1
I have been reading about ZeroMQ more specifically about NetMQ and almost every Pub/Sub examples I saw used to Bind the Publisher socket and then the Subscriber socket connects to the other.
So i'...
2
Solved
I am having trouble installing the PyZMP dependency for iPython. I have tried a number of things such as using pip/brew, but ended up installing the package manually using this answer.
Now, pip li...
2
Solved
Can you please tell me how you can use to send messages ZeroMQ between two programs located on different servers using some common socket?
With all local sockets program works, but I do not underst...
Fraya asked 24/1, 2013 at 21:30
1
I used Dockerfile successfully built a container. However, my code doesn't work in the container. It does work if I install all the packages manually. I'm assuming I messed up something that cause ...
Circumgyration asked 17/12, 2014 at 7:50
1
I have found a similar question, ZeroMQ: HWM on PUSH does not work, but it couldn't solve my problem.
I want to control the number of messages that the push socket queues, but it doesn't work and ...
4
Solved
Following this example in the ØMQ docs, I'm trying to create a simple receiver. The example uses infinite loop. Everything works just fine. However, on MS Windows, when I hit CTRL+C to raise Keyboa...
Fourposter asked 18/6, 2013 at 16:19
2
I need to send a dictionary as the message from a publisher to subscribers. With the REQ/REP pattern send_json and recv_json work nicely, but I can't seem to find an incantation that works for PUB/...
2
I am trying to write a server/client script with a server that vents the tasks, and multiple workers that execute it.
The problem is that my ventilator has so many tasks that it would fill up the m...
© 2022 - 2024 — McMap. All rights reserved.