ElasticHQ / elasticsearch-HQ

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

不能兼容python3.8,由于使用了time.clock,该方法在3.8被移除 #524

Open yanchuang-16 opened 4 years ago

yanchuang-16 commented 4 years ago

General information

Issue Description

time.clock()已经在新的版本中移除了。在Python3.8中更新了。“The function time.clock() has been removed, after having been deprecated since Python 3.3: use time.perf_counter() or time.process_time() instead, depending on your requirements, to have well-defined behavior. (Contributed by Matthias Bussonnier in bpo-36895.)”

Source Code / Logs

module 'time' has no attribute 'clock'

Be Patient

I have a day job. ;-)

beachwood23 commented 3 years ago

I am also seeing this issue. I'm running Python 3.9.5 on Windows. Does anyone have a workaround for this issue?

I find it hard to believe that running from source through the latest python has been broken for a year... Do most people just run the docker container?

beachwood23 commented 2 years ago

I created a pull request that fixes this here: https://github.com/ElasticHQ/elasticsearch-HQ/pull/542