I made a python virtualenv using python3.6. Then I installed rasa and rasa x: pip install rasa pip install rasa-x --extra-index-url Simple Index
environment: X64 linux centos7.9 Python 3.6.13
I run rasa init to initiate a new project and trained it. When I started rasa x in this project folder, I got a strange problem:
(rasax) [root@localhost rasaxtest]# rasa x Starting Rasa X in local mode… 0m Traceback (most recent call last): File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/sqlalchemy/engine/base.py”, line 1800, in _execute_context cursor, statement, parameters, context File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/sqlalchemy/engine/default.py”, line 717, in do_execute cursor.execute(statement, parameters) sqlite3.OperationalError: near “WHERE”: syntax error
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/rasa/cli/x.py”, line 502, in run_locally domain_path=domain_path, File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/rasax/community/local.py”, line 234, in main sql_migrations.run_migrations(session) File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/rasax/community/sql_migrations.py”, line 25, in run_migrations _run_schema_migrations(session) File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/rasax/community/sql_migrations.py”, line 41, in _run_schema_migrations _run_alembic_migration(alembic_config) File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/rasax/community/sql_migrations.py”, line 65, in _run_alembic_migration command.upgrade(alembic_config, target_revision) File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/alembic/command.py”, line 298, in upgrade script.run_env() File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/alembic/script/base.py”, line 489, in run_env util.load_python_file(self.dir, “env.py”) File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/alembic/util/pyfiles.py”, line 98, in load_python_file module = load_module_py(module_id, path) File “/root/.virtualenvs/rasax/lib/python3.6/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 “/root/.virtualenvs/rasax/lib/python3.6/site-packages/rasax/community/database/schema_migrations/alembic/env.py”, line 96, in run_migrations_online() File “/root/.virtualenvs/rasax/lib/python3.6/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 “/root/.virtualenvs/rasax/lib/python3.6/site-packages/alembic/runtime/environment.py”, line 846, in run_migrations self.get_context().run_migrations(**kw) File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/alembic/runtime/migration.py”, line 522, in run_migrations step.migration_fn(**kw) File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/rasax/community/database/schema_migrations/alembic/versions/migration_2021_06_09_make_workspace_id_index_partial_30ec36905354.py”, line 39, in upgrade sqlite_where=sa.text(index_text), File “/root/py36/lib/python3.6/contextlib.py”, line 88, in exit next(self.gen) File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/alembic/operations/base.py”, line 353, in batch_alter_table impl.flush() File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/alembic/operations/batch.py”, line 82, in flush fn(*arg, **kw) File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/alembic/ddl/impl.py”, line 283, in create_index self._exec(schema.CreateIndex(index)) File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/alembic/ddl/impl.py”, line 141, in _exec return conn.execute(construct, *multiparams, **params) File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/sqlalchemy/engine/base.py”, line 1286, in execute return meth(self, multiparams, params, _EMPTY_EXECUTION_OPTS) File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py”, line 78, in _execute_on_connection self, multiparams, params, execution_options File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/sqlalchemy/engine/base.py”, line 1384, in _execute_ddl compiled, File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/sqlalchemy/engine/base.py”, line 1843, in execute_context e, statement, parameters, cursor, context File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/sqlalchemy/engine/base.py”, line 2024, in handle_dbapi_exception sqlalchemy_exception, with_traceback=exc_info[2], from=e File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/sqlalchemy/util/compat.py”, line 207, in raise raise exception File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/sqlalchemy/engine/base.py”, line 1800, in _execute_context cursor, statement, parameters, context File “/root/.virtualenvs/rasax/lib/python3.6/site-packages/sqlalchemy/engine/default.py”, line 717, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) near “WHERE”: syntax error [SQL: CREATE INDEX msg_log_workspace_id_idx ON message_log (workspace_id) WHERE workspace_id is not NULL] (Background on this error at: Error Messages — SQLAlchemy 1.4 Documentation)
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/. ^CGoodbye Goodbye Exception ignored in: <Finalize object, dead> Traceback (most recent call last): File “/root/py36/lib/python3.6/multiprocessing/util.py”, line 186, in call File “/root/py36/lib/python3.6/multiprocessing/heap.py”, line 208, in free TypeError: ‘NoneType’ object is not callable Exception ignored in: <Finalize object, dead> Traceback (most recent call last): File “/root/py36/lib/python3.6/multiprocessing/util.py”, line 186, in call File “/root/py36/lib/python3.6/multiprocessing/heap.py”, line 208, in free TypeError: ‘NoneType’ object is not callable Exception ignored in: <Finalize object, dead> Traceback (most recent call last): File “/root/py36/lib/python3.6/multiprocessing/util.py”, line 186, in call File “/root/py36/lib/python3.6/multiprocessing/heap.py”, line 208, in free TypeError: ‘NoneType’ object is not callable Exception ignored in: <Finalize object, dead> Traceback (most recent call last): File “/root/py36/lib/python3.6/multiprocessing/util.py”, line 186, in call File “/root/py36/lib/python3.6/multiprocessing/heap.py”, line 208, in free TypeError: ‘NoneType’ object is not callable