问题描述
我正在虚拟环境中运行gunicorn Web服务器,但出现以下错误
python --version
Python 3.7.0b3
使用以下命令运行:
gunicorn -w 1 -k gevent --timeout 120 -b 0.0.0.0:8088 --limit-request-line 0 --limit-request-field_size 0 --statsd-host localhost:8125 "superset.app:create_app()" --log-level "debug"
我的输出:
Error: class uri 'gevent' invalid or not found:
[Traceback (most recent call last):
File "superset/envsuperset/lib/python3.7/site-packages/gunicorn/util.py",line 99,in load_class
mod = importlib.import_module('.'.join(components))
File "/usr/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 726,in exec_module
File "<frozen importlib._bootstrap>",line 219,in _call_with_frames_removed
File "superset-prod/envsuperset/lib/python3.7/site-packages/gunicorn/workers/ggevent.py",line 14,in <module>
import gevent
File "superset-prod/envsuperset/lib/python3.7/site-packages/gevent/__init__.py",line 98,in <module>
from gevent.os import fork
File "superset-prod/envsuperset/lib/python3.7/site-packages/gevent/os.py",line 495,in <module>
_raw_posix_spawnp = os.posix_spawnp
AttributeError: module 'os' has no attribute 'posix_spawnp'
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)