gamenet / redis-memory-analyzer

Redis memory profiler to find the RAM bottlenecks throw scaning key space in real time and aggregate RAM usage statistic by patterns.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: module 'time' has no attribute 'clock'

itskingori opened this issue · comments

Using Python 3.8 I'm getting this error ...

Traceback (most recent call last):
  File "/usr/local/bin/rma", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/site-packages/rma/cli/rma_cli.py", line 96, in main
    start_time = time.clock()
AttributeError: module 'time' has no attribute 'clock'

Likely cause is this:

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