I got the same error and all I did was to shift from my python 3.9.0 to python 3.10.11 and it worked!