Gunicorn: Async workers broken on Python 3.7 due to backwards-incompatible change

Created on 29 Jun 2018  路  3Comments  路  Source: benoitc/gunicorn

Per the release notes of Python 3.7, "async" and "await" are now reserved keywords. This means that async workers like gevent no longer work because they try to import the gevent.workers.async module, which is now a SyntaxError:

  File "/Users/bogdan/.virtualenvs/molten/lib/python3.7/site-packages/gunicorn/workers/ggevent.py", line 30
    from gunicorn.workers.async import AsyncWorker
                              ^
SyntaxError: invalid syntax

The obvious fix would be to rename the async module to something else, but I believe that would constitute a breaking change so I figured I'd open an issue before attempting to contribute.

Most helpful comment

Gunicorn 19.9.0 has been released!

All 3 comments

This has already been addressed. See #1822

Ahh, can't believe I missed that. Thanks, @jamadden!

Gunicorn 19.9.0 has been released!

Was this page helpful?
0 / 5 - 0 ratings