After extensive troubleshooting, the solution that ultimately worked for me was switching to Python 3.10 or 3.9. To implement this fix, ensure your workspace is configured to use Python 3.10 as the interpreter (this can typically be adjusted through your IDE/editor settings). Updating the interpreter version should resolve compatibility issues and allow your code to run properly.