ImportError: cannot import name 'ValidationFailure' from 'validators.utils'

I downloaded the gsheets_connection and wrote a small script, i keep getting following error:

ImportError: cannot import name ‘ValidationFailure’ from ‘validators.utils’ (C:\Users\hemli\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\validators\utils.py)

Any clues on what it can be?

Hey @koop46,

Can you share your GitHub repo/a runnable code snippet so we can try to reproduce this error?

Try to install pip install validators==0.20.0

Hi, I had the same problem. The issue is that new versions of validators use ValidationError while your version of gsheets uses the old name ValidationFailure. If you re install gsheets and updated validators to 0.22.0, it should all work and the new name ValidatioError should be there