-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Description
Installing gunicorn 19.4.5 on OSX in a python 2.7 virtualenv yields the following error when I try to run it:
Error: class uri 'gunicorn.workers.gthread.ThreadWorker' invalid or not found:
[Traceback (most recent call last):
File "/src/.venv/lib/python2.7/site-packages/gunicorn/util.py", line 142, in load_class
mod = import_module('.'.join(components))
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/src/.venv/lib/python2.7/site-packages/gunicorn/workers/gthread.py", line 37, in <module>
""")
RuntimeError:
You need to install the 'futures' package to use this worker with this
Python version.
]
Installing futures
with pip install futures
seems to fix the problem. There's no explanation of this in the README though, it just says pip install gunicorn
is enough. Did I miss a step, or is there a missing dependency that's not being pulled in on install?