'gthread' not added to supporded workers. #1011

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

Projects

None yet

2 participants

@vlad-dragos
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
Collaborator

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

@vlad-dragos
Contributor

Will do a push request later tonight. :)

@vlad-dragos
Contributor

Should I add a check for Python3?

@berkerpeksag
Collaborator

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

@vlad-dragos vlad-dragos added a commit to vlad-dragos/gunicorn that referenced this issue Apr 22, 2015
@vlad-dragos vlad-dragos Fix issue #1011 6ec7de4
@vlad-dragos vlad-dragos added a commit to vlad-dragos/gunicorn that referenced this issue Apr 22, 2015
@vlad-dragos @vlad-dragos-qualitance vlad-dragos + vlad-dragos-qualitance Add the 'gthread' worker to the gunicorn.workers.SUPPORTED_WORKERS di…
…ctionary (Fix issie #1011)
19b5279
@vlad-dragos vlad-dragos added a commit to vlad-dragos/gunicorn that referenced this issue Apr 22, 2015
@vlad-dragos vlad-dragos Merge branch 'master' of https://github.com/vlad-dragos/gunicorn acf0509
@andrewsg andrewsg referenced this issue in GoogleCloudPlatform/python-compat-runtime Dec 10, 2015
Merged

Upgrade to gunicorn 19.4.1 to fix gunicorn issue 1011 #38

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