Symbol not found in flat namespace (_PyErr_Clear) when build ParaView with python

The binaries should have libpython3.9.dylib in their load commands. Do you see them if you run:

otool -l bin/paraview

Same with related binaries.