Undefined symbol during setup of recorder

Hi,
updated Raspberry pi3 to bullseye and also HA to current 2023-4-5 using HA in a venv.
Also updated Python to 3.11.2.
Before i had a very outdated version of HA from last year.

Now during startup i get the following error

[homeassistant.setup] Setup failed for recorder: Unable to import component: /usr/local/lib/python3.11/lib-dynload/_sqlite3.cpython-311-arm-linux-gnueabihf.so: undefined symbol: sqlite3_create_window_function

and

ERROR (MainThread) [homeassistant.setup] Setup failed for analytics: Unable to import component: /usr/local/lib/python3.11/lib-dynload/_sqlite3.cpython-311-arm-linux-gnueabihf.so: undefined symbol: sqlite3_create_window_function

Created a new venv and installed HA in it.
No problems during setup and installation of dependencies and so on.
Could’nt find something about that kind of problem.

Also tried with Python 3.11.3 and a manual install with exactly the same result.

configured python with “–enable-optimizations”

and then did “make -j4” and “sudo make install”

Did the same with previous version and it always worked.
Also did the same with another pi with HA and everything works there.

I am quite out of ideas now

Hi
has this ever been solved?

Thanks