elasticsearch-HQ icon indicating copy to clipboard operation
elasticsearch-HQ copied to clipboard

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

Open yanchuang-16 opened this issue 4 years ago • 2 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. ;-)

yanchuang-16 avatar Jun 17 '20 02:06 yanchuang-16

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 avatar Jun 08 '21 18:06 beachwood23

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

beachwood23 avatar Sep 03 '21 18:09 beachwood23