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

Python3.7 changes breaks import (SyntaxError: invalid syntax) #1822

Closed
m3talstorm opened this issue Jun 28, 2018 · 2 comments
Closed

Python3.7 changes breaks import (SyntaxError: invalid syntax) #1822

m3talstorm opened this issue Jun 28, 2018 · 2 comments

Comments

@m3talstorm
Copy link

Running the latest python:3.7.0b5:

[Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/gunicorn/util.py", line 135, in load_class
    mod = import_module('.'.join(components))
  File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
   File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 724, in exec_module
  File "<frozen importlib._bootstrap_external>", line 860, in get_code
  File "<frozen importlib._bootstrap_external>", line 791, in source_to_code
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/local/lib/python3.7/site-packages/gunicorn/workers/geventlet.py", line 27
    from gunicorn.workers.async import AsyncWorker
                              ^
SyntaxError: invalid syntax
]

https://docs.python.org/3.7/whatsnew/3.7.html

Backwards incompatible syntax changes:

async and await are now reserved keywords.

The README says

Gunicorn requires Python 2.x >= 2.6 or Python 3.x >= 3.2.

So technically Gunicorn should support 3.7?

@tilgovi
Copy link
Collaborator

tilgovi commented Jun 28, 2018

Already handled in #1795. I will make a release in the next day or two.

@tilgovi
Copy link
Collaborator

tilgovi commented Jul 4, 2018

Gunicorn 19.9.0 has been released!

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