Not able to install rasa-x

This is my Rasa configuration:

Rasa Version      :         2.7.1
Minimum Compatible Version: 2.6.0
Rasa SDK Version  :         2.7.0
Rasa X Version    :         None
Python Version    :         3.8.0
Operating System  :         Windows-10-10.0.19041-SP0
Python Path       :         C:\Users\kushw\Anaconda3\envs\rasa3\python.exe

I want to install rasa-x now but getting the following error:

 Running setup.py install for ujson ... error
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\kushw\Anaconda3\envs\rasa3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\kushw\\AppData\\Local\\Temp\\pip-install-aiduvw_a\\ujson\\setup.py'"'"'; __file__='"'"'C:\\Users\\kushw\\AppData\\Local\\Temp\\pip-install-aiduvw_a\\ujson\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\kushw\AppData\Local\Temp\pip-record-yeq2z0vr\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\kushw\Anaconda3\envs\rasa3\Include\ujson'
         cwd: C:\Users\kushw\AppData\Local\Temp\pip-install-aiduvw_a\ujson\
    Complete output (6 lines):
    Warning: 'classifiers' should be a list, got type 'filter'
    running install
    running build
    running build_ext
    building 'ujson' extension
    error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
    ----------------------------------------
  Rolling back uninstall of ujson
  Moving to c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\ujson-4.0.2.dist-info\
   from C:\Users\kushw\Anaconda3\envs\rasa3\Lib\site-packages\~json-4.0.2.dist-info
  Moving to c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\ujson.cp38-win_amd64.pyd
   from C:\Users\kushw\AppData\Local\Temp\pip-uninstall-m7nxb3x7\ujson.cp38-win_amd64.pyd
ERROR: Command errored out with exit status 1: 'C:\Users\kushw\Anaconda3\envs\rasa3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\kushw\\AppData\\Local\\Temp\\pip-install-aiduvw_a\\ujson\\setup.py'"'"'; __file__='"'"'C:\\Users\\kushw\\AppData\\Local\\Temp\\pip-install-aiduvw_a\\ujson\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\kushw\AppData\Local\Temp\pip-record-yeq2z0vr\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\kushw\Anaconda3\envs\rasa3\Include\ujson' Check the logs for full command output.

@rokush No worries. Please visit this thread Windows installtion of Rasa x - #4, if you having some issues please do let us know. Good Luck

Getting following error again in my chatbot only on running rasa x while chatbot is working fine in terminal.

Traceback (most recent call last):
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\alembic\script\base.py", line 162, in _catch_revision_errors
    yield
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\alembic\script\base.py", line 364, in _upgrade_revs
    revs = list(revs)
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\alembic\script\revision.py", line 765, in _iterate_revisions
    requested_lowers = self.get_revisions(lower)
  File "c:\users\kushw\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\kushw\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\kushw\anaconda3\envs\rasa3\lib\site-packages\alembic\script\revision.py", line 322, in get_revisions
    return tuple(
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\alembic\script\revision.py", line 323, in <genexpr>
    self._revision_for_ident(rev_id, branch_label)
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\alembic\script\revision.py", line 386, in _revision_for_ident
    raise ResolutionError(
alembic.script.revision.ResolutionError: No such revision or branch 'aa5425a6efca'

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

Traceback (most recent call last):
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\rasa\cli\x.py", line 495, in run_locally
    local.main(
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\rasax\community\local.py", line 234, in main
    sql_migrations.run_migrations(session)
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\rasax\community\sql_migrations.py", line 25, in run_migrations
    _run_schema_migrations(session)
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\rasax\community\sql_migrations.py", line 41, in _run_schema_migrations
    _run_alembic_migration(alembic_config)
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\rasax\community\sql_migrations.py", line 65, in _run_alembic_migration
    command.upgrade(alembic_config, target_revision)
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\alembic\command.py", line 298, in upgrade
    script.run_env()
  File "c:\users\kushw\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\kushw\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\kushw\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\kushw\anaconda3\envs\rasa3\lib\site-packages\rasax\community\database\schema_migrations\alembic\env.py", line 96, in <module>
    run_migrations_online()
  File "c:\users\kushw\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\kushw\anaconda3\envs\rasa3\lib\site-packages\alembic\runtime\environment.py", line 846, in run_migrations
    self.get_context().run_migrations(**kw)
  File "c:\users\kushw\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\kushw\anaconda3\envs\rasa3\lib\site-packages\alembic\command.py", line 287, in upgrade
    return script._upgrade_revs(revision, rev)
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\alembic\script\base.py", line 365, in _upgrade_revs
    return [
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\contextlib.py", line 131, in __exit__
    self.gen.throw(type, value, traceback)
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\alembic\script\base.py", line 194, in _catch_revision_errors
    compat.raise_from_cause(util.CommandError(resolution))
  File "c:\users\kushw\anaconda3\envs\rasa3\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:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\alembic\util\compat.py", line 301, in reraise
    raise value.with_traceback(tb)
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\alembic\script\base.py", line 162, in _catch_revision_errors
    yield
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\alembic\script\base.py", line 364, in _upgrade_revs
    revs = list(revs)
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\alembic\script\revision.py", line 765, in _iterate_revisions
    requested_lowers = self.get_revisions(lower)
  File "c:\users\kushw\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\kushw\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\kushw\anaconda3\envs\rasa3\lib\site-packages\alembic\script\revision.py", line 322, in get_revisions
    return tuple(
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\alembic\script\revision.py", line 323, in <genexpr>
    self._revision_for_ident(rev_id, branch_label)
  File "c:\users\kushw\anaconda3\envs\rasa3\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 'aa5425a6efca'

configuration is here in which i build the chatbot:

Rasa Version      :         2.7.1
Minimum Compatible Version: 2.6.0
Rasa SDK Version  :         2.7.0
Rasa X Version    :         0.41.2
Python Version    :         3.8.0
Operating System  :         Windows-10-10.0.19041-SP0
Python Path       :         C:\Users\kushw\Anaconda3\envs\rasa3\python.exe

@rokush great you are able to install, for this current issue please delete events and rasa.db from the project folder and re-run the rasa x from terminal rasa x. I hope this will solve your issue.

Always tag me @ nik202 for a faster response.

@nik202 again showing error even after deleting files you recommended from my project folder

2022-03-03 01:35:26 ERROR    asyncio  - Error on reading from the event loop self pipe
loop: <ProactorEventLoop running=True closed=False debug=False>
Traceback (most recent call last):
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\asyncio\windows_events.py", line 453, in finish_recv
    return ov.getresult()
OSError: [WinError 995] The I/O operation has been aborted because of either a thread exit or an application request

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\asyncio\proactor_events.py", line 768, in _loop_self_reading
    f.result()  # may raise
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\asyncio\windows_events.py", line 808, in _poll
    value = callback(transferred, key, ov)
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\asyncio\windows_events.py", line 457, in finish_recv
    raise ConnectionResetError(*exc.args)
ConnectionResetError: [WinError 995] The I/O operation has been aborted because of either a thread exit or an application request
2022-03-03 01:35:32 WARNING  rasax.community.services.insights.insight_service  - results\response_selection_report.json not found.
2022-03-03 01:35:32 WARNING  rasax.community.services.insights.insight_service  - results\response_selection_errors.json not found.
2022-03-03 01:35:35 ERROR    concurrent.futures  - exception calling callback for <Future at 0x22f41cbe4f0 state=finished raised gaierror>
Traceback (most recent call last):
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\concurrent\futures\thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\socket.py", line 914, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\concurrent\futures\_base.py", line 328, in _invoke_callbacks
    callback(self)
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\asyncio\futures.py", line 371, in _call_set_state
    dest_loop.call_soon_threadsafe(_set_state, destination, source)
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\asyncio\base_events.py", line 756, in call_soon_threadsafe
    self._check_closed()
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\asyncio\base_events.py", line 504, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
2022-03-03 01:35:35 ERROR    concurrent.futures  - exception calling callback for <Future at 0x22f41cbeac0 state=finished returned list>
Traceback (most recent call last):
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\concurrent\futures\_base.py", line 328, in _invoke_callbacks
    callback(self)
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\asyncio\futures.py", line 371, in _call_set_state
    dest_loop.call_soon_threadsafe(_set_state, destination, source)
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\asyncio\base_events.py", line 756, in call_soon_threadsafe
    self._check_closed()
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\asyncio\base_events.py", line 504, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Traceback (most recent call last):
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\rasa\cli\x.py", line 495, in run_locally
    local.main(
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\rasax\community\local.py", line 257, in main
    common_utils.run_in_loop(model_service.discover_models())
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\rasax\community\utils\common.py", line 900, in run_in_loop    return loop.run_until_complete(coro)
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\asyncio\base_events.py", line 608, in run_until_complete
    return future.result()
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\rasax\community\services\model_service.py", line 821, in discover_models
    await model_service.discover_models()
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\rasax\community\services\model_service.py", line 147, in discover_models
    await _run_loop(max_retries, sleep_in_seconds)
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\rasax\community\services\model_service.py", line 133, in _run_loop
    await self._discover_models()
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\rasax\community\services\model_service.py", line 185, in _discover_models
    minimum_version = await self._retry_fetching_minimum_compatible_version()
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\rasax\community\services\model_service.py", line 174, in _retry_fetching_minimum_compatible_version
    minimum_version = await self.minimum_compatible_version()
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\rasax\community\services\model_service.py", line 160, in minimum_compatible_version
    info = await stack_service.version()
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\rasax\community\services\stack_service.py", line 92, in version
    response = await session.get(
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\aiohttp\client.py", line 619, in _request
    break
  File "c:\users\kushw\anaconda3\envs\rasa3\lib\site-packages\aiohttp\helpers.py", line 656, in __exit__
    raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError

@rokush but is this not affecting your bot/user conversation? or it is?

@nik202 not its not

@nik202 But i am not able to open rasa x for interface

@rokush As, I expected and me really disappointed with Rasa Team when they will be fixed this issue.

I know Rasa x 0.41.2 will not run on Windows or any other platform.

Should I suggest an alternative solution if you like, else for this Rasa 0.41.2 best to contact Rasa Team (hope someone will reply)

@nik202 yes please but the thing is i want to preserve my rasa version i.e 2.7.1 as i built my chatbot on this in early 2021 just want a version of rasa x that can run smoothly with it

@rokush no worries please see this:

OR

you just need to follow the Rasa X installation process.

rasa-x 0.39.3 is the best solution for installation on the local machines.

Step 8 so on…

Good luck!! Do update me.