pyzmq

How to listen to a TCP stream on my FastAPI server

How to listen to a TCP stream on my FastAPI server Question: I am working on a project building an API that is able to send the live location of vehicles to a frontend. I get this location data by subscribing to a ZMQ stream by running a while loop. This is all working and …

Total answers: 1

zmq_getsockopt error : zmq.error.ZMQError: No such file or directory for ipc path

zmq_getsockopt error : zmq.error.ZMQError: No such file or directory for ipc path Question: I am new to use ZeroMQ, so I am struggling with some code. If I do the following code, no error is shown : import zmq.asyncio ctx = zmq.asyncio.Context() rcv_socket = ctx.socket(zmq.PULL) rcv_socket.connect(“ipc:///tmp/test”) rcv_socket.bind(“ipc:///tmp/test”) But, if I try to use the function …

Total answers: 1

ZMQ Python PUB/SUB works but not my C++ Subscriber with Python Publisher

ZMQ Python PUB/SUB works but not my C++ Subscriber with Python Publisher Question: I am using Ubuntu 18.04, Qt 5.12, and libzmq.so.5.1.5. I have 2 very simple Python 3.6 scripts, using pyzmq 18.0.1, one implements ZMQ PUB and one implements ZMQ SUB. These Python scripts work find and data is transmitted from one to the …

Total answers: 1

Pyzmq – send message to STREAM socket

Pyzmq – send message to STREAM socket Question: I am trying to implement simple example of connection between two STREAM sockets in pyzmq. sender.py import zmq context = zmq.Context() socket = context.socket(zmq.STREAM) socket.bind(“tcp://*:5555”) socket.connect(“tcp://localhost:5556”) socket.send(“message”) receiver.py import zmq context = zmq.Context() socket = context.socket(zmq.STREAM) socket.bind(“tcp://*:5556”) message = socket.recv() print(“Received -> [ %s ]” % (message)) …

Total answers: 2

pyzmq create a process with its own socket

pyzmq create a process with its own socket Question: I have some code thats monitoring some other changing files, what i would like to do is to start that code that uses zeromq with different socket, the way im doing it now seems to cause assertions to fail somewhere in libzmq, since i may be …

Total answers: 1

Connecting to a remote IPython instance

Connecting to a remote IPython instance Question: 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://ipython.org/ipython-doc/dev/development/ipythonzmq.html . However, I can not find documentation on how to do it …

Total answers: 5