forslund / fallback-aiml

An Alice chatbot fallback for Mycroft (all hail JarbasAI who did most of the work)
Apache License 2.0
12 stars 13 forks source link

Chatbot not working #35

Open JairoJosy opened 2 years ago

JairoJosy commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

forslund commented 2 years ago

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 commented 2 years ago

tried installing but still does not work

johndzxu commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

johndzxu commented 2 years ago

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

forslund commented 2 years ago

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 commented 2 years ago

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?"?