Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while starting #2

Open
W72702 opened this issue May 20, 2022 · 9 comments
Open

Error while starting #2

W72702 opened this issue May 20, 2022 · 9 comments

Comments

@W72702
Copy link

W72702 commented May 20, 2022

After i run jarvis.py i get this

Parsing aiml files
Traceback (most recent call last):
File "C:\Users%user%\Downloads\AI\jarvis.py", line 37, in
k.bootstrap(learnFiles="std-startup.aiml", commands="load aiml b")
File "C:\Users%user%\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\aiml\Kernel.py", line 131, in bootstrap
start = time.clock()
AttributeError: module 'time' has no attribute 'clock'

@W72702
Copy link
Author

W72702 commented May 20, 2022

Note fixed it by editing Kernel.py

@Aritro7
Copy link

Aritro7 commented Jun 25, 2022

Can you tell me how you fixed it?

@W72702
Copy link
Author

W72702 commented Jun 25, 2022

edit Kernal.py to remove the time.clock() bit

@Aritro7
Copy link

Aritro7 commented Jun 25, 2022

It's still giving some weird errors, could you please share your kernel.py file instead as it's corrected so I could replace mine.

@W72702
Copy link
Author

W72702 commented Jun 25, 2022

I have no clue i got issues to

@sephora-codes
Copy link

ImportError: attempted relative import with no known parent package

@Smartsantosh1928
Copy link

I am also having this errors like aiml parsing!......

@Smartsantosh1928
Copy link

After i run jarvis.py i get this

Parsing aiml files Traceback (most recent call last): File "C:\Users%user%\Downloads\AI\jarvis.py", line 37, in k.bootstrap(learnFiles="std-startup.aiml", commands="load aiml b") File "C:\Users%user%\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\aiml\Kernel.py", line 131, in bootstrap start = time.clock() AttributeError: module 'time' has no attribute 'clock'

I am finally found the solution for this issue.That is requirements.txt file contains aiml package but the package's actual name is python-aiml.So you need to run pip install python-aiml

RealCocoArdo added a commit to RealCocoArdo/JARVIS-AI-ASSISTANT that referenced this issue Oct 17, 2023
@Brexely
Copy link

Brexely commented Sep 11, 2024

The error occurs because in Python 3.8 and later, the time.clock() function was removed. It was replaced with time.perf_counter() or time.process_time() depending on what you need.

To fix this, you can replace all occurrences of time.clock() in the Kernel.py file (or in any other file) with time.perf_counter().

Here's how to fix it:

Open the file at Kernel.py.
Search for time.clock() and replace it with time.perf_counter().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants