ElasticHQ / elasticsearch-HQ

Monitoring and Management Web Application for ElasticSearch instances and clusters.

Home Page:http://www.elastichq.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

yanchuang-16 opened this issue · comments

General information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): windows 10
  • ElasticHQ Version: lasted(just master branch)
  • Elasticsearch Version: 6.8.2/7.6.2
  • Python version (ignore is using docker image): 3.8.1
  • Browser Vendor and Version (if applicable):

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. ;-)

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?

I created a pull request that fixes this here: #542