Execute rasa x with an error

Can anyone help me. I have trouble with rasa x.

Rasa Version : 2.8.5 Minimum Compatible Version: 2.8.0 Rasa SDK Version : 2.8.2 Rasa X Version : 0.42.2 Python Version : 3.8.8 Operating System : Windows-10-10.0.19041-SP0 Python Path : c:\users\jean\anaconda3\python.exe

PROBLEM: Traceback (most recent call last): File “c:\users\jean\anaconda3\envs\rasa\lib\site-packages\rasa\cli\x.py”, line 502, in run_locally domain_path=domain_path, File “c:\users\jean\anaconda3\envs\rasa\lib\site-packages\rasax\community\local.py”, line 234, in main sql_migrations.run_migrations(session) File “c:\users\jean\anaconda3\envs\rasa\lib\site-packages\rasax\community\sql_migrations.py”, line 25, in run_migrations _run_schema_migrations(session) File “c:\users\jean\anaconda3\envs\rasa\lib\site-packages\rasax\community\sql_migrations.py”, line 41, in _run_schema_migrations _run_alembic_migration(alembic_config) File “c:\users\jean\anaconda3\envs\rasa\lib\site-packages\rasax\community\sql_migrations.py”, line 65, in _run_alembic_migration command.upgrade(alembic_config, target_revision) File “c:\users\jean\anaconda3\envs\rasa\lib\site-packages\alembic\command.py”, line 298, in upgrade script.run_env() File “c:\users\jean\anaconda3\envs\rasa\lib\site-packages\alembic\script\base.py”, line 489, in run_env util.load_python_file(self.dir, “env.py”) File “c:\users\jean\anaconda3\envs\rasa\lib\site-packages\alembic\util\pyfiles.py”, line 98, in load_python_file module = load_module_py(module_id, path) File “c:\users\jean\anaconda3\envs\rasa\lib\site-packages\alembic\util\compat.py”, line 184, in load_module_py spec.loader.exec_module(module) File “”, line 728, in exec_module File “”, line 219, in _call_with_frames_removed File “c:\users\jean\anaconda3\envs\rasa\lib\site-packages\rasax\community\database\schema_migrations\alembic\env.py”, line 96, in run_migrations_online() File “c:\users\jean\anaconda3\envs\rasa\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\jean\anaconda3\envs\rasa\lib\site-packages\alembic\runtime\environment.py”, line 846, in run_migrations self.get_context().run_migrations(*kw) File “c:\users\jean\anaconda3\envs\rasa\lib\site-packages\alembic\runtime\migration.py”, line 511, in run_migrations for step in self._migrations_fn(heads, self): File “c:\users\jean\anaconda3\envs\rasa\lib\site-packages\alembic\command.py”, line 287, in upgrade return script._upgrade_revs(revision, rev) File “c:\users\jean\anaconda3\envs\rasa\lib\site-packages\alembic\script\base.py”, line 364, in upgrade_revs revs = list(revs) File “c:\users\jean\anaconda3\envs\rasa\lib\site-packages\alembic\script\revision.py”, line 765, in iterate_revisions requested_lowers = self.get_revisions(lower) File “c:\users\jean\anaconda3\envs\rasa\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\jean\anaconda3\envs\rasa\lib\site-packages\alembic\script\revision.py”, line 319, in return sum([self.get_revisions(id_elem) for id_elem in id], ()) File “c:\users\jean\anaconda3\envs\rasa\lib\site-packages\alembic\script\revision.py”, line 321, in get_revisions resolved_id, branch_label = self.resolve_revision_number(id) File “c:\users\jean\anaconda3\envs\rasa\lib\site-packages\alembic\script\revision.py”, line 501, in _resolve_revision_number self._revision_map File “c:\users\jean\anaconda3\envs\rasa\lib\site-packages\alembic\util\langhelpers.py”, line 230, in get obj.dict[self.name] = result = self.fget(obj) File “c:\users\jean\anaconda3\envs\rasa\lib\site-packages\alembic\script\revision.py”, line 123, in _revision_map for revision in self._generator(): File “c:\users\jean\anaconda3\envs\rasa\lib\site-packages\alembic\script\base.py”, line 112, in load_revisions script = Script.from_filename(self, vers, file) File “c:\users\jean\anaconda3\envs\rasa\lib\site-packages\alembic\script\base.py”, line 906, in from_filename module = util.load_python_file(dir, filename) File “c:\users\jean\anaconda3\envs\rasa\lib\site-packages\alembic\util\pyfiles.py”, line 98, in load_python_file module = load_module_py(module_id, path) File “c:\users\jean\anaconda3\envs\rasa\lib\site-packages\alembic\util\compat.py”, line 184, in load_module_py spec.loader.exec_module(module) File “”, line 728, in exec_module File “”, line 219, in *call_with_frames_removed File “c:\users\jean\anaconda3\envs\rasa\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\jean\anaconda3\envs\rasa\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’ from ‘sqlalchemy.engine’ (c:\users\jean\anaconda3\envs\rasa\lib\site-packages\sqlalchemy\engineinit.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/.

@26wennnncc Hi, Please try install

pip install SQLAlchemy==1.3.22

If you got any issue please share with us.

@nik202

Hi I also have some trouble with installing pip install SQLAlchemy==1.3.22 Can you help me?Thanks!

Error code like this

ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. rasa-x 0.42.2 requires SQLAlchemy<2.0.0,>=1.4.0, but you have sqlalchemy 1.3.22 which is incompatible.

@tim155023 please share your rasa version screenshot to me rasa --version

@26wennnncc Are you able to solve this issue?

@nik202 HI

there is my version

Rasa Version : 2.8.6 Minimum Compatible Version: 2.8.0 Rasa SDK Version : 2.8.2 Rasa X Version : 0.42.2 Python Version : 3.8.8 Operating System : Windows-10-10.0.19041-SP0 Python Path : f:\anaconda3\envs\rasa\python.exe

@tim155023 please change you share the error screenshot please.

sorry, but I got the same problem: 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/.

However

  1. When I try to installpip install SQLAlchemy==1.3.22 . I got this

ImportError: cannot import name ‘InvalidSchemeCombination’ from ‘pip._internal.exceptions’ (C:\Users\Jean\anaconda3\lib\site-packages\pip_internal\exceptions.py)

2.And I also found some problem because I tried to install my python and rasa with another version

ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. spyder 4.2.5 requires pyqt5<5.13, which is not installed. spyder 4.2.5 requires pyqtwebengine<5.13, which is not installed. python-language-server 0.36.2 requires ujson>=3.0.0; python_version > “3”, but you have ujson 1.35 which is incompatible. python-jsonrpc-server 0.4.0 requires ujson>=3.0.0, but you have ujson 1.35 which is incompatible.

Thank you very much!

@26wennnncc

Can I request to start the fresh approach

create a fresh conda environment with python 3.7 or 3.8

  1. conda create -n “Your_Environment_Name” python==3.8
  2. conda activate Your_Environment_Name

and follow these 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 files of events and rasa if showing alembic error.

Good luck! I hope this will solve your issue.Please share me the error, can you please try this solution now, if you free.

I’ll do it right now thanks

I did it! thank you!

@26wennnncc It worked? if yes please close this thread as solution for others. Good Luck and keep safe!

OK! Thank you so much.

@26wennnncc No worries, happy to help you :pray: