Error while 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 “”, line 678, in exec_module File “”, 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 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 “”, 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 “”, line 678, in exec_module File “”, 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 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 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: https://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.

2 Likes

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

Installing SQLAlchemy didn´t worked for me.

Thanks

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.