PS C:\Users\himanshimehta\Google Drive\Bot> rasa run -m models --endpoints endpoints.yml
2020-04-23 16:55:33 INFO root - Starting Rasa server on http://localhost:5005
2020-04-23 16:56:16.558051: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303)
Experienced exception while trying to serve
Traceback (most recent call last):
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sanic\app.py", line 1167, in run
serve(**server_settings)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sanic\server.py", line 892, in serve
trigger_events(before_start, loop)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sanic\server.py", line 668, in trigger_events
loop.run_until_complete(result)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\asyncio\base_events.py", line 587, in run_until_complete
return future.result()
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\run.py", line 245, in load_agent_on_start
_tracker_store = TrackerStore.create(endpoints.tracker_store, event_broker=_broker)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\tracker_store.py", line 76, in create
return _create_from_endpoint_config(obj, domain, event_broker)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\tracker_store.py", line 1038, in _create_from_endpoint_config
**endpoint_config.kwargs,
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\tracker_store.py", line 699, in __init__
self.Base.metadata.create_all(self.engine)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\sql\schema.py", line 4321, in create_all
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\engine\base.py", line 2057, in _run_visitor
with self._optional_conn_ctx_manager(connection) as conn:
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\contextlib.py", line 112, in __enter__
return next(self.gen)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\engine\base.py", line 2049, in _optional_conn_ctx_manager
with self._contextual_connect() as conn:
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\engine\base.py", line 2251, in _contextual_connect
self._wrap_pool_connect(self.pool.connect, None),
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\engine\base.py", line 2285, in _wrap_pool_connect
return fn()
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\pool\base.py", line 363, in connect
return _ConnectionFairy._checkout(self)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\pool\base.py", line 773, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\pool\base.py", line 492, in checkout
rec = pool._do_get()
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\pool\impl.py", line 139, in _do_get
self._dec_overflow()
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\util\langhelpers.py", line 69, in __exit__
exc_value, with_traceback=exc_tb,
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\util\compat.py", line 178, in raise_
raise exception
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\pool\impl.py", line 136, in _do_get
return self._create_connection()
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\pool\base.py", line 308, in _create_connection
return _ConnectionRecord(self)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\pool\base.py", line 437, in __init__
self.__connect(first_connect_check=True)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\pool\base.py", line 657, in __connect
pool.logger.debug("Error on connect(): %s", e)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\util\langhelpers.py", line 69, in __exit__
exc_value, with_traceback=exc_tb,
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\util\compat.py", line 178, in raise_
raise exception
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\pool\base.py", line 652, in __connect
connection = pool._invoke_creator(self)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\engine\strategies.py", line 114, in connect
return dialect.connect(*cargs, **cparams)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\engine\default.py", line 490, in connect
return self.dbapi.connect(*cargs, **cparams)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\MySQLdb\__init__.py", line 84, in Connect
return Connection(*args, **kwargs)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\MySQLdb\connections.py", line 179, in __init__
super(Connection, self).__init__(*args, **kwargs2)
TypeError: 'driver' is an invalid keyword argument for connect()
Traceback (most recent call last):
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\himanshimehta\.conda\envs\py37_64\Scripts\rasa.exe\__main__.py", line 7, in <module>
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\__main__.py", line 91, in main
cmdline_arguments.func(cmdline_arguments)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\cli\run.py", line 114, in run
rasa.run(**vars(args))
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\run.py", line 56, in run
**kwargs,
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\run.py", line 217, in serve_application
endpoints.lock_store if endpoints else None
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sanic\app.py", line 1167, in run
serve(**server_settings)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sanic\server.py", line 892, in serve
trigger_events(before_start, loop)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sanic\server.py", line 668, in trigger_events
loop.run_until_complete(result)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\asyncio\base_events.py", line 587, in run_until_complete
return future.result()
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\run.py", line 245, in load_agent_on_start
_tracker_store = TrackerStore.create(endpoints.tracker_store, event_broker=_broker)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\tracker_store.py", line 76, in create
return _create_from_endpoint_config(obj, domain, event_broker)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\tracker_store.py", line 1038, in _create_from_endpoint_config
**endpoint_config.kwargs,
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\tracker_store.py", line 699, in __init__
self.Base.metadata.create_all(self.engine)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\sql\schema.py", line 4321, in create_all
ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\engine\base.py", line 2057, in _run_visitor
with self._optional_conn_ctx_manager(connection) as conn:
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\contextlib.py", line 112, in __enter__
return next(self.gen)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\engine\base.py", line 2049, in _optional_conn_ctx_manager
with self._contextual_connect() as conn:
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\engine\base.py", line 2251, in _contextual_connect
self._wrap_pool_connect(self.pool.connect, None),
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\engine\base.py", line 2285, in _wrap_pool_connect
return fn()
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\pool\base.py", line 363, in connect
return _ConnectionFairy._checkout(self)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\pool\base.py", line 773, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\pool\base.py", line 492, in checkout
rec = pool._do_get()
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\pool\impl.py", line 139, in _do_get
self._dec_overflow()
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\util\langhelpers.py", line 69, in __exit__
exc_value, with_traceback=exc_tb,
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\util\compat.py", line 178, in raise_
raise exception
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\pool\impl.py", line 136, in _do_get
return self._create_connection()
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\pool\base.py", line 308, in _create_connection
return _ConnectionRecord(self)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\pool\base.py", line 437, in __init__
self.__connect(first_connect_check=True)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\pool\base.py", line 657, in __connect
pool.logger.debug("Error on connect(): %s", e)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\util\langhelpers.py", line 69, in __exit__
exc_value, with_traceback=exc_tb,
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\util\compat.py", line 178, in raise_
raise exception
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\pool\base.py", line 652, in __connect
return dialect.connect(*cargs, **cparams)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sqlalchemy\engine\default.py", line 490, in connect
return self.dbapi.connect(*cargs, **cparams)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\MySQLdb\__init__.py", line 84, in Connect
return Connection(*args, **kwargs)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\MySQLdb\connections.py", line 179, in __init__
super(Connection, self).__init__(*args, **kwargs2)
TypeError: 'driver' is an invalid keyword argument for connect()
sys:1: RuntimeWarning: coroutine 'BaseEventLoop.create_server' was never awaited
Hello @bparikh99, I was also getting similar error with rasa’s latest version. It’s not stable for windows yet. You can install rasa 1.9.4 it should work fine with that.
https://rasa.com/docs/rasa/1.9.4/user-guide/installation/
thanks @pankaj676 for reply i will try it.
Traceback (most recent call last):
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sanic\app.py", line 1167, in run
serve(**server_settings)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sanic\server.py", line 892, in serve
trigger_events(before_start, loop)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sanic\server.py", line 668, in trigger_events
loop.run_until_complete(result)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\asyncio\base_events.py", line 587, in run_until_complete
return future.result()
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\run.py", line 258, in load_agent_on_start
action_endpoint=endpoints.action,
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\agent.py", line 271, in load_agent
remote_storage=remote_storage,
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\agent.py", line 938, in load_local_model
path_to_model_archive=model_archive,
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\agent.py", line 387, in load
interpreter = NaturalLanguageInterpreter.create(nlu_model)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\interpreter.py", line 54, in create
return RasaNLUInterpreter(model_directory=obj)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\interpreter.py", line 274, in __init__
self._load_interpreter()
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\interpreter.py", line 297, in _load_interpreter
self.interpreter = Interpreter.load(self.model_directory)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\nlu\model.py", line 301, in load
return Interpreter.create(model_metadata, component_builder, skip_validation)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\nlu\model.py", line 328, in create
component_meta, model_metadata.model_dir, model_metadata, **context
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\nlu\components.py", line 718, in load_component
component_meta, model_dir, model_metadata, cached_component, **context
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\nlu\registry.py", line 231, in load_component_by_meta
component_meta, model_dir, metadata, cached_component, **kwargs
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\nlu\classifiers\diet_classifier.py", line 857, in load
index_tag_id_mapping, label_data, meta, data_example, model_dir
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\nlu\classifiers\diet_classifier.py", line 920, in _load_model
config=meta,
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\utils\tensorflow\models.py", line 234, in load
eager=True, # no need to build tf graph, eager is faster here
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\utils\tensorflow\models.py", line 148, in fit
self.train_summary_writer,
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\utils\tensorflow\models.py", line 271, in _batch_loop
call_model_function(batch_in)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\utils\tensorflow\models.py", line 191, in train_on_batch
total_loss = self._total_batch_loss(batch_in)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\utils\tensorflow\models.py", line 247, in _total_batch_loss
prediction_loss = self.batch_loss(batch_in)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\nlu\classifiers\diet_classifier.py", line 1358, in batch_loss
mask_text = tf_batch_data[TEXT_MASK][0]
IndexError: list index out of range
Traceback (most recent call last):
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\himanshimehta\.conda\envs\py37_64\Scripts\rasa.exe\__main__.py", line 7, in <module>
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\__main__.py", line 91, in main
cmdline_arguments.func(cmdline_arguments)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\cli\shell.py", line 113, in shell
rasa.cli.run.run(args)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\cli\run.py", line 114, in run
rasa.run(**vars(args))
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\run.py", line 56, in run
**kwargs,
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\run.py", line 217, in serve_application
endpoints.lock_store if endpoints else None
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sanic\app.py", line 1167, in run
serve(**server_settings)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sanic\server.py", line 892, in serve
trigger_events(before_start, loop)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\sanic\server.py", line 668, in trigger_events
loop.run_until_complete(result)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\asyncio\base_events.py", line 587, in run_until_complete
return future.result()
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\run.py", line 258, in load_agent_on_start
action_endpoint=endpoints.action,
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\agent.py", line 271, in load_agent
remote_storage=remote_storage,
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\agent.py", line 938, in load_local_model
path_to_model_archive=model_archive,
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\agent.py", line 387, in load
interpreter = NaturalLanguageInterpreter.create(nlu_model)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\interpreter.py", line 54, in create
return RasaNLUInterpreter(model_directory=obj)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\interpreter.py", line 274, in __init__
self._load_interpreter()
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\core\interpreter.py", line 297, in _load_interpreter
self.interpreter = Interpreter.load(self.model_directory)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\nlu\model.py", line 301, in load
return Interpreter.create(model_metadata, component_builder, skip_validation)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\nlu\model.py", line 328, in create
component_meta, model_metadata.model_dir, model_metadata, **context
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\nlu\components.py", line 718, in load_component
component_meta, model_dir, model_metadata, cached_component, **context
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\nlu\registry.py", line 231, in load_component_by_meta
component_meta, model_dir, metadata, cached_component, **kwargs
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\nlu\classifiers\diet_classifier.py", line 857, in load
index_tag_id_mapping, label_data, meta, data_example, model_dir
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\nlu\classifiers\diet_classifier.py", line 920, in _load_model
config=meta,
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\utils\tensorflow\models.py", line 234, in load
eager=True, # no need to build tf graph, eager is faster here
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\utils\tensorflow\models.py", line 148, in fit
self.train_summary_writer,
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\utils\tensorflow\models.py", line 271, in _batch_loop
call_model_function(batch_in)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\utils\tensorflow\models.py", line 191, in train_on_batch
total_loss = self._total_batch_loss(batch_in)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\utils\tensorflow\models.py", line 247, in _total_batch_loss
prediction_loss = self.batch_loss(batch_in)
File "c:\users\himanshimehta\.conda\envs\py37_64\lib\site-packages\rasa\nlu\classifiers\diet_classifier.py", line 1358, in batch_loss
mask_text = tf_batch_data[TEXT_MASK][0]
IndexError: list index out of range
sys:1: RuntimeWarning: coroutine 'BaseEventLoop.create_server' was never awaited
i have download 1.9.4 but getting this