ImportError: cannot import name 'clock' from 'time' (unknown location)
Created originally on Bitbucket by Anonymous
Using:
- python 3.8.0
- passlib 1.7.1
Inside a flask-project.
The error seems to be related to using a deprecated method:
The function
time.clock()
has been removed, after having been deprecated since Python 3.3: usetime.perf_counter()
ortime.process_time()
instead, depending on your requirements, to have well-defined behavior. (Contributed by Matthias Bussonnier in bpo-36895.)
This completly breaks passlib and my flask application.