ElasticHQ / elasticsearch-HQ

Monitoring and Management Web Application for ElasticSearch instances and clusters.
http://www.elastichq.org
Other
4.96k stars 532 forks source link

AttributeError: 'module' object has no attribute 'WSGIApp' #444

Closed lailaiququ closed 5 years ago

lailaiququ commented 5 years ago

General information

Issue Description

[root@i-qnpyaw7v elasticsearch-HQ-3.4.1]# /usr/bin/python application.py Traceback (most recent call last): File "application.py", line 5, in from elastichq import create_app File "/usr/local/elk/elasticsearch-hq/elasticsearch-HQ-3.4.1/elastichq/init.py", line 5, in from elastichq.api import api_blueprint, endpoints, public_blueprint, ws_blueprint File "/usr/local/elk/elasticsearch-hq/elasticsearch-HQ-3.4.1/elastichq/api/endpoints.py", line 4, in from . import clusters File "/usr/local/elk/elasticsearch-hq/elasticsearch-HQ-3.4.1/elastichq/api/clusters.py", line 11, in from elastichq.model import ClusterDTO File "/usr/local/elk/elasticsearch-hq/elasticsearch-HQ-3.4.1/elastichq/model/init.py", line 3, in from elastichq.model.ClusterModel import * File "/usr/local/elk/elasticsearch-hq/elasticsearch-HQ-3.4.1/elastichq/model/ClusterModel.py", line 7, in from ..globals import db, ma File "/usr/local/elk/elasticsearch-hq/elasticsearch-HQ-3.4.1/elastichq/globals.py", line 8, in from flask_socketio import SocketIO File "/usr/local/python27/lib/python2.7/site-packages/flask_socketio/init.py", line 7, in from socketio import socketio_manage File "/usr/local/python27/lib/python2.7/site-packages/socketio/init.py", line 10, in from .middleware import WSGIApp, Middleware File "/usr/local/python27/lib/python2.7/site-packages/socketio/middleware.py", line 4, in class WSGIApp(engineio.WSGIApp): AttributeError: 'module' object has no attribute 'WSGIApp'

lailaiququ commented 5 years ago

1,安装python3 2,执行 python3 application.py 3,出现新的问题,https://github.com/ElasticHQ/elasticsearch-HQ/issues/438 4,更新./pip3 install --upgrade python-engineio 5,success