Dvc init gives error

I am trying dvc in a tutorial from dagshub
The moment I give dvc init I get the error

ERROR: Unexpected error: cannot import name 'umask' from 'dvc_objects.fs.system'

I googled it but could not find anything useful

What can this mean and how can I solve it?

Turns out I had to do pip install --upgrade dvc