pyaiml icon indicating copy to clipboard operation
pyaiml copied to clipboard

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

Open ccsv opened this issue 3 years ago • 3 comments

Kernel.py needs to be updated to have a functional clock for aiml version 0.9.2. I am using python 3.8.5 running on windows 10

Loading standard/base.aiml...Traceback (most recent call last):
  File "C:\Users\chan1\Desktop\Eva\eva\core\Process\chatterIO.py", line 5, in <module>
    kernel.learn("standard/base.aiml")
  File "C:\Users\chan1\Envs\eva\lib\site-packages\aiml\Kernel.py", line 335, in learn
    start = time.clock()
AttributeError: module 'time' has no attribute 'clock'

ccsv avatar Mar 10 '21 00:03 ccsv

any update on this? solution is actually simple. Do you want me to raise a pull request for it?

sandeepsn1997 avatar Aug 14 '22 15:08 sandeepsn1997

hello have you got an reply to solve this problem ??

juliopopo1234 avatar Sep 07 '22 21:09 juliopopo1234

If your python version > python 3.8,find the document "kernel.py" and replace all the "clock" in the code with "perf_counter".

LYD2003 avatar May 08 '23 17:05 LYD2003