Problems with my codes that do not work any more

On

TypeError: BoundingBoxTree.__init__() takes 2 positional arguments but 3 were given

see

also discussed in

just a few days ago.

On

[harma-ThinkStation-P620:2172546] [ 5] /lib/x86_64-linux-gnu/libhdf5_openmpi.so.103(H5check_version+0x21)[0x7f670c43f6d1]
[harma-ThinkStation-P620:2172546] [ 6] /home/harma/.local/lib/python3.10/site-packages/h5py/h5f.cpython-310-x86_64-linux-gnu.so(+0x77d0)[0x7f65fb0da7d0]

it seems to me that you are using libhdf5_openmpi.so.103 from debian/ubuntu. You are better off using h5py from debian/ubuntu too, rather than pip installing a (possibly incompatible version) in $HOME/.local.