GLIBC_2.33 not found in raspberry pi python - python

Error Trace:
ImportError: /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)
Scenario:
I'm using google cloud vision api to detect text in images. The program works fine on laptop but gives the above mentioned error when ran in raspberry pi. I've searched a lot but couldn't find any working solution. I'd really appreciate if any one could let me know how to solve this.

Uninstalling grpcio and grpcio-status (mine had version 1.46.3 installed for both) and installing version 1.44.0 solved it for me:
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
You can check your installed versions with pip list.
Note: installing grpcio and grpcio-status takes a really long time. About 15 to 20 minutes each.
Originally posted here: https://groups.google.com/g/grpc-io/c/vjbL3IdZ2Vk/m/EcKSeD4eAgAJ

GLIBC and the kernel of the OS go hand-in-hand; you basically need a newer version of your OS, if you need a more recent GLIBC
the version of the GLIBC can be quickly found out with the following command:
ldd --version

Have you tried building glibc 2.33+ alongside the glibc that come in raspberry pi? Something along this answer and comments to use buildroot

Related

Error occurred when installing package ‘Cartopy’

I have installed all libraries we need on this project except ‘’ Cartopy library ‘’ in Pycharm. After some research I thought it might be due to the python version so I tried dowloading the Cartopy Library in about 5 different Python versions and again the Cartopy Library is not installed.
After some more research, I thought of changing the version of Pycharm. I dowload version of 2020 and 2021 of Pycharm. Unfortunately i still got the same error :
“Error occurred when installing package ‘Cartopy”.
enter image description here
I have encountered a similar issue with another package and the problem wasn't in the IDE but the OS which in my case was mac. I had to install an ubuntu in parallel and migrate the whole project there and it ran perfectly.
I suggest you use conda instead of pip and if the issue didn't go away check the compatibility with your OS and if this is the issue you can simply install a virtual machine.

Scipy not installing on Pycharm

I have been trying to install SciPy from PyCharm for some time. I have tried using the in-built package installer, however it would fail. Also I tried installing as a .whl and running as
Pip install scipy-1.7.1-cp37-cp37m-macosx_10_9_x86_64.whl
and that would fail too. Currently unsure where to move forward from here. I use Windows 10 and am currently using Python version 3.10 64 bit. The error message that is coming up is
ERROR: scipy-1.7.1-cp37-cp37m-macosx_10_9_x86_64.whl is not a supported wheel on this platform.
This may be caused because Scipy is not supporting Python 3.10 (yet). scipy-1.7.1-cp37-cp37m-macosx_10_9_x86_64.whl is the first wheel that appears on PyPI. I suppose that PyCharm got confused, and tried to find a compatible wheel.
You have to wait for a compatible release from the Scipy developers (seems like they are waiting for some issues to be resolved). In the meantime, you can try a lower Python version (what about Python 3.9?)

Cython_VST_loader not installing through PIP

I am using anaconda3 with Python Version 3.8.
I followed the installation instructions for Cython VST loader per the package’s website (https://pypi.org/project/cython-vst-loader/).
This entailed:
Updating Anaconda compiler (from https://anaconda.org/conda-forge/compilers , 2nd line of code worked)
PIP installing ‘make’ via Anaconda command line
Not sure how to install/update headers, this may or may not be causing the error.
When I attempt to pip install cython_vst_loader in the command line, I receive the following deluge of errors.
Any help or resources on how to address this problem would be greatly appreciated, thank you!
With the new 0.3.6 version of the loader (released 15 minutes ago), Windows is supported and binaries are provided. Also, project goals are clarified in Readme, you might want to check them as well https://github.com/hq9000/cython-vst-loader/blob/master/README.md
You can install the new version normally with pip.

Autokeras installation with Anaconda

I have problems with installing Autokeras with Anaconda.
I downgraded python to 3.6
I installed pytorch and downgraded to
version 0.4.1
I downgraded numpy to 1.14.5
I installed visual studio C++ build tool
But now I get the error that tensorflow will require max numpy version 1.14.5. but autokeras will upgrade numpy to 1.15.4 and it failed to build the wheel for lws
After every step ther was an error.
Is there a simple, straight forward way to install Autokeras on Annaconda (Win)?
Thanks for your help
I have Windows 10, Anaconda 2019.10 and Python 3.7.5. In my case, I get the error ERROR: No matching distribution found for torch==1.0.1.post2 (from autokeras) on Windows 10 when trying to pip install autokeras as indicated by the official documentation.
Then I try to get the source code from https://github.com/keras-team/autokeras and run python setup.py install. It successfully installs autokeras for me.
I had the same issues, using Windows 10 Pro. I installed VMware Workstation 15 Player, installed lubuntu as the guest OS, installed anaconda onto that, created a conda virtual environment, and was able to install autokeras as per https://autokeras.com/start/ . The autokeras installation gave a numpy version error, but seems to work. This might not be the answer you are looking for.
Another answer you might not be looking for is to use Docker, as per https://autokeras.com/docker/ . Once I'd changed "$(pwd)":/app to "$(pwd):/app" in the example, this also seems to work.

SciPy can't install old version Windows 10

I'm trying to install an older version of SciPy (either 0.16.1 or 0.17.0), but when I try to use pip I get the result:
pip install scipy==0.16.1
I get the following message
Failed building wheel for scipy
So I found the .whl file here https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy but the problem is that the version here is 1.0.1, and I can't seem to find any older ones, even in the SciPy website (there are for linux and mac)
.
.
PS.
I need to use either of this versions because I'm trying to run Theano on a GPU, and the tutorial provided here http://deeplearning.net/software/theano/install_windows.html says this version is a requirement if there is any tutorial that is better and more up-to-date I would be appreciated

Categories