Search code examples
pythonchatterbot

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


Just started with the chatterbox application and got this error:- error

After some research, I found that time.clock has been removed for py 3.8+. My python version is 3.9.7. I have checked the solutions provided here, but after checking the directory of my error code I am unable to find the code mentioned there:-

Step 2

Go to your error the last line and go to that directory and open that particular file. search time.clock using ctrl+f and replace it with time.time

time.clock is not there.

How to proceed on this?


Solution

  • just use this - to get your time

    import time
    time.clock = time.time