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

getting following error while testing django example #635

Closed
kumarneeraj2005 opened this issue Feb 24, 2017 · 6 comments
Closed

getting following error while testing django example #635

kumarneeraj2005 opened this issue Feb 24, 2017 · 6 comments

Comments

@kumarneeraj2005
Copy link

django.core.exceptions.ImproperlyConfigured: Requested setting CHATTERBOT, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.

hi
{'text': u'hi', 'created_at': datetime.datetime(2017, 2, 24, 17, 15, 31, 350875, tzinfo=), 'extra_data': {}, 'in_response_to': [{'text': u'Hi', 'occurrence': 1}, {'text': u'Hello', 'occurrence': 1}]}

@kumarneeraj2005
Copy link
Author

kumarneeraj2005 commented Feb 24, 2017

Using Mac Os/anaconda 2.7
Please guide me how to solve this issue.

@gunthercox
Copy link
Owner

Hi @kumarneeraj2005, based on the information you have provided I cannot determine how you encountered this problem. Can you provide a list of steps that I can use to recreate this issue?

@darenr
Copy link

darenr commented Feb 28, 2017

@kumarneeraj2005 I think the app is working, the response contains "hi" which is "correct". I think what you're noticing is that the serialization of the api is not valid json, the api returns a json structure with the "text" node pointing to python serialized (as opposed to json) so you get in the app the data that you show. This is why the app shows the following:

screenshot from 2017-02-28 14-43-49

@gunthercox
Copy link
Owner

Hi @darenr, the issue you are seeing was fixed in #608, it will be available for download when the next version of ChatterBot is released.

@darenr
Copy link

darenr commented Mar 2, 2017

@gunthercox awesome, thanks, I also fixed it in my local copy, but I'm glad to hear there's a new version, the project has a lot of interesting ideas.

@lock
Copy link

lock bot commented Mar 10, 2019

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 lock bot locked and limited conversation to collaborators Mar 10, 2019
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