| Traceback (most recent call last):
| File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
| "main", mod_spec)
| File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
| exec(code, run_globals)
| File "/data/rasa_server.py", line 28, in
| cmdline_args.cors)
| File "/app/rasa_core/server.py", line 175, in create_app
| if not agent.is_ready():
| AttributeError: 'str' object has no attribute 'is_ready'
my server.py
import logging
import os
from rasa_core.interpreter import RasaNLUHttpInterpreter
from rasa_core.server import create_app
from rasa_core.run import create_argument_parser
from gevent.pywsgi import WSGIServer
from rasa_core.utils import EndpointConfig
logger = logging.getLogger(name)
if name == 'main':
Script to run Rasa NLU HTTP Interpreter
arg_parser = create_argument_parser()
cmdline_args = arg_parser.parse_args()
logging.basicConfig(level=cmdline_args.loglevel)
if cmdline_args.nlu == 'RasaNLUHttpInterpreter':
logger.info("Creating RasaNLU HTTP Interpreter")
endpoint = EndpointConfig(os.environ.get("rasa_nlu_http_server"))
#Fill in the modelname and server details.
cmdline_args.nlu = RasaNLUHttpInterpreter(os.environ.get("rasa_nlu_model_name"),
endpoint,os.environ.get("rasa_nlu_project_name"))
app = create_app(cmdline_args.core,
cmdline_args.nlu,
cmdline_args.loglevel,
cmdline_args.log_file,
cmdline_args.cors)
logger.info("Started http server on port %s" % cmdline_args.port)
# Running the server at 'this' address with the
# rasa_core application framework
http_server = WSGIServer(('0.0.0.0', cmdline_args.port), app)
logger.info("Up and running")
try:
http_server.serve_forever()
except Exception as exc:
logger.exception(exc)
HI,
While im deploying seeing below error.
INFO:main:Creating RasaNLU HTTP Interpreter
| Traceback (most recent call last): | File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main | "main", mod_spec) | File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code | exec(code, run_globals) | File "/data/rasa_server.py", line 28, in
| cmdline_args.cors)
| File "/app/rasa_core/server.py", line 175, in create_app
| if not agent.is_ready():
| AttributeError: 'str' object has no attribute 'is_ready'
my server.py
import logging import os from rasa_core.interpreter import RasaNLUHttpInterpreter from rasa_core.server import create_app from rasa_core.run import create_argument_parser from gevent.pywsgi import WSGIServer from rasa_core.utils import EndpointConfig
logger = logging.getLogger(name)
if name == 'main':
Script to run Rasa NLU HTTP Interpreter