Error with rasa x command

Logs are attached…please help

Traceback (most recent call last):
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\rasa\cli\x.py", line 500, in run_locally                                                                                                                domain_path=domain_path,
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\rasax\community\local.py", line 234, in main
sql_migrations.run_migrations(session)
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\rasax\community\sql_migrations.py", line 25, in run_migrations
_run_schema_migrations(session)
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\rasax\community\sql_migrations.py", line 41, in _run_schema_migrations
_run_alembic_migration(alembic_config)
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\rasax\community\sql_migrations.py", line 65, in _run_alembic_migration
command.upgrade(alembic_config, target_revision)
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\alembic\command.py", line 298, in upgrade
script.run_env()
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\alembic\script\base.py", line 489, in run_env
util.load_python_file(self.dir, "env.py")
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\alembic\util\pyfiles.py", line 98, in load_python_file
module = load_module_py(module_id, path)
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\alembic\util\compat.py", line 184, in load_module_py
spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\rasax\community\database\schema_migrations\alembic\env.py", line 96, in <module>
run_migrations_online()
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\rasax\community\database\schema_migrations\alembic\env.py", line 86, in run_migrations_online
context.run_migrations()
File "<string>", line 8, in run_migrations
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\alembic\runtime\environment.py", line 846, in run_migrations
self.get_context().run_migrations(**kw)
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\alembic\runtime\migration.py", line 511, in run_migrations
for step in self._migrations_fn(heads, self):
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\alembic\command.py", line 287, in upgrade
return script._upgrade_revs(revision, rev)
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\alembic\script\base.py", line 364, in _upgrade_revs
revs = list(revs)
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\alembic\script\revision.py", line 777, in _iterate_revisions
uppers = util.dedupe_tuple(self.get_revisions(upper))
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\alembic\script\revision.py", line 321, in get_revisions
resolved_id, branch_label = self._resolve_revision_number(id_)
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\alembic\script\revision.py", line 501, in _resolve_revision_number
self._revision_map                                                                                                                                                                                               File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\alembic\util\langhelpers.py", line 230, in __get__
obj.__dict__[self.__name__] = result = self.fget(obj)
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\alembic\script\revision.py", line 123, in _revision_map
for revision in self._generator():
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\alembic\script\base.py", line 112, in _load_revisions
script = Script._from_filename(self, vers, file_)
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\alembic\script\base.py", line 906, in _from_filename
module = util.load_python_file(dir_, filename)
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\alembic\util\pyfiles.py", line 98, in load_python_file
module = load_module_py(module_id, path)
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\alembic\util\compat.py", line 184, in load_module_py
spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\rasax\community\database\schema_migrations\alembic\versions\migration_2019_06_03_initial_migration_2a216ed121dd.py", line 14, in <module>
import rasax.community.database.schema_migrations.alembic.utils as migration_utils
File "c:\users\nic\anaconda3\envs\rasaxenv\lib\site-packages\rasax\community\database\schema_migrations\alembic\utils.py", line 12, in <module>
from sqlalchemy.engine import reflection, RowProxy, Connection
ImportError: cannot import name 'RowProxy'
Sorry, something went wrong (see error above). Make sure to start Rasa X with valid data and valid domain and config files. Please, also check any warnings that popped up.
If you need help fixing the issue visit our forum: http://forum.rasa.com/.
1 Like

you got any solution for this?

i was having the same issue, installing

pip install SQLAlchemy==1.3.22

worked for me.

3 Likes

I´m having exactly the same problem. Have you solved it?.

Installing SQLAlchemy didn´t worked for me.

Thanks

1 Like

try deleting the models and .db files. Run rasa train it will show the exact errors.

And can you post the last lines of errors from console

That worked for me too, but I also had to delete my rasa.db and events file

I just needed to swtich the SQLAlchemy version to 1.3.22 as well only, no db deletions or other part like model data deletion.

1 Like

same here have you solved it… tried everything that is mentioned over here

  • pip install sanic-jwt==1.6.0
  • pip3 install SQLAlchemy==1.3.22

Try these 2 , it worked for me

1 Like
(rasa3) C:\Users\dever\Desktop\DEV\Work\Novacept\My Chatbot>rasa x
Preparing the local database...
Traceback (most recent call last):
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\rasa\cli\x.py", line 472, in run_locally
    local.main(
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\rasax\community\local.py", line 196, in main
    sql_migrations.run_migrations(session)
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\rasax\community\sql_migrations.py", line 35, in run_migrations
    _run_schema_migrations(session)
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\rasax\community\sql_migrations.py", line 52, in _run_schema_migrations
    _run_alembic_migration(alembic_config)
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\rasax\community\sql_migrations.py", line 76, in _run_alembic_migration
    command.upgrade(alembic_config, target_revision)
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\alembic\command.py", line 298, in upgrade
    script.run_env()
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\alembic\script\base.py", line 489, in run_env
    util.load_python_file(self.dir, "env.py")
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\alembic\util\pyfiles.py", line 98, in load_python_file
    module = load_module_py(module_id, path)
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\alembic\util\compat.py", line 184, in load_module_py
    spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\rasax\community\database\schema_migrations\alembic\env.py", line 96, in <module>      
    run_migrations_online()
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\rasax\community\database\schema_migrations\alembic\env.py", line 86, in run_migrations_online
    context.run_migrations()
  File "<string>", line 8, in run_migrations
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\alembic\runtime\environment.py", line 846, in run_migrations
    self.get_context().run_migrations(**kw)
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\alembic\runtime\migration.py", line 511, in run_migrations
    for step in self._migrations_fn(heads, self):
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\alembic\command.py", line 287, in upgrade
    return script._upgrade_revs(revision, rev)
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\alembic\script\base.py", line 364, in _upgrade_revs
    revs = list(revs)
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\alembic\script\revision.py", line 765, in _iterate_revisions
    requested_lowers = self.get_revisions(lower)
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\alembic\script\revision.py", line 319, in get_revisions
    return sum([self.get_revisions(id_elem) for id_elem in id_], ())
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\alembic\script\revision.py", line 319, in <listcomp>
    return sum([self.get_revisions(id_elem) for id_elem in id_], ())
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\alembic\script\revision.py", line 321, in get_revisions
    resolved_id, branch_label = self._resolve_revision_number(id_)
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\alembic\script\revision.py", line 501, in _resolve_revision_number
    self._revision_map
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\alembic\util\langhelpers.py", line 230, in __get__
    obj.__dict__[self.__name__] = result = self.fget(obj)
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\alembic\script\revision.py", line 123, in _revision_map
    for revision in self._generator():
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\alembic\script\base.py", line 112, in _load_revisions
    script = Script._from_filename(self, vers, file_)
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\alembic\script\base.py", line 906, in _from_filename
    module = util.load_python_file(dir_, filename)
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\alembic\util\pyfiles.py", line 98, in load_python_file
    module = load_module_py(module_id, path)
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\alembic\util\compat.py", line 184, in load_module_py
    spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\rasax\community\database\schema_migrations\alembic\versions\migration_2019_06_03_initial_migration_2a216ed121dd.py", line 14, in <module>
    import rasax.community.database.schema_migrations.alembic.utils as migration_utils
  File "c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\rasax\community\database\schema_migrations\alembic\utils.py", line 12, in <module>    
    from sqlalchemy.engine import reflection, Row, Connection
ImportError: cannot import name 'Row' from 'sqlalchemy.engine' (c:\users\dever\anaconda3\envs\rasa3\lib\site-packages\sqlalchemy\engine\__init__.py)

Sorry, something went wrong (see error above). Make sure to start Rasa X with valid data and valid domain and config files. Please, also check any warnings that popped up.
If you need help fixing the issue visit our forum: http://forum.rasa.com/.

I am having error too, how can I solve it