Did you recently update some code or reinstall an older version or make some other environmental change? (Upgrade or downgrade Python, change virtual environment, anything?)
What happens if you try running it directly from the command line?
There have been a couple instances reported here of similar symptoms. While there hasn’t ever been one specific cause identified, two things have been recommended to try:
My next suggestion then would be to create a new virtual environment with a fresh install of all the packages, and use it instead of your existing venv to see if that helps.