[grpc-io] Re: Consuming gRPC Server Reflection from C++ Client (that happens to also offer a Server Reflection)

2022-12-06 Thread WD J
I face the same problem, and the scenoria is Binary A use the 
grpc++_reflection.a and libB.so first not link the grpc++_reflection.a, 
build the binaryA, and libB.so recompile with linking the 
grpc++_reflection.a, then binaryA fatal with the same error information.

在2019年2月12日星期二 UTC+8 23:31:29 写道:

> Upon further debuging it appears the conflict is with 
> /src/proto/grpc/reflection/v1alpha/reflection.pb.cc being included 
> twice.  Which makes sense given the error code.  What I'm not understanding 
> is why that is considered a fatal error.
>
> And of course if there's anyway around it.
>
>
>
> On Monday, February 11, 2019 at 5:01:03 PM UTC-6, Alex Stark wrote:
>>
>>
>> This might seem like an odd pattern, but I'm looking to retrofit an 
>> existing client/server framework with gRPC.  That has led me to a question 
>> and an issue.
>>
>> FIrst, the question.  The "Use Server Reflection in a C++ Client" secion 
>> of the Server Reflection Tutorial 
>>  
>>  
>> mentions using the grpc::ProtoReflectionDescriptorDatabase class as the 
>> basis of that interaction.  That seems to require me to link 
>> in libgrpc++_proto_reflection_desc_db.a which as far as I can tell has no 
>> "install" option in the makefile provided.  Is staticlly linking it from 
>> the grpc/lib/opts directory the recomended pattern or am I missing 
>> something?
>>
>> To try things out I went ahead and linked it into my client/server 
>> framework library directly.  However, from there I'm having issues getting 
>> my test server to startup when linking in both my client/server dynamic 
>> library (that statically links libgrpc++_proto_reflectin_desc_db.a) 
>> and libgrpc++_reflection.so.  The error in question is this:
>>
>> [libprotobuf ERROR google/protobuf/descriptor_database.cc:58] File 
>> already exists in database: 
>> src/proto/grpc/reflection/v1alpha/reflection.proto
>> [libprotobuf FATAL google/protobuf/descriptor.cc:1358] CHECK failed: 
>> GeneratedDatabase()->Add(encoded_file_descriptor, size):
>> terminate called after throwing an instance of 
>> 'google::protobuf::FatalException'
>>   what():  CHECK failed: 
>> GeneratedDatabase()->Add(encoded_file_descriptor, size):
>>
>> I'm planning to continue digging in to see if I can figure out why that's 
>> an issue, but the comment foujnd in descriptor.cc around this exception 
>> throw isn't initial obvious to me (as a novice) what exactly I might be 
>> doing wrong.  Hoping the community might have some insight into whether or 
>> not those 2 libraries are inherently incompatable inside the same process.  
>> As far as I can tell I don't even get to the creation of the actual 
>> ProtoReflectionDescriptorDatabase construction the error happens while the 
>> process is starting up.
>>
>> Thanks in advance for any advice on those topics.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/825f4674-0112-45a7-99ec-e662df27d4ebn%40googlegroups.com.


[grpc-io] Re: ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found

2022-12-06 Thread Anton Toernblom
I was having the issue inside a docker container running on a Raspberry pi 
4 32bit OS.

It worked if i ran it with -it bash then did your instructions. Fails with 
a massive  error log  when added this to the 
dockerfile however,


FROM python:3.11
WORKDIR /usr/src/app
COPY main.py .

RUN apt-get update

RUN export PATH="$HOME/.local/bin:$PATH" && \
pip uninstall grpcio && \
pip uninstall grpcio-status && \
pip install grpcio==1.44.0 --no-binary=grpcio && \
pip install grpcio-tools==1.44.0 --no-binary=grpcio-tools



On Wednesday, 6 July 2022 at 18:50:53 UTC+2 Rolando Medina wrote:

> I was having the same issue with a Raspberry 4 running Raspberry Pi OS 32 
> bits 
>
> The solution that worked for me is adding /home/user/.local/bin to PATH. 
> For this you need to add the following line to your shell config file 
> (.bashrc or .zshrc)
> *export PATH="$HOME/.local/bin:$PATH"*
> After doing this, run *source ~/.zshrc* or *source ~/.bashrc*
> This because apparently pip installs packages in a different source that 
> is added to PATH by default
>
> After doing this the problem was still happening so I found this post 
> https://groups.google.com/g/grpc-io/c/vjbL3IdZ2Vk/m/EcKSeD4eAgAJ
> According to my research the default installation of the OS manages a 
> different version of GLIBC that is a dependency of grpcio so what finally 
> fixed it for me was uninstalling grpcio and installing it again with the 
> following commands
> 1. *pip uninstall grpcio*
> 2. *pip uninstall grpcio-status*
>
> 3. *pip install grpcio==1.44.0 --no-binary=grpcio*
> 4. *pip install grpcio-tools==1.44.0 --no-binary=grpcio-tools*
> NOTE: Te installation of each package takes a considerable amount of time 
> (15-20 min) 
>
> This fixed the issue for me. I'm sure that adding the ~/.local/bin to PATH 
> was also necessary to make it work
>
> Hope it helps
> El jueves, 2 de junio de 2022 a la(s) 19:44:35 UTC-5, Johnny Oshika 
> escribió:
>
>> This is a real shame. I've got this Raspberry Pi OK:
>>
>> *Raspbian GNU/Linux 11 (bullseye)*
>>
>> GLIBC version: 2.31
>>
>> google-cloud-firestore worked fine before I flashed my SD card and 
>> installed the latest Raspberry Pi OS. I don't know which version of 
>> Raspberry Pi OS I had installed before, but now I'm wondering 
>> if google-cloud-firestore will work again if I roll back  the OS to an 
>> older version.
>>
>> Has anyone gotten this working?
>> On Sunday, February 13, 2022 at 8:13:48 AM UTC-8 Anurag Gorkar wrote:
>>
>>> Hi,
>>> I am Anurag. I was working on  a project involving a Firestore data-base 
>>> and raspberry pi. I successfully installed firebase_admin by using "pip 
>>> install firebase_admin". Typing "import firebase_admin" or "from 
>>> firebase_admin import credentials" works just fine. However typing "from 
>>> firebase admin import firestore" gives the "ImportError: 
>>> /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found" error.
>>>
>>>
>>> On Sunday, 9 January 2022 at 18:42:44 UTC+5:30 Inovosystems Software 
>>> company wrote:
>>>
 same issue here for hrs  any work around that does not involve 
 reinstalling OS 

 On Thursday, 02 December 2021 at 19:19:39 UTC+2 Antonio Orozco wrote:

> This was not resolved. I just re-installed Ubuntu on a 
> RaspberryPi instead. I noticed that there's a new version of Debian for 
> the 
> RaspberryPi (Based on Debian version 11-bullseye), it might work now 
> but I have not tried.
> Unfortunately, it seems like Google PubSub python package is just 
> incompatible with *Debian GLIBC 2.28*
>
> On Wednesday, December 1, 2021 at 11:20:10 AM UTC-8 Dayton Turner 
> wrote:
>
>> Same, I'm also just running into this and looking for a solution too! 
>> please let us know if you figure it out!
>>
>> On Tuesday, 30 November 2021 at 21:15:53 UTC-8 jeremy scott wrote:
>>
>>> I'm having the same exact issue. Did this issue ever get resolved?
>>>
>>>
>>> On Wednesday, October 27, 2021 at 8:44:54 PM UTC-7 Antonio Orozco 
>>> wrote:
>>>
 This is the first time trying to use google pub/sub python package.

 Command that I used to install:
 python3 -m pip --no-cache-dir install grpcio

 I tried many other ways, all yield the same result. "sudo pip3..", 
 "sudo pip...", "pip3 ...", "pip..."
 It works perfectly on Ubuntu 20.04.
 Looking in indexes: https://pypi.org/simple, 
 https://www.piwheels.org/simple
 Collecting grpcio
   Downloading 
 https://files.pythonhosted.org/packages/9e/68/721d94afa6fea6c559b1d795d2bae0147b3db9b43f4069d392371a2b8cab/grpcio-1.41.1-cp37-cp37m-linux_armv7l.whl
  
 (47.9MB)
 100% || 48.0MB 12.8MB/s
 Requirement already satisfied: six>=1.5.2 in 
 

[grpc-io] GRPC and Protobuf

2022-12-06 Thread Developer
How to setup GRPC and Protobuf in Swift for messaging like sending and 
receiving? and if there is any useful resource please share it.

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/2f5caeab-a1ab-49dd-abbc-9d99e4500c41n%40googlegroups.com.