What is the current choice for doing RPC in Python?

Actually, I've done some work with Pyro and RPyC, but there is more RPC implementation than these two. Can we make a list of them? Native Python-based protocols: PyRo4 (Python Remote...

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

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

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

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

How can I communicate between running python code and nodejs

I'd like to have some python code running and communicating with a nodejs express server. So far, I can get my nodejs server to call python functions via one of two mechanisms, either to spawn a...

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

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

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

Transform Scapy Packet to JSON

I am writing a Python Backend for a Pcap analysis Tool. The communication with the (electron) Frontend works via zerorpc. Now I need to send a list of Packets from the pcap to the Frontend and...

Multiple flask processes with a shared resource

Multiple flask processes (managed by gunicorn) serve the frontend and have to use a shared resource: A data structure that allows reads and updates and therefore needs to be protected by a simple...

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

Push data to a distant client from a python thread running on a server

I am trying to implement this simple workflow: a python script runs a daemon thread. This thread consume a multi-threaded queue, and make some heavy computations when some data is ready, the...

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

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

Import error when dockerizing a project using zerorpc in python

I'm migrating a project to python on docker for a better "facility" for development. Ut's a project that runs with python 2.7, Django 1.6.8 and several RPC dependencies I find myself with a crash...

Updating Django version to 1.10

I'm taking over an old project under Django for which I don't know the basic version to use, on my server I have 1.9.9, I tried to build it via docker, but without success... So I try to migrate...

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

Electron child window doesn't want to call its own js script

I'm very much not a javascript person, but I've been making an Electron GUI, and I'm getting confused by why I can't seem to make a child browser window call its own js. I have a main.js that does...

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

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

unable to install zerorpc on windows 10 using npm

First of all, I've checked https://stackoverflow.com/questions/13395458/how-to-install-zerorpc-python-on-windows, but couldn't find an answer to my question. I'm trying to install zerorpc to use...

Cannot load zmg.node after webpack bundle

I'm using the zerorpc package within an Electron-Vue project as a client to communicate with a remove server. Before using webpack to bundle the project, I was able to call these functions both in...

Libpostal docker does not run on AWS

I am using libpostal for address parsing.Here is the git link: https://github.com/pasupulaphani/libpostal-docker This docker image runs perfectly fine on my local machine but once I try and run it...

How to send RxPy data stream to frontend javascript

I'm trying to get python ReactiveX stream (using RxPy library) to be sent to a javascript on Web UI component, but I can't seem to find a way to do so. Also, I might need to get the data stream...

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

Problem creating a python windows executable with pyinstaller - creates, runs but quits immediately

I have the sample python code below. I create a windows executable app using PYINSTALLER. When it runs, it immediately quits. What should I be doing? I also tried a basic (default) flask app -...

Asynchronous IPC between Node.js/Electron and Python

I try to build a GUI for given Python code using Electron. The data flow is actually straight-forward: The user interacts with the Electron app, which sends a request to the Python API, which...

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