Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Chatbot not working #35

Open
JairoJosy opened this issue Jan 18, 2022 · 11 comments
Open

Chatbot not working #35

JairoJosy opened this issue Jan 18, 2022 · 11 comments

Comments

@JairoJosy
Copy link

When I ask questions like "Do you like Ice Cream", it responds "I don't understand". I tried re-installing mycroft and fallbck-aiml. But no use.
THIS IS WHAT I GET ON THE DEBUG SCREEN:
Screenshot from 2022-01-18 12-43-30

@forslund
Copy link
Owner

Hi, I think it's the version of the aiml module this skill relies on that is the issue. There is a slightly more modern version I will try to use instead.

@JairoJosy
Copy link
Author

@forslund
I s there any way I can use the modern version ?

@forslund
Copy link
Owner

I've updated the requirements.txt to use the newer module.

You can quickly test try this by installing python-aiml in your mycroft venv

on picroft simply run mycroft-pip install python-aiml, on a desktop (from the mycroft-core folder) run

source venv-activate.sh
pip install python-aiml

@JairoJosy
Copy link
Author

tried installing but still does not work

@johndzxu
Copy link

I'm having the same issue. Error says that module 'time' has no attribute 'clock'. And it's still not working after installing the new requirements.txt

@forslund
Copy link
Owner

Sounds like it's still using the old library. can you try to run

pip uninstall aiml
pip uninstall python-aiml
pip install python-aiml

To make sure the newer package is the only one installed in the mycroft-venv?

@johndzxu
Copy link

Output of mycroft-pip list indicates that I'm using aiml 0.9.2 and python-aiml 0.9.3
This is the error message if that helps:
Screenshot from 2022-03-22 16-45-29

@forslund
Copy link
Owner

Ok, but if you try to remove the aiml-module? I think having both versions is the issue.

@johndzxu
Copy link

image
Tried that but the skill can't load properly without the aiml module.

@forslund
Copy link
Owner

The problem seems to be that both those modules uses the same module name "aiml" which causes some weird issues if both gets installed...Installing python-aiml will not uninstall aiml and Uninstalling aiml will remove files from both modules while pip install info shows python-aiml as installed.

For me (TM), I could do the following when I had the time.clock Attribute error and also made the mistake of installing both aiml and python aiml:

(In the mycroft-core folder)

source venv-activate.sh
pip uninstall aiml
pip uninstall python-aiml
pip install python-aiml
./start-mycroft.sh skills restart

After that little song and dance number it started up and answered the question "do you like ice cream" again.

Can you verify that those steps works for you as well (or if you could get something similar to work), if it solves the issue I can create a requirements.sh script that does this automatically.

@johndzxu
Copy link

Yup that worked! Thanks a lot.
This should be in a different issue but is it normal for Mycroft to reply "I like ." to "Do you like icecreams?" and "I am ." to "Are you male or female?"?

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

No branches or pull requests

3 participants