Closed BhagiLimbu closed 5 years ago
This looks like a SQLAlchemy / Py 3.8 issue. Either try a different version of python, or use the docker distro please.
Which python version do you suggest?
I tried docker, but keep failing connect with a local ElasticSearch. Do I need to change any config file to connect local ElasticSearch that is not running on Docker container?
3.7 should work. 3.5 and 3.6 should as well. What failed with the docker distro?
Thanks, let me change 3.6 and revert back to you if any issue. The docker failed to connect http://localhost:9200/ which is running at local machine not in local docker container.
` C:\pythonworkspace\elasticsearch-HQ>docker run -p 5000:5000 elastichq/elasticsearch-hq 2019-10-24 03:54:26,220 CRIT Supervisor running as root (no user in config file) 2019-10-24 03:54:26,225 INFO supervisord started with pid 1 2019-10-24 03:54:27,228 INFO spawned: 'gunicorn' with pid 8 2019-10-24 03:54:28,231 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) loading config /src/elastichq/config/logger.json 2019-10-24 03:54:28,741 INFO engineio server.init:140 Server initialized for eventlet. config settings.json not found, searched /etc/elastic-hq/settings.json,~/settings.json,/src/settings.json,/src/elastichq/settings.json,/src/elastichq/config/settings.json --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn (self.host, self.port), self.timeout, **extra_kw) File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 83, in create_connection raise err File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection sock.connect(sa) File "/usr/local/lib/python3.6/site-packages/eventlet/greenio/base.py", line 267, in connect socket_checkerr(fd) File "/usr/local/lib/python3.6/site-packages/eventlet/greenio/base.py", line 51, in socket_checkerr raise socket.error(err, errno.errorcode[err]) ConnectionRefusedError: [Errno 111] ECONNREFUSED
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen chunked=chunked) File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 357, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/local/lib/python3.6/http/client.py", line 1239, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/local/lib/python3.6/http/client.py", line 1285, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.6/http/client.py", line 1234, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.6/http/client.py", line 1026, in _send_output self.send(msg) File "/usr/local/lib/python3.6/http/client.py", line 964, in send self.connect() File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 166, in connect conn = self._new_conn() File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn self, "Failed to establish a new connection: %s" % e) urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7ff74d59c390>: Failed to establish a new connection: [Errno 111] ECONNREFUSED
`
facing the same issue when docker is used
Same issue with docker and python
Having the same issue. Any updates?
Same issue occurred
General information
Issue Description
I install from source and follow instructions mention in the documentation - http://docs.elastichq.org/installation.html#install-from-source. When I run the command: "python application.py", It throws an exception - AttributeError: module 'time' has no attribute 'clock'.
Source Code / Logs
C:\pythonworkspace\elasticsearch-HQ>python --version Python 3.8.0
C:\pythonworkspace\elasticsearch-HQ>python application.py Traceback (most recent call last): File "application.py", line 6, in
from elastichq import create_app
File "C:\pythonworkspace\elasticsearch-HQ\elastichq__init__.py", line 5, in
from elastichq.api import api_blueprint, endpoints, public_blueprint, ws_blueprint
File "C:\pythonworkspace\elasticsearch-HQ\elastichq\api\endpoints.py", line 4, in
from . import clusters
File "C:\pythonworkspace\elasticsearch-HQ\elastichq\api\clusters.py", line 11, in
from elastichq.model import ClusterDTO
File "C:\pythonworkspace\elasticsearch-HQ\elastichq\model__init.py", line 3, in
from elastichq.model.ClusterModel import *
File "C:\pythonworkspace\elasticsearch-HQ\elastichq\model\ClusterModel.py", line 7, in
from ..globals import db, ma
File "C:\pythonworkspace\elasticsearch-HQ\elastichq\globals.py", line 6, in
from flask_marshmallow import Marshmallow
File "C:\Python\Python38\lib\site-packages\flask_marshmallow\ init.py", line 24, in
import flask_sqlalchemy # flake8: noqa
File "C:\Python\Python38\lib\site-packages\flask_sqlalchemy\ init.py", line 22, in
import sqlalchemy
File "C:\Python\Python38\lib\site-packages\sqlalchemy\ init.py", line 9, in
from .sql import (
File "C:\Python\Python38\lib\site-packages\sqlalchemy\sql\ init.py", line 8, in
from .expression import (
File "C:\Python\Python38\lib\site-packages\sqlalchemy\sql\expression.py", line 34, in
from .visitors import Visitable
File "C:\Python\Python38\lib\site-packages\sqlalchemy\sql\visitors.py", line 28, in
from .. import util
File "C:\Python\Python38\lib\site-packages\sqlalchemy\util\ init__.py", line 8, in
from .compat import callable, cmp, reduce, \
File "C:\Python\Python38\lib\site-packages\sqlalchemy\util\compat.py", line 172, in
time_func = time.clock
AttributeError: module 'time' has no attribute 'clock'
Be Patient
I have a day job. ;-)