@Amanda

I assume you either got it to work or have given up by now.  So, this is 
for others.
When you run the pip install with --no-binary option, it builds from a 
compressed archive (from source code).
I have built the grpc libraries from source before, and there are a ton of 
dependencies, so keep these in mind:

   - If you are building on an ARM system, it's going to take a long time.  
   It took 3-4 hours on my system.
   - Watch a separate tab with htop running, and monitor your memory usage
      - If memory runs out, your system will crash, but it will look like 
      its still running if you are remoted into it
         - In this case you can create a swap file (I use a 6GB swap file) 
         for extra memory during builds
      - My minimal hardware crashes, and even the local serial terminal is 
      unusable (have to reboot the system)
   - Periodically check df -h ("disk free" with human readable output)
      - Python will do the build in /tmp, which often does not have enough 
      storage allocated to complete the build
         - GRPC will be several GB by the time it's done
      - You can use "export TMPDIR=/home/yourID/someOtherDestination" to 
      get the build to take place somewhere else
   
Good luck everyone.

On Tuesday, August 9, 2022 at 11:26:21 AM UTC-4 Amanda Reich wrote:

> hello! I'm still having this issue and this solution has not worked. I get 
> the message "running setup.py install for grpcio", and it never completes 
> the installation. I've even let it run for a full day. are there any other 
> solutions? 
>
> On Monday, June 27, 2022 at 1:59:03 AM UTC-4 obinna _Ac wrote:
>
>> thanks, this worked for me
>>
>>
>> On Saturday, May 7, 2022 at 3:53:26 PM UTC+8 Iestyn Lloyd wrote:
>>
>>> I found this thread via Google, and have fixed for me, so thought i'd 
>>> share for future Googlers.
>>> I tried everything, including breaking everything and having to re-image 
>>> my Pi from a backup..
>>>
>>> 1. Uninstall the offending packages. 
>>> Using pip list, check your virtual env if you're using one, and remove 
>>> from there too. Remove from everywhere. Set it on fire.
>>>
>>> pip uninstall grpcio 
>>> pip uninstall grpcio-status 
>>>
>>> Then install an earlier version of grpcio and grpcio-status. Not sure if 
>>> something broke in a recent one? 
>>>
>>> pip install grpcio==1.44.0 --no-binary=grpcio 
>>> pip install grpcio-tools==1.44.0 --no-binary=grpcio-tools
>>>
>>> This then fixed the GLIBC_2.33 not found for me.
>>>
>>> On Friday, January 28, 2022 at 4:01:29 AM UTC Antonio Orozco wrote:
>>>
>>>> That is great to know. I think I tried installing that version of 
>>>> grpcio, but was not able to. When you get the chance, please post the 
>>>> commands you ran to downgrade/reinstall version 1.40.0, thanks.
>>>>
>>>> On Thursday, January 27, 2022 at 3:43:39 PM UTC-8 Richard Mejia wrote:
>>>>
>>>>> Mi problema sucedía con el raspbian buster recien descargado en 
>>>>> raspberry pi4, al momento de llamar a la biblioteca de google cloud 
>>>>> vision. 
>>>>> Encontré que tenia instalado la versión de grpcio==1.43.0, he degradado a 
>>>>> la version grpcio==1.40.0. El problema ha desaparecido.
>>>>>
>>>>> El jueves, 27 de enero de 2022 a las 17:35:59 UTC-5, Antonio Orozco 
>>>>> escribió:
>>>>>
>>>>>> No solution yet. If you really want to use python api package, you 
>>>>>> may need to install ubuntu or other supported os. Otherwise, use other 
>>>>>> package for C++, Go (those work for me).
>>>>>>
>>>>>> On Thursday, January 27, 2022 at 12:43:17 PM UTC-8 Richard Mejia 
>>>>>> wrote:
>>>>>>
>>>>>>>
>>>>>>> Hola, tenego el mismo problema, alguna solucion?
>>>>>>> El martes, 4 de enero de 2022 a las 9:33:52 UTC-5, Christopher 
>>>>>>> Connor escribió:
>>>>>>>
>>>>>>>> Hi,  
>>>>>>>>
>>>>>>>> I am running into the same issue with Google Cloud IOT API  on 
>>>>>>>> Raspberry PI 4.  Tried the above commands to re-install the grpcio 
>>>>>>>> modules, 
>>>>>>>> but still not working.  
>>>>>>>>
>>>>>>>>   File 
>>>>>>>> "/home/pi/.local/lib/python3.7/site-packages/google/cloud/iot_v1/__init__.py",
>>>>>>>>  
>>>>>>>> line 17, in <module>
>>>>>>>>     from .services.device_manager import DeviceManagerClient
>>>>>>>>   File 
>>>>>>>> "/home/pi/.local/lib/python3.7/site-packages/google/cloud/iot_v1/services/device_manager/__init__.py",
>>>>>>>>  
>>>>>>>> line 16, in <module>
>>>>>>>>     from .client import DeviceManagerClient
>>>>>>>>   File 
>>>>>>>> "/home/pi/.local/lib/python3.7/site-packages/google/cloud/iot_v1/services/device_manager/client.py",
>>>>>>>>  
>>>>>>>> line 25, in <module>
>>>>>>>>     from google.api_core import gapic_v1  # type: ignore
>>>>>>>>   File 
>>>>>>>> "/home/pi/.local/lib/python3.7/site-packages/google/api_core/gapic_v1/__init__.py",
>>>>>>>>  
>>>>>>>> line 16, in <module>
>>>>>>>>     from google.api_core.gapic_v1 import config
>>>>>>>>   File 
>>>>>>>> "/home/pi/.local/lib/python3.7/site-packages/google/api_core/gapic_v1/config.py",
>>>>>>>>  
>>>>>>>> line 23, in <module>
>>>>>>>>     import grpc
>>>>>>>>   File 
>>>>>>>> "/home/pi/.local/lib/python3.7/site-packages/grpc/__init__.py", line 
>>>>>>>> 22, in 
>>>>>>>> <module>
>>>>>>>>     from grpc import _compression
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> *  File 
>>>>>>>> "/home/pi/.local/lib/python3.7/site-packages/grpc/_compression.py", 
>>>>>>>> line 
>>>>>>>> 15, in <module>    from grpc._cython import cygrpcImportError: 
>>>>>>>> /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found 
>>>>>>>> (required by 
>>>>>>>> /home/pi/.local/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-arm-linux-gnueabihf.so
>>>>>>>>  
>>>>>>>> <http://cygrpc.cpython-37m-arm-linux-gnueabihf.so>)*
>>>>>>>>
>>>>>>>> Info of the Pi:
>>>>>>>>
>>>>>>>> OS Release notes:
>>>>>>>>
>>>>>>>> $ cat /etc/os-release
>>>>>>>> PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
>>>>>>>> NAME="Raspbian GNU/Linux"
>>>>>>>> VERSION_ID="10"
>>>>>>>> VERSION="10 (buster)"
>>>>>>>> VERSION_CODENAME=buster
>>>>>>>> ID=raspbian
>>>>>>>> ID_LIKE=debian
>>>>>>>> HOME_URL="http://www.raspbian.org/";
>>>>>>>> SUPPORT_URL="http://www.raspbian.org/RaspbianForums";
>>>>>>>> BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs";
>>>>>>>>
>>>>>>>> Debian version:
>>>>>>>> $ cat /etc/debian_version
>>>>>>>> 10.11
>>>>>>>>
>>>>>>>> Kernel version:
>>>>>>>> $ uname -a
>>>>>>>> Linux raspberrypi 5.10.63-v7l+ #1496 SMP Wed Dec 1 15:58:56 GMT 
>>>>>>>> 2021 armv7l GNU/Linux
>>>>>>>>
>>>>>>>> On Saturday, November 27, 2021 at 3:16:59 AM UTC-8 p.o.seidon wrote:
>>>>>>>>
>>>>>>>>> Had a look into my install script to be precise. There it reads:
>>>>>>>>> os.system( "sudo pip3 install -U grpcio --no-binary=grpcio")
>>>>>>>>> os.system( "sudo pip3 install -U grpcio-tools 
>>>>>>>>> --no-binary=grpcio-tools")
>>>>>>>>>
>>>>>>>>> Cheers
>>>>>>>>> Paul
>>>>>>>>> On Saturday, November 27, 2021 at 12:07:54 PM UTC+1 p.o.seidon 
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> sudo pip3 install grpcio -tools -U --no-binary=grpcio 
>>>>>>>>>> --no-binary=grpcio-tools
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Tuesday, October 26, 2021 at 5:14:36 AM UTC+2 Antonio Orozco 
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi,
>>>>>>>>>>>
>>>>>>>>>>> Running into the same problem, "--no-binary=grpcio" did not work 
>>>>>>>>>>> for me. What are the exact commands that you ran?
>>>>>>>>>>>
>>>>>>>>>>> ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version 
>>>>>>>>>>> `GLIBC_2.33' not found (required by 
>>>>>>>>>>> /home/antonio/.local/lib/python3.7/site-packages/grpc/_cython/
>>>>>>>>>>> cygrpc.cpython-37m-arm-linux-gnueabihf.so
>>>>>>>>>>>
>>>>>>>>>>> On Thursday, October 21, 2021 at 11:07:03 AM UTC-7 p.o.seidon 
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> --no-binary=grpcio
>>>>>>>>>>>> --no-binary=grpcio-tools
>>>>>>>>>>>>
>>>>>>>>>>>> Worx. Thank you so much!
>>>>>>>>>>>>
>>>>>>>>>>>> Cheers Paul
>>>>>>>>>>>>
>>>>>>>>>>>> On Wednesday, October 20, 2021 at 8:15:44 PM UTC+2 
>>>>>>>>>>>> rbel...@google.com wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> If the precompiled binaries do not meet the constraints of 
>>>>>>>>>>>>> your runtime environment, you can also build from source using 
>>>>>>>>>>>>> pip install 
>>>>>>>>>>>>> --no-binary. Alternatively, you could check out the artifacts 
>>>>>>>>>>>>> hosted at piwheels <https://www.piwheels.org/project/grpcio/>.
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Wednesday, October 20, 2021 at 4:56:36 AM UTC-7 p.o.seidon 
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> I use gRPC in my program, where it reads
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> import grpc
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> which calls 
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> from grpc import _compression
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> which calls 
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> from grpc import _compression
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> which causes 
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> builtins.ImportError: /lib/arm-linux-gnueabihf/libc.so.6: 
>>>>>>>>>>>>>> version `GLIBC_2.33' not found (required by 
>>>>>>>>>>>>>> /usr/local/lib/python3.7/dist-packages/grpc/_cython/
>>>>>>>>>>>>>> cygrpc.cpython-37m-arm-linux-gnueabihf.so)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I am on a RasPi 4 / 8 GB, Raspberry OS / Buster, installed a 
>>>>>>>>>>>>>> few days ago. I installed gRPC by issueing
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> sudo pip3 install grpcio -U
>>>>>>>>>>>>>> sudo pip3 install grpcio -tools -U
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Issueing ldd --version yields
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ldd (Debian GLIBC 2.28-10+rpt2+rpi1) 2.28
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> What am I supposed to do now?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Cheers Paul
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>

-- 
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/ea6569d2-6d09-4087-b0c1-36d4b43d8db9n%40googlegroups.com.

Reply via email to