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

Comments

Projects
None yet
2 participants
@vlad-dragos
Contributor

vlad-dragos commented Apr 21, 2015

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

This comment has been minimized.

Show comment
Hide comment
@berkerpeksag

berkerpeksag Apr 21, 2015

Collaborator

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

Collaborator

berkerpeksag commented Apr 21, 2015

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

@vlad-dragos

This comment has been minimized.

Show comment
Hide comment
@vlad-dragos

vlad-dragos Apr 21, 2015

Contributor

Will do a push request later tonight. :)

Contributor

vlad-dragos commented Apr 21, 2015

Will do a push request later tonight. :)

@vlad-dragos

This comment has been minimized.

Show comment
Hide comment
@vlad-dragos

vlad-dragos Apr 21, 2015

Contributor

Should I add a check for Python3?

Contributor

vlad-dragos commented Apr 21, 2015

Should I add a check for Python3?

@berkerpeksag

This comment has been minimized.

Show comment
Hide comment
@berkerpeksag

berkerpeksag Apr 21, 2015

Collaborator

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

Collaborator

berkerpeksag commented Apr 21, 2015

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

vlad-dragos pushed a commit to vlad-dragos/gunicorn that referenced this issue Apr 22, 2015

vlad-dragos pushed a commit to vlad-dragos/gunicorn that referenced this issue Apr 22, 2015

vlad-dragos pushed a commit to vlad-dragos/gunicorn that referenced this issue Apr 22, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment