pyaiml
pyaiml copied to clipboard
AttributeError: module 'time' has no attribute 'clock'
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'
any update on this? solution is actually simple. Do you want me to raise a pull request for it?
hello have you got an reply to solve this problem ??
If your python version > python 3.8,find the document "kernel.py" and replace all the "clock" in the code with "perf_counter".