ChatterBot icon indicating copy to clipboard operation
ChatterBot copied to clipboard

Statement matching query does not exist in Django example

Open kalentang opened this issue 8 years ago • 3 comments

hello, I run the django_app example by default, it works well. But when I add some logic adapters to the config at the django_app settings.py, it is not work when I ask "what time is it?", the other greetings questions still can work.

the error message is: File "C:\Users\xx\AppData\Local\Programs\Python\Python36\lib\site-packages\django\db
9, in get self.model._meta.object_name chatterbot.ext.django_chatterbot.models.DoesNotExist: Statement matching query does not exist.

my environment: python 3.6.5 django 1.11 chatterbot 0.8.1 or 0.8.2

the django_app settings.py as below:

CHATTERBOT = { 'name': 'Django ChatterBot Example', 'logic_adapters': [ 'chatterbot.logic.MathematicalEvaluation', 'chatterbot.logic.TimeLogicAdapter', 'chatterbot.logic.BestMatch' ], 'trainer': 'chatterbot.trainers.ChatterBotCorpusTrainer', 'training_data': [ 'chatterbot.corpus.english.greetings' ], 'django_app_name': 'django_chatterbot' }

is there any other code need to update? Thank you.

kalentang avatar Jan 24 '18 04:01 kalentang

I'm not certain why it isn't responding with the time for you. I'll mark this as a possible bug.

gunthercox avatar Jan 24 '18 09:01 gunthercox

I'm going to close this off. I was never able to recreate this issue, and I suspect that it has been fixed in some of the recent changes to ChatterBot.

gunthercox avatar Nov 25 '18 15:11 gunthercox

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Sep 21 '19 15:09 lock[bot]