Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'gthread' not added to supporded workers. #1011

Closed
vlad-dragos opened this issue Apr 21, 2015 · 4 comments
Closed

'gthread' not added to supporded workers. #1011

vlad-dragos opened this issue Apr 21, 2015 · 4 comments

Comments

@vlad-dragos
Copy link
Contributor

I'm trying to use the 'gthread' worker however I'm getting this error:

File "/usr/local/lib/python3.4/site-packages/gunicorn/util.py", line 131, in load_class
    section, uri)
  File "/usr/local/lib/python3.4/site-packages/pkg_resources/__init__.py", line 519, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2629, in load_entry_point
    raise ImportError("Entry point %r not found" % ((group, name),))
ImportError: Entry point ('gunicorn.workers', 'gthread') not found

Upon investigation I found that the gthread worker is not included ingunicorn.workers.SUPPORTED_WORKERS.

Is this intended or it's a bug?

@berkerpeksag
Copy link
Collaborator

Looks like a bug to me. Relevant commit is a397d90. Feel free to send a PR. Thanks!

@vlad-dragos
Copy link
Contributor Author

Will do a push request later tonight. :)

@vlad-dragos
Copy link
Contributor Author

Should I add a check for Python3?

@berkerpeksag
Copy link
Collaborator

No, gthread should work in both Python 2 and Python 3 as far as I know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants