12
If you are using PyCharm, the issue might be solved by enabling Gevent compatibility. You can do this by navigating to Settings/Preferences > Build, Execution, Deployment > Python Debugger
and then ticking the checkbox Gevent compatible
.
Source:stackexchange.com