That’s what I thought. You are missing required python3 dependencies.
I can think of at least two approaches to tackle the problem of missing dependencies:
– use python3’s pip to install docker-compose: python3-pip install docker-compose
– install the os package from the fedora upstream repo using sudo dnf -y install docker-compose, then update to the latest version with the commands your used before.