Questions tagged [grpcio]

31 questions
38
votes
10 answers

How can I install GRPCIO on an Apple M1 Silicon laptop?

Every time I try to install a pip package with GRPCIO as a dependency inside a .direnv project I get a build failure due to my architecture being arm64. How can I work around this while waiting for the GRPCIO crew to release an update? Using…
reka18
  • 7,440
  • 5
  • 16
  • 37
3
votes
1 answer

`pip3 install grpcio` fails on Alpine Linux

I use Alpine Linux by Docker on my Mac (12.3.1) and try to run pip3 install grpcio but this command always fails. I tried info here, but nothing worked until now. Unable to install grpcio using pip install grpcio --> Upgrade to the latest…
dmjy
  • 1,183
  • 3
  • 10
  • 26
2
votes
1 answer

"Connection reset by peer" in python gRPC

We are sending multiple requests to a gRPC server. But every once in a while we come across "Connection reset by peer" error with UNAVAILABLE status. GRPC server: NestJS Client: Python Python version: 3.8 gRPCio version: 1.50.0 Code: # Connect…
AminAli
  • 85
  • 7
2
votes
1 answer

Install grpcio via pip: "legacy-install-failure"

I want to install grpcio with pip(version 1.35). But I get this error: note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure × Encountered error while trying to install package. ╰─>…
parsarezaee
  • 21
  • 1
  • 4
2
votes
0 answers

Problem installing Django Tech Stack on Apples M1

I just got a new Mac with an M1 chip, but I have problems getting our stack to run. Its a django project, with a few dependencies attached. Most of them being: grpcio…
TLListenreich
  • 103
  • 1
  • 7
2
votes
1 answer

Achieve relative path in generated module imports with grpcio-tools

I am generating modules from two different protos, which have some common proto file names. From protos-1 -> python3 -m grpc_tools.protoc --proto_path=p1/protos/ --python_out=. --grpc_python_out=. p1/protos/common/*.proto python3 -m…
user7630232
  • 135
  • 1
  • 3
  • 16
1
vote
0 answers

Grpc call give an error: module 'grpc' has no attribute 'experimental'

When calling my server for a type of message, I got the following error: Exception calling application: module \'grpc\' has no attribute \'experimental\', grpc-status: 2};. This error happened right after the server received the call. The service is…
Adrien
  • 11
  • 1
1
vote
0 answers

Problem with grpcio [process didn't exit successfully: "...\target\debug\build\grpcio-sys-9aa662d3a4136772\build-script-build` (exit code: 101)"]

I ran into a project build issue with the following output: error: failed to run custom build command for `grpcio-sys v0.12.1+1.46.5-patched` Caused by: process didn't exit successfully:…
1
vote
0 answers

pip install tensorflow failed due to grpcio

I tried to install tensorflow on my local by running pip install tensorflow, and getting following error. cc1: warning: command line option '-std=c++14' is valid for C++/ObjC++ but not for C creating None creating None/tmp creating…
Gooder
  • 11
  • 3
1
vote
1 answer

How to install grpcio on MacOS 13 with M1?

I am trying to install grpcio v1.47.0 using pip and Python v3.8.13 on MacOS v13.0 with M1 Pro but it fails with errors as below: clang -w -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall…
Denis Sologub
  • 7,277
  • 11
  • 56
  • 123
1
vote
1 answer

Issues installing python typedb-client on macOs m1 architecture

When I try to install the python typedb-client using pip, I get several errors concerning grpcio: Building wheels for collected packages: grpcio Building wheel for grpcio (setup.py) ... error error: subprocess-exited-with-error × python…
hkuich
  • 129
  • 1
  • 8
1
vote
0 answers

pip install tensorflow fails

I'm on MacOS Mojave Version 10.14.6, 2.8 GHz Intel Core i7 processor. Python version: 2.7. "pip install tensorflow" keeps failing for me. The error seems to be: "ERROR: Failed building wheel for grpcio". I have tried resolving this by installing…
Ying Ku
  • 33
  • 2
1
vote
1 answer

Installing tensorflow 1.14.0 on python2.7 on Ubuntu 20.04

I'm trying to install tensorflow 1.14.0 on my Ubuntu (20.04 LTS) machine. I need the python version 2.7. The cmd line I'm trying to execute is $ sudo python2.7 -m pip install tensorflow==1.14.0 but it seems there is an issue with "grpcio". The…
1
vote
2 answers

Grpcio fails installation for Tensorflow 2.5 on arm64 Apple Silicon

I'm following the instructions here: https://developer.apple.com/metal/tensorflow-plugin/ and having issues installing grpcio. When I try python -m pip install tensorflow-macos I get: AssertionError: would build wheel with unsupported tag ('cp39',…
Hemmed
  • 35
  • 1
  • 5
0
votes
0 answers

Scaling a Python async gRPC Server

When creating an async gRPC server, we can scale the number of Python threads with the first argument: import grpc from concurrent import futures server = grpc.aio.server(futures.ThreadPoolExecutor(max_workers=2)) Given the fact that the GIL…
1
2 3