Questions tagged [zerorpc]

zerorpc is a light-weight, reliable and language-agnostic library for distributed communication between server-side processes. It builds on top of ZeroMQ and MessagePack.

zerorpc is a light-weight, reliable and language-agnostic library for distributed communication between server-side processes. It builds on top of ZeroMQ and MessagePack.

49 questions
5
votes
3 answers

GLIBCX_3.4.21 not found

I apologize if this isn't the right place for this, but after 2 days of dealing with the same error, I'm hoping someone will have an answer. I am trying to use the node module zerorpc, which uses zmq, however, when trying to run a small example, I…
Kacy
  • 3,330
  • 4
  • 29
  • 57
5
votes
2 answers

How to configure ZeroRPC and timeouts

I'm trying to do some simple load-testing with a ZeroRPC python server and node.js client. What I notice is that if the request takes longer than 10 seconds, I get no data back. I tried to configure no heartbeat in the python code: s =…
user2395365
  • 1,991
  • 4
  • 18
  • 34
4
votes
3 answers

Unable to install zerorpc using npm

I need to install zerorpc. As mentioned in documentation i first installed zeromq then tried this command : npm install -g zerorpc but I am getting this error :- C:\WINDOWS\system32>npm install -g zerorpc > zeromq@4.6.0 install…
Nihal Karne
  • 59
  • 1
  • 6
4
votes
1 answer

Streaming with ZeroRPC

As you may know, ZeroRPC documentation is sparse. I can't get Streaming between a Python server and a Node client to work. Here is the Python method: @zerorpc.stream def PublishWhaterver(self, some_args): yield "love" yield "stack" yield…
Eric Burel
  • 3,790
  • 2
  • 35
  • 56
4
votes
1 answer

How do I handle multiple requests to python program using zeromq and threading or async?

I have a little program, which does some calculations in background, when I call it through zerorpc module in python 2.7. Here is my code: is_busy = False class Server(object): def calculateSomeStuff(self): global is_busy if…
t1maccapp
  • 323
  • 7
  • 16
4
votes
1 answer

zeroRPC: keep running process after response is sent

I'm using Python 2.7 and zeroRPC to make a client and a server communicate. I want the client to send a request to the server and I want the server to send a response to confirm it has received the request. But then I want the server to perform some…
Parzival
  • 2,004
  • 4
  • 33
  • 47
4
votes
1 answer

Strange issues with multiprocessing with zeroRPC

So, I'm playing around with ZeroRPC and Tornado for a pet project and I've run into some issues using ZeroRPC in conjunction with python's multiprocessing library. Specifically, I'm creating and running new ZeroRPC servers programmatically, but…
Slater Victoroff
  • 21,376
  • 21
  • 85
  • 144
4
votes
2 answers

ZeroRPC publish subscribe

I would like to set up an event-based system between my servers. For example, when the server that wraps my database logic changes state, I would like for it to notify my other servers. A publish/subscribe design seems ideal for this, and I have…
user1161657
  • 971
  • 2
  • 10
  • 24
2
votes
0 answers

NPM keeps failing when trying to install ZeroRPC

Everytime I run npm install zerorpc I get this: npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See…
2
votes
1 answer

Cannot run python program as a service in ubuntu 18.04

I am trying to run a python program as a background service in ubuntu 18.04. It imports zerorpc module which I have already installed with pip3 and tested with python command on terminal. But it shows status: failed when I try to run the program as…
Vipul Tyagi
  • 547
  • 3
  • 11
  • 29
2
votes
1 answer

python zerorpc and multiprocessing issue

I'm implementing a bi-directional ping-pong demo app between an electron app and a python backend. This is the code for the python part which causes the problems: import sys import zerorpc import time from multiprocessing import Process def…
user1934513
  • 693
  • 4
  • 21
2
votes
1 answer

How to bundle a python script that imports zerorpc with pyinstaller?

I have the following script called api.py that I'd like to turn into a python app using pyinstaller. The below function works when I run it out of sublime text but when I try to convert it into an unix executable application using pyinstaller, the…
Chris
  • 5,444
  • 16
  • 63
  • 119
2
votes
1 answer

zerorpc: how to convert string data from python to node

I need to call a python script from nodejs and getting back the result. I found the zerorpc library which seems a good fit. The python script returns an array of strings but in node i got objects of binary data. This is the python zerorpc server: #…
revy
  • 3,945
  • 7
  • 40
  • 85
2
votes
1 answer

Program using zerorpc and threading throws Exception "LoopExit: This operation would block forever"

I'm using python 2.7 and zerorpc and threading in my program. When I called a remote function by zerorpc in a Thread object, Exception "LoopExit: This operation would block forever" arised. an example of my code: class Reminder(Thread): def…
2
votes
0 answers

npm install ZeroRPC error

I cannot install the "ZeroRPC" package. npm ERR! Failed at the zmq@2.14.0 install script 'node-gyp rebuild'. I followed the Robert Kehoe tutorial without success. Messages : gyp ERR! build error gyp ERR! stack Error:…
CheapD AKA Ju
  • 713
  • 2
  • 7
  • 21
1
2 3 4