For me it was a python versioning issue. When I ran the code with python3.10 I got the error however, when using python3.8 everything worked fine. So my advice is just be wary of the versions your repository/code relies on.
python3.10
python3.8