gunicorn icon indicating copy to clipboard operation
gunicorn copied to clipboard

Module geventwebsocket Not Found Using Gunicorn3

Open ecda909 opened this issue 4 years ago • 0 comments

Hi, I'm running gunicorn on my prod server using Ubuntu 18.04 and I'm running with the following:

gunicorn3 -b 0.0.0.0:8080 -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker -w 1 app:app

If I use just:

gunicorn -b 0.0.0.0:8080 -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker -w 1 app:app

Everything works fine, but it's only with Gunicorn3 that I see the error:

`Error: class uri 'geventwebsocket.gunicorn.workers.GeventWebSocketWorker' invalid or not found:

[Traceback (most recent call last): File "/usr/lib/python3/dist-packages/gunicorn/util.py", line 134, in load_class mod = import_module('.'.join(components)) File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 971, in _find_and_load File "", line 941, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 994, in _gcd_import File "", line 971, in _find_and_load File "", line 941, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 994, in _gcd_import File "", line 971, in _find_and_load File "", line 953, in _find_and_load_unlocked ModuleNotFoundError: No module named 'geventwebsocket' ]`

I think this is an error that should be addressed if not already.

ecda909 avatar Mar 11 '20 01:03 ecda909