You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/10/04 16:53:55 UTC
[GitHub] [incubator-superset] kinghuang opened a new issue #8349:
gunicorn==19.8.1 does not work on Python 3.7
kinghuang opened a new issue #8349: gunicorn==19.8.1 does not work on Python 3.7
URL: https://github.com/apache/incubator-superset/issues/8349
PR #8309 recently declared Python 3.7 as supported. But, superset has a stated `install_requires` of `gunicorn<19.9.0` (fixed at `gunicorn==19.8.1` in requirements.txt).
gunicorn<19.9.0 has a module named `gunicorn.workers.async` that is not valid in Python 3.7 (benoitc/gunicorn#1795). This was fixed in gunicorn 19.9.0. Superset should be updated to at least gunicorn 19.9.0 for Python 3.7 compatibility.
### Expected results
apache-superset 0.34.0 should run under Python 3.7.
### Actual results
Running superset through gunicorn produces an error.
```
/ # gunicorn \
> -w 10 \
> -k gevent \
> --timeout 120 \
> -b 0.0.0.0:6666 \
> --limit-request-line 0 \
> --limit-request-field_size 0 \
> --statsd-host localhost:8125 \
> superset:app
Error: class uri 'gevent' invalid or not found:
[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/ggevent.py", line 30
from gunicorn.workers.async import AsyncWorker
^
SyntaxError: invalid syntax
]
```
#### Screenshots
N/A
#### How to reproduce the bug
1. On Python 3.7, use pip to install apache-superset==0.34.0
2. Use gunicorn to run superset as described on [A proper WSGI HTTP Server](https://superset.incubator.apache.org/installation.html#a-proper-wsgi-http-server).
### Environment
(please complete the following information):
- superset version: Superset 0.34.0
- python version: Python 3.7.4
- node.js version: N/A
- npm version: N/A
### Checklist
Make sure these boxes are checked before submitting your issue - thank you!
- [x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
- [x] I have reproduced the issue with at least the latest released version of superset.
- [x] I have checked the issue tracker for the same issue and I haven't found one similar.
### Additional context
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org