ModuleNotFoundError: No module named 'gitdb.utils.compat'

what version do you have ?
if you don’t know write this command
bench version

there is threads about simller issue here maybe help