HA core installation on Raspberry PI 4 (debian11) getting many libc.so.6: version `GLIBC_2.34' errors

Dear Community, this is my first post.

I read here a lot and found a lot of solution for the problems I faced.
But now I cannot get rid of a certain problem.

running hass interactively for the first time, I see the webinterface reacting, I could setup a user and set the
location, but I see lots of errors and I cannot login. So the installation is not complete and correct on my OS.

The error I see is this:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

    https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  * The Python version is: Python3.11 from "/srv/homeassistant/bin/python3"
  * The NumPy version is: "1.26.0"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.34' not found (required by /srv/homeassistant/lib/python3.11/site-packages/numpy/core/_multiarray_umath.cpython-311-arm-linux-gnueabihf.so)

I have a raspberry pi 4 and use it for several topics already.
Thats why I cannot flash the HA-OS and only use the hardware for HA.
I need to install it on top of the existing os.

First Problem I solved by manually install python 3.11.6 as raspberry PI4 os servers only python 3.9.

I face a lot of missing dependencies that I installed and recompiled python already 4 times to get everything in python included:

apt install libsodium-dev libsodium23 libavformat58 libavformat-dev libopenblas-base libopenblas-dev libopenblas0 libsqlite3-dev sqlite3 sqlite

I manually installed in /usr/local:

  • tiff-4.6.0.tar.gz
  • libffi-3.4.4.tar.gz
  • Python-3.11.6.tgz

I have created all these steps according:

sudo useradd -rm homeassistant -G dialout,gpio,i2c
sudo mkdir /srv/homeassistant
sudo chown homeassistant:homeassistant /srv/homeassistant
sudo -u homeassistant -H -s
cd /srv/homeassistant
python3 -m venv .
source bin/activate

my .bashrc

  • is refereing to python3 in /usr/local/bin
  • is refering to rust and cargo by sourcing /home/homeassistant/.cargo/env
    (installed it by:
    curl --proto ‘=https’ --tlsv1.2 -sSf https://sh.rustup.rs | sh
    )
  • LD_CONFIG_PATH is added to /usr/local/lib

The OS is limited to libc.so.6 in version GLIBC_2.31

uname -a
Linux raspberry-openhab 5.15.84-v7l+ #1613 SMP Thu Jan 5 12:01:26 GMT 2023 armv7l GNU/Linux

cat /etc/issue
Raspbian GNU/Linux 11 \n \l

I have recompiled every installation of homeassist with pip by not using the binaries. So I installed

  • numpy
  • bcrypt
  • cffi
  • pycparser
  • cryptography==41.0.4
  • homeassistant==2023.11.1

Example:

pip install homeassistant==2023.11.1 -I --force-reinstall --ignore-installed --compile --no-binary :all:

By this all I could solve most of the missing things (blaslib, sqlite, libtiff, etc)

But now as I recompiled everything I still with installing numpy by:

pip install numpy -I --force-reinstall --ignore-installed --compile --no-binary :all:

I get this error:

/lib/arm-linux-gnueabihf/libc.so.6: version GLIBC_2.34’ not found (required by /srv/homeassistant/lib/python3.11/site-packages/numpy/core/_multiarray_umath.cpython-311-arm-linux-gnueabihf.so)`

Any Ideas how to solve that?

Alexander Bruns

Raspberry Pi OS should be updated to Debian 12 Bookworm level (https://www.raspberrypi.com/software/operating-systems/), so maybe it would just be easier to update the entire system.

1 Like

did you get any solutIon to your problem?

Hi Alex, I experienced the same in debian 11, and what worked for me is building numpy 1.26.0 from source, using setuptools. there was a change in numpy 1.26.0 that uses meson which fails with GCC > 8.4 required, my gcc is 8.3