-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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 during Mongo adapter statement serialization #203
Comments
This sounds like an issue that may have been fixed in a recent release of ChatterBot, can you confirm what version you are using? |
I installed 2 weeks ago, I'll try pip upgrade, if nothing I'll update from the repo. |
It seems as I was on the latest version, 0.4.3 but I've went ahead and uninstalled pip and installed from source. Hope the issue is fixed, closed for now. |
Hey, I'm still getting it for some reason even after a full update, Traceback (most recent call last): |
Hi, I can't seem to replicate this issue. Can you post some more information to help me debug this:
|
Python version: 3.5 chatbot = ChatBot("NotSoBot",
storage_adapter="chatterbot.adapters.storage.MongoDatabaseAdapter",
logic_adapter="chatterbot.adapters.logic.ClosestMeaningAdapter",
input_adapter="chatterbot.adapters.input.VariableInputTypeAdapter",
output_adapter="chatterbot.adapters.output.OutputFormatAdapter",
format='text',
database='chatterbot-database',
database_uri='mongodb://localhost:27017/')
chatbot.set_trainer(ChatterBotCorpusTrainer)
chatbot.train("chatterbot.corpus.english") It works first time, few times actually but then for no reason starts to error. I receive it around 50 times and then no responses work until I reload it and it starts working again. |
Alright, thank you. I will see if I can track down where this is happening. |
@NotSoSuper Not sure if this is part of the issue, but I believe you may needs to specify |
Alright, testing it now, thanks for the update! |
Seems to be working good now, had a few testers. Thanks! |
and its back :( |
Sorry about the long wait on this. I believe I have finally tracked down the source of the issue. It appears that in some cases, statement objects were being added to the response list of other statements. While this should have been Ok in theory since both objects share a similar API, it actually caused a problem during deserialization because some of the attributes remained in dictionary form. #224 should correct this issue. |
Just upgraded @gunthercox and it's back but in a new format, During handling of the above exception, another exception occurred: Traceback (most recent call last): sorry for all the issue this bug is causing :( |
@NotSoSuper I haven't created a new release on PyPy with the changes I made yet. Did you upgrade with pip or from the code on GitHub? Also, its good that you are reporting the issue. It all helps to improve ChatterBot for everyone who uses it. |
I pulled from github and ran python3.5 setup.py install |
You think wiping my mongodb for the data would work? I would rather not because I have a lot of data from users using it however I will if needed. |
You could specify a different database name and your old data would be safe while you test your theory. |
yeah, that's what I was thinking. I'll try it when I get home, thanks. |
@NotSoSuper Any success? |
Oh sorry, forgot to respond. After updating again with your new commits a few days later, I haven't received the error again. Everything seems well at this point and it's fast. Thanks for keeping in check and continuing development of this project! |
Awesome, glad to hear! |
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. |
Hey, after I started using the mongodb storage adapter, I keep getting this error:
The text was updated successfully, but these errors were encountered: