Error when running app.py
mandelakibiriti opened this issue · 3 comments
The script throws an error when running python app.py
Traceback (most recent call last):
File "app.py", line 5, in
from models import *
File "/home/ubuntu/Projects/rasa-site-bot/bot-application/models.py", line 3, in
from urllib import quote_plus as urlquote
ImportError: cannot import name 'quote_plus'
if you are using pytho3 change the line to
from urllib.parse import quote_plus as urlquote
-
I changed the line as suggested and an Attribute error from models.py emerged
Traceback (most recent call last): File "app.py", line 4, in <module> from models import * File "/home/ubuntu/Projects/rasa-site-bot/bot-application/models.py", line 42, in <module> admin.add_view(MyModelView(Event, db.session)) File "/home/ubuntu/Projects/rasa-site-bot/bot-application/models.py", line 35, in __init__ for k, v in kwargs.iteritems(): AttributeError: 'dict' object has no attribute 'iteritems'
-
I changed
for k, v in kwargs.iteritems()
tofor k, v in kwargs.items()
in line 35, models.py -
I ran app.py and it worked however the bot doesn't output the intended response when I begin the chat
I'm I doing something wrong?
@mandelakibiriti , You need to start rasa NLU server.
See line 51 in bot-application/App.py file.
response = requests.get("http://localhost:5000/parse",params={"q":request.form["text"]})
It requests Rasa NLU server and later will show its response in the webpage.
So start Rasa NLU server and it will start responding.