Rasa x is not working.it is throwing below mentioned error.Please suggest me, any solution

Starting Rasa X in local mode… :rocket: Traceback (most recent call last): File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\script\base.py”, line 162, in _catch_revision_errors yield File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\script\base.py”, line 364, in upgrade_revs revs = list(revs) File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\script\revision.py”, line 765, in iterate_revisions requested_lowers = self.get_revisions(lower) File “c:\programdata\anaconda3\envs\rasa_bot\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:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\script\revision.py”, line 319, in return sum([self.get_revisions(id_elem) for id_elem in id], ()) File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\script\revision.py”, line 322, in get_revisions return tuple( File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\script\revision.py”, line 323, in self._revision_for_ident(rev_id, branch_label) File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\script\revision.py”, line 386, in _revision_for_ident raise ResolutionError( alembic.script.revision.ResolutionError: No such revision or branch ‘652500998f3e’

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\rasa\cli\x.py”, line 495, in run_locally local.main( File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\rasax\community\local.py”, line 234, in main sql_migrations.run_migrations(session) File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\rasax\community\sql_migrations.py”, line 25, in run_migrations _run_schema_migrations(session) File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\rasax\community\sql_migrations.py”, line 41, in _run_schema_migrations _run_alembic_migration(alembic_config) File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\rasax\community\sql_migrations.py”, line 65, in _run_alembic_migration command.upgrade(alembic_config, target_revision) File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\command.py”, line 298, in upgrade script.run_env() File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\script\base.py”, line 489, in run_env util.load_python_file(self.dir, “env.py”) File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\util\pyfiles.py”, line 98, in load_python_file module = load_module_py(module_id, path) File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\util\compat.py”, line 184, in load_module_py spec.loader.exec_module(module) File “”, line 783, in exec_module File “”, line 219, in _call_with_frames_removed File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\rasax\community\database\schema_migrations\alembic\env.py”, line 96, in run_migrations_online() File “c:\programdata\anaconda3\envs\rasa_bot\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:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\runtime\environment.py”, line 846, in run_migrations self.get_context().run_migrations(**kw) File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\runtime\migration.py”, line 511, in run_migrations for step in self._migrations_fn(heads, self): File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\command.py”, line 287, in upgrade return script._upgrade_revs(revision, rev) File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\script\base.py”, line 365, in _upgrade_revs return [ File “c:\programdata\anaconda3\envs\rasa_bot\lib\contextlib.py”, line 131, in exit self.gen.throw(type, value, traceback) File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\script\base.py”, line 194, in _catch_revision_errors compat.raise_from_cause(util.CommandError(resolution)) File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\util\compat.py”, line 308, in raise_from_cause reraise(type(exception), exception, tb=exc_tb, cause=exc_value) File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\util\compat.py”, line 301, in reraise raise value.with_traceback(tb) File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\script\base.py”, line 162, in _catch_revision_errors yield File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\script\base.py”, line 364, in upgrade_revs revs = list(revs) File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\script\revision.py”, line 765, in iterate_revisions requested_lowers = self.get_revisions(lower) File “c:\programdata\anaconda3\envs\rasa_bot\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:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\script\revision.py”, line 319, in return sum([self.get_revisions(id_elem) for id_elem in id], ()) File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\script\revision.py”, line 322, in get_revisions return tuple( File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\script\revision.py”, line 323, in self._revision_for_ident(rev_id, branch_label) File “c:\programdata\anaconda3\envs\rasa_bot\lib\site-packages\alembic\script\revision.py”, line 386, in _revision_for_ident raise ResolutionError( alembic.util.exc.CommandError: Can’t locate revision identified by ‘652500998f3e’

@vijaynchakole can you please share me the rasa version rasa --version

@vijaynchakole a quick fix:

delete .db database file ‘events’ and ‘rasa’ and it will work and .db file automatic created as you run rasa x.

Screenshot 2021-08-20 at 11.07.43 AM

If you have any new error, do share with me, else close this thread with the solution for other. Good Luck!

@nik202 I am using Python Version 3.8, Rasa Version : 2.6.2, Rasa X Version : 0.40.0

where I can find these(events.db and rasa.db) files for deleting…I have searched them but didn’t get their location path

@vijaynchakole I mentioned when you run rasa x it will automatically created and you will see the rasa x running in your default web browser, I’d suggest use Chrome as your web browser.

When I run rasa x command …then it throws error…it is not opening in the default browser

@vijaynchakole share again rasa version using rasa --version

Rasa Version : 2.6.2

Minimum Compatible Version: 2.6.0

Rasa SDK Version : 2.8.1

Rasa X Version : 0.40.0

Python Version : 3.8.0

Operating System : Windows-10-10.0.14393-SP0

Python Path : c:\programdata\anaconda3\envs\rasa_bot\python.exe

@vijaynchakole can you please update rasa 2.6.2 to pip install rasa==2.8.1 and rasa x to 0.39.3

@vijaynchakole

I’d recommend to create a fresh conda environment with python 3.8 and follow the step

`pip install rasa==2.8.1`
`pip install rasa-sdk==2.8.1'

check version rasa --version its install or not

then

pip install rasa-x==0.39.3 --extra-index-url https://pypi.rasa.com/simple

check rasa version rasa --version its install or not

You will see some error : ImportError: cannot import name ‘RowProxy’ from ‘sqlalchemy.engine’ Install

pip install SQLAlchemy==1.3.22 should fix it

If sanic related error: pip install sanic-jwt==1.6.0

delete .db if is showing alembic issue.

Good luck! I hope this will solve your issue.

Thank you…I will follow the procedure and update you…thanks you

@vijaynchakole no worries, I know this will work for you!

1 Like

@nik202 your word is 100% true :slightly_smiling_face:. it is working. everything is looks good now :slightly_smiling_face: thank you so much…thanks for great help.

@vijaynchakole Wooo hoo. I know buddy. Please close this thread with the solution for others and good luck!

yes.sure. thank you once again.

@vijaynchakole come on man don’t say thanks again, just learn and make your project successful whilst using rasa :slight_smile:

1 Like