ElasticHQ / elasticsearch-HQ

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

Cannot run after installation #474

Closed GinoPane closed 5 years ago

GinoPane commented 5 years ago

General information

Issue Description

The source code was downloaded, requirements were installed with no errors. But the server fails to start:

python3 application.py 
Traceback (most recent call last):
  File "application.py", line 6, in <module>
    from elastichq import create_app
  File "/home/siarheikaravai/Tools/elasticsearch-HQ/elastichq/__init__.py", line 1, in <module>
    from flask import Flask
ModuleNotFoundError: No module named 'flask'
python manage.py runserver
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    from elastichq import create_app
  File "/home/siarheikaravai/Tools/elasticsearch-HQ/elastichq/__init__.py", line 5, in <module>
    from elastichq.api import api_blueprint, endpoints, public_blueprint, ws_blueprint
  File "/home/siarheikaravai/Tools/elasticsearch-HQ/elastichq/api/endpoints.py", line 4, in <module>
    from . import clusters
  File "/home/siarheikaravai/Tools/elasticsearch-HQ/elastichq/api/clusters.py", line 11, in <module>
    from elastichq.model import ClusterDTO
  File "/home/siarheikaravai/Tools/elasticsearch-HQ/elastichq/model/__init__.py", line 3, in <module>
    from elastichq.model.ClusterModel import *
  File "/home/siarheikaravai/Tools/elasticsearch-HQ/elastichq/model/ClusterModel.py", line 7, in <module>
    from ..globals import db, ma
  File "/home/siarheikaravai/Tools/elasticsearch-HQ/elastichq/globals.py", line 12, in <module>
    from .config import settings
  File "/home/siarheikaravai/Tools/elasticsearch-HQ/elastichq/config/settings.py", line 2, in <module>
    from functools import lru_cache
ImportError: cannot import name lru_cache
taosha1 commented 5 years ago

me too...

eatzombies commented 5 years ago

had the same issue - found the solution at https://github.com/ElasticHQ/elasticsearch-HQ/issues/440

royrusso commented 5 years ago

had the same issue - found the solution at #440

That's the solution... although I would recommend folks use the docker image unless they are planning to help with development. It's simply easier than dealing with all the python versioning issues.