There is a problem with the runtime environment, probably the PYTHONPATH.
Are you using Conda for the .venv and for tool dependency resolution? If not, that is the first adjustment to make. Using a Python .venv for a Galaxy installation will lead to all sort of problems.
The minimum is 3.7 and I’m not sure which others should be avoided or if there is an upper limit. Let’s see if someone else answers about that. Meanwhile, you can check and let us know what happens on your side.
XRef: