Questions tagged [pyzmq]

PyZMQ is the Python bindings for 0MQ (also spelled ZeroMQ, ØMQ or ZMQ), written almost entirely in Cython

Python bindings for 0MQ, a high-performance asynchronous messaging library aimed at use in scalable distributed or concurrent applications. It provides a message queue, but unlike message-oriented middleware, a 0MQ system runs without a dedicated message broker.

For a brief introduction read the ZeroMQ concept & properties from

PyZMQ works with Python 3 (≥ 3.3), and Python 2.7, with no transformations or 2to3, as well as PyPy (at least 2.0 beta), via CFFI.

PyZMQ started it python journey since the ZeroMQ API v2.1.1, those days in Python 2.6

Useful links:

627 questions
0
votes
1 answer

Python tornado - how to create a blocking call without stopping the loop?

I am using ZMQ streams, which are based around their own implementation of tornado's IOLoop. I am running into a problem where I want to have synchronous behavior, yet IOLoop is forcing me into asynchronous execution. Here is the specifics: I have a…
NindzAI
  • 570
  • 5
  • 19
0
votes
1 answer

How to import local module with same name as sys modul?

I've compiled pyzmq (python zeromq binding) module and want to use that one instead system one. How to skip module loading from system so that my import zmq first searches in current folder?
user505160
  • 1,176
  • 8
  • 25
  • 44
0
votes
1 answer

Testing using inverted zeromq pub-sub in python

I did use pyzmq 2.2.0.1 (python27 on Windows or Linux) in my code and when I running this it works (also it python threads): def test_zmq_inverted_pub_sub(): import zmq import time ctx = zmq.Context() sub = ctx.socket(zmq.SUB) …
netanelrevah
  • 337
  • 4
  • 12
0
votes
1 answer

PyZMQ Gevent Websocket Connection Error

I am trying pub/sub pattern using python zmq. I am facing a strange problem on the client side. On the client side I am using pyzmq, gevent-websocket and bottle as wsgi server. Though it works perfectly for one client, the other clients are waiting…
Jega
  • 101
  • 2
  • 8
0
votes
1 answer

How to run REP and PUB in single instance non-blocking Pyzmq

My object: class mysrv(object): def __init__(self): self._pubsocket = context.socket(zmq.PUB) self._socket = context.socket(zmq.REP) self._socket.bind("tcp://127.0.0.1:9003") …
vspr
  • 39
  • 1
  • 5
0
votes
0 answers

Error when starting IPython notebook with Canopy

I'm getting an error when attempting to start the notebook from Canopy on OS X. I'm installing from the latest on github. This also happens with the qtconsole, so I'm thinking it's some weirdness with the zmq. If I install 1.0 using enpkg, it…
Chris F.
  • 773
  • 6
  • 15
0
votes
1 answer

Encoding for ZMQ

I am currently doing project which requires communication from a PC to the device, so far I've decided on socket comms. and have written some code. I am also using ZMQ for ipc on the device itself. My script works by sending data as text across. I…
intensified
  • 159
  • 3
  • 4
  • 10
0
votes
1 answer

calling specific function from each side in zeromq

Im looking for a way to call specific functions from one side of IPC. assume this sample code: socket = context.socket(zmq.REQ) socket.connect("tcp://127.0.0.1:8000") socket.send(resp) i want specify the function which 'resp' will be forwarded to,…
user1229351
  • 1,985
  • 4
  • 20
  • 24
0
votes
2 answers

How to close sockets left open by a killed program?

I have a program (Python) that in some point uses zmq.Context.socket(zmq.REP) and zmq.Context.socket(zmq.PAIR) sockets but the problem is that when program is killed the sockets still can be found using: 'ps aux | grep zmq' command.…
Kristians Kuhta
  • 53
  • 1
  • 4
  • 10
0
votes
0 answers

Failed to install PyZMQ 13.1 for PyPy 2.0.2 on Ubuntu 12.04.2 LTS

I use pip install as root. Everything works with CPython because it doesn't use the cffi backend. With PyPy I get the following error: ImportError: PyZMQ CFFI backend couldn't find zeromq: [Errno 2] No such file or directory: …
Pyramid Newbie
  • 6,865
  • 3
  • 24
  • 28
0
votes
1 answer

ipython 0.13 zmq errors

I encounter weird behavior of an ipython cluster. The calculations finish, but many results never reach the client (and the engines just idle after finishing their first calculation). I suspect something is wrong with zmq because 1) from time to…
0
votes
1 answer

Zeromq memory leak (pyzmq)

Hi I'm trying to send large packets with ZeroMQ using the ventilator/worker/sink pattern. I try adding workers. Each time, the sink process memory usage increases a little. Then it reaches a tipping point at about 6 or 7 workers where suddenly…
0
votes
1 answer

ZeroMQ 2nd connection fail with einval

I got a C-ZMQ client that receiving two random ports (from pyzmq server) and then connecting to them. Usually, everything is working, but sometimes the 2nd connect fail with errno set to EINVAL. (Even when I switched between the connect calls the…
Jah
  • 1,019
  • 1
  • 11
  • 25
0
votes
1 answer

ZeroMQ rrclient-broker not working

I am trying to run the Python and Node.JS examples from https://github.com/imatix/zguide for the client-broker-worker architecture (rrclient, rrworker, rrbroker). I can confirm that the Python implementation works fine, and the Node.JS…
ejang
  • 3,982
  • 8
  • 44
  • 70
0
votes
1 answer

pyzmq error when loading the module

I am trying to install pyzmq to get ipython wotking in qtconsole mode. I have installed zeromq in the default location (/usr/local). Both the dynamic lib and the header are at the correct position. The I cloned the git repo for pyzmq and run the…
akira
  • 31
  • 6
1 2 3
41
42