simple_rl icon indicating copy to clipboard operation
simple_rl copied to clipboard

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

Open matthhong opened this issue 5 years ago • 2 comments

From Python docs:

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.

This throws an error:

line 277, in run_agents_on_mdp
    start = time.clock()

matthhong avatar Sep 24 '20 22:09 matthhong

Oh, I see this has been addressed here: https://github.com/david-abel/simple_rl/pull/54

Weird... I installed version 0.811, which should have the above merges

matthhong avatar Sep 24 '20 22:09 matthhong

I've determined that pip install simple-rl using Python 3.8 does not actually have the latest code. The files in the tarbell link also throws this error on Python 3.

matthhong avatar Sep 24 '20 23:09 matthhong