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
Filter by
Sorted by
Tagged with
2 votes
1 answer
508 views

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 ...
2 votes
0 answers
203 views

NPM keeps failing when trying to install ZeroRPC

Everytime I run npm install zerorpc I get this: npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known ...
0 votes
0 answers
314 views

An unhandled error occurred inside electron-rebuild. Could not find any Visual Studio installation to use

I am trying to use zeroRPC but I got this error: electron/js2c/asar.js:140 Uncaught Error: The module '\\?\C:\Users\Electron\\node_modules\zerorpc\node_modules\zeromq\build\Release\zmq.node' was ...
4 votes
3 answers
4k views

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 ...
1 vote
1 answer
214 views

Production Flask-SocketIO + ZeroRPC

I've deployed a flask-socketio web server, but after installing zerorpc which installs gevent i'm facing a lot of troubles.. at first my code looked like this: socketio.start_background_task(...
0 votes
0 answers
212 views

zerorpc client will stuck after calling an Not exist server timeout for more 1,000 times

i user zerorpc to build my rpc program, but i found an interest phenomenon, code import zerorpc c = zerorpc.Client(timeout=0.1) c.connect("tcp://192.168.33.12:4242") count = 0 while True: ...
0 votes
1 answer
344 views

python zerorpc client with multiprocess to send log to server

As the title, I want a log rpc server to help me deal with the log in a new process. I reference zerorpc and this link: https://stackoverflow.com/a/57140017/14021161 But stuck in a weird bug The code: ...
0 votes
1 answer
937 views

unable to install zerorpc on windows 10 using npm

First of all, I've checked How to install zeroRPC (python) on windows, but couldn't find an answer to my question. I'm trying to install zerorpc to use Electronjs with python, using: npm install ...
5 votes
2 answers
3k views

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 ...
2 votes
1 answer
632 views

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 ...
2 votes
1 answer
1k views

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 ...
0 votes
0 answers
95 views

Can django integration zerorpc?

I'm intending to use rpc in my django project.And I found zerorpc is a beautiful lib for rpc.So I want to intrgration django with zerorpc. What is the best practice? And how to start the zerorpc ...
1 vote
1 answer
78 views

Architecture recommendation for cancellable backend calls [zerorpc if possible?]

I have an electron app frontend (zerorpc-node) communicating with a python backend (zerorpc-python) that needs to: a) be able to send requests to the backend [standard zerorpc call] b) be able to ...
0 votes
1 answer
520 views

Use zerorpc inside Flask app throws error "operation would block forever"

I have a RPC Server using zerorpc in Python, written this way import zerorpc from service import Service print('RPC server - loading') def main(): print('RPC server - main') s = zerorpc....
0 votes
1 answer
152 views

APScheduler and zerorpc incompatibility

It looks like that scheduling jobs with APScheduler doesn't go along with ZeroRPC. When testing using test(x) ZeroRPC works well. When starting with run() the scheduler repeatedly returns the ...
1 vote
1 answer
1k views

Zerorpc asynchronous calls

Server Suppose I have the following zerorpc server #server side import zerorpc class API(): def long_running_task(self): print('1 - started long_running_task') #for instance a ...
2 votes
1 answer
549 views

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 ...
0 votes
1 answer
788 views

python zerorpc multithreading

I'm trying to build a front end service for a python program. I choosed zerorpc to communicate between NodeJS and python, which works fine, the only problem that I do have is that I can't properly ...
1 vote
0 answers
90 views

ZeroMQ - Error: Module version mismatch. Expected 46, got 67

While using ZeroMQ messaging in Nodejs getting following error Error: Module version mismatch. Expected 46, got 67. at Error (native) at Object.Module._extensions..node (module.js:435:18) ...
0 votes
1 answer
487 views

Concurrent Tasks/Children Processes in ZeroRPC server

I am using a ZeroRPC server to implement a service. Some of the functions of the service are long CPU intensive tasks. Since I don't want the RPC call to block, they must be handled appropriately. ...
0 votes
0 answers
13 views

Can't return a value with ZeroRPC NodeJS [duplicate]

I am running in a problem with Javascript and the library ZeroRPC I created a server this way: Server: var zerorpc = require('zerorpc'); var server = new zerorpc.Server({ hello: function(name, ...
0 votes
1 answer
634 views

ZeroRPC performance. What is wrong with my Benchmark?

I wrote a simple script to try to figure out how does ZeroRPC perform in terms of throughput of messages, the server is a simple service, echoing a greeting. The code of the client is below, see that ...
4 votes
1 answer
916 views

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, ...
1 vote
2 answers
662 views

Failing to install ZeroRPC on Ubuntu

I have been trying to install ZeroRPC on Ubuntu. I have already installed ZeroMQ but while installing ZeroRPC these errors are showing up. I'm basically tying to run a python script in background from ...
5 votes
3 answers
13k views

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,...
0 votes
0 answers
292 views

-bash: zerorpc: command not found?

I have installed zerorpc using both pip and npm and both are sucessfull. but i am still not able to run zerorpc from cli. I have also tried installing with virutalenv but still no luck. it works well ...
0 votes
0 answers
199 views

node js zerorpc crashes on windows 10

I have a windows 10 machine. First I installed ZMQ 4.0.4 from a binary file, then I ran npm install --save zerorpc. The installed zerorpc version is 0.9.7. Then when I add the line: var zerorpc = ...
0 votes
0 answers
17 views

Whole webpage refreshes after invoking process

I am having this issue: https://youtu.be/Gqo_QpsKMNU. After doing a lot of debugging I realized that the problem is caused by the client.invoke process. client.invoke("inicializar", (error, res) =&...
0 votes
1 answer
366 views

python ZeroRPC heartbeat error on public IP

I run a ZeroRPC server and I can connect successfully with a client to the 127.0.0.1 IP. However when I use the public IP of the server to the client I get the following error: zerorpc.exceptions....
0 votes
1 answer
1k views

Streaming responses between node js server and python

i need an advice over how to set up streaming responses from node js server to python, from python back to node js. There are four files a) The node js script b) The serverConn.py script c) The ...
1 vote
1 answer
345 views

How to invoke Python connection sequentially in Javascript:Node.js

I'm trying to develop a connection between node.js file and Python code which I achieved successfully using zeroRPC. The problem arises when I try to run the node.js file, after executing each line of ...
0 votes
1 answer
559 views

Passing an instantiated object or initializing a class variable through a class method causes error in running server ZeroRPC

So I have this setup for my back-end, Python handling data-mining and communicates with the database (MongoDB through PyMongo), and Node.js/Restify invoking the Python methods through ZeroRPC. I have ...
2 votes
1 answer
1k views

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 ...
2 votes
0 answers
676 views

npm install ZeroRPC error

I cannot install the "ZeroRPC" package. npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'. I followed the Robert Kehoe tutorial without success. Messages : gyp ERR! build error ...
1 vote
1 answer
1k views

How do I run zeroRpc server in thread in python?

I have problem with launching zeroRPC server in python. I did it according to official example, but when I call run() method it works in endless loop, so my program can't continue after launching this ...
0 votes
1 answer
190 views

es6 object's getters, setters, and functions don't work with remote procedure calls (zerorpc)

I have the following class. class User { constructor( username ) { this._username = username; } get username() { return this._username; } } When I ...
1 vote
2 answers
2k views

Python/Node ZeroRPC heartbeat error

Im trying to run the Python server/node.js client HelloWorld example from the ZeroRPC website. All the revelant libraries seemed to have been installed correctly, but when running the example I get ...
0 votes
1 answer
504 views

zerorpc module throwing error in python 2.7

I'm using zerorpc module to communicate between node and python.Im able to call python script from node but not getting the passed arguments in python instead getting error as "TypeError: ord() ...
4 votes
1 answer
584 views

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 ...
0 votes
1 answer
7k views

node-gyp rebuild error while installing node modules

I tried installing zerorpc package on node using 'npm install zerorpc' and I am getting following error. The error is because node-gyp fails to rebuild. npm http GET https://registry.npmjs.org/...
0 votes
0 answers
668 views

Zerorpc throwing error on recv

I'm using Python 2.7.3 and Node.js 0.10.37 in Ubuntu 12.04 and using zerorpc to invoke python from node js.. My python runs at port 9004 and node client listens to 9004 port. While invoking a method ...
4 votes
1 answer
3k views

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 ...
0 votes
1 answer
625 views

django <-> node.js fast communication

I tried requests but it seems slow because of the tcp connection takes long (I don't know how to keep the socket open) I'm now trying zerorpc and it has notion of persistent connection. Django <-> ...
4 votes
1 answer
979 views

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 ...
0 votes
1 answer
606 views

zerorpc in multithreaded environment?

I'd like to use zerorpc as a internal service communication tool. It seems zeromq can be perfectly used in multithread environments. http://augustl.com/blog/2013/zeromq_instead_of_http/ However ...
1 vote
0 answers
2k views

ZeroRPC between nodejs and Python running only for the first time

We are trying to call a python module from NodeJS using ZeroRPC. Nodejs Code: app.get('/topList', function(req, res){ var zerorpc = require("zerorpc"); var client = new zerorpc.Client({ ...
2 votes
1 answer
1k views

Maintain sessions with zerorpc

How do I maintain different sessions or local state with my zerorpc server? For example (below), if I have a multiple clients, subsequent clients will overwrite the model state. I thought about each ...
4 votes
2 answers
3k views

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/...