Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yanchuang-16 opened this issue Jun 17, 2020 · 2 comments

Comments

@yanchuang-16
Copy link

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

@beachwood23
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants