Rasa X is not working in Windows 10

Hii I faced an issue when trying out to initiate Rasa X. Rasa shell and action server work fine under the commands.

For reference

> 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.10
> Operating System  :         Windows-10-10.0.19041-SP0
> Python Path       :         c:\users\asd\anaconda3\envs\myenv\python.exe

This is what I get when executing rasa X


(myenv) F:\FYP - Copy\formbot>rasa x
Starting Rasa X in local mode... 🚀
2021-09-10 02:10:27 WARNING  rasax.community.services.insights.insight_service  - No local evaluation result files found.
2021-09-10 02:10:31 ERROR    concurrent.futures  - exception calling callback for <Future at 0x27cc4f84280 state=finished raised gaierror>
Traceback (most recent call last):
  File "c:\users\asd\anaconda3\envs\myenv\lib\concurrent\futures\thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "c:\users\asd\anaconda3\envs\myenv\lib\socket.py", line 918, 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\asd\anaconda3\envs\myenv\lib\concurrent\futures\_base.py", line 328, in _invoke_callbacks
    callback(self)
  File "c:\users\asd\anaconda3\envs\myenv\lib\asyncio\futures.py", line 374, in _call_set_state
    dest_loop.call_soon_threadsafe(_set_state, destination, source)
  File "c:\users\asd\anaconda3\envs\myenv\lib\asyncio\base_events.py", line 764, in call_soon_threadsafe
    self._check_closed()
  File "c:\users\asd\anaconda3\envs\myenv\lib\asyncio\base_events.py", line 508, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
2021-09-10 02:10:31 ERROR    concurrent.futures  - exception calling callback for <Future at 0x27cc4f84730 state=finished returned list>
Traceback (most recent call last):
  File "c:\users\asd\anaconda3\envs\myenv\lib\concurrent\futures\_base.py", line 328, in _invoke_callbacks
    callback(self)
  File "c:\users\asd\anaconda3\envs\myenv\lib\asyncio\futures.py", line 374, in _call_set_state
    dest_loop.call_soon_threadsafe(_set_state, destination, source)
  File "c:\users\asd\anaconda3\envs\myenv\lib\asyncio\base_events.py", line 764, in call_soon_threadsafe
    self._check_closed()
  File "c:\users\asd\anaconda3\envs\myenv\lib\asyncio\base_events.py", line 508, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Traceback (most recent call last):
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\rasa\cli\x.py", line 496, in run_locally
    local.main(
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\local.py", line 257, in main
    common_utils.run_in_loop(model_service.discover_models())
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\utils\common.py", line 900, in run_in_loop
    return loop.run_until_complete(coro)
  File "c:\users\asd\anaconda3\envs\myenv\lib\asyncio\base_events.py", line 616, in run_until_complete
    return future.result()
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\services\model_service.py", line 821, in discover_models
    await model_service.discover_models()
  File "c:\users\asd\anaconda3\envs\myenv\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\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\services\model_service.py", line 133, in _run_loop
    await self._discover_models()
  File "c:\users\asd\anaconda3\envs\myenv\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\asd\anaconda3\envs\myenv\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\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\services\model_service.py", line 160, in minimum_compatible_version
    info = await stack_service.version()
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\services\stack_service.py", line 112, in version
    response = await session.get(
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\aiohttp\client.py", line 619, in _request
    break
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\aiohttp\helpers.py", line 656, in __exit__
    raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError

2021-09-10 02:10:32 ERROR    asyncio  - Task was destroyed but it is pending!
task: <Task pending name='Task-8' coro=<TCPConnector._resolve_host() running at c:\users\asd\anaconda3\envs\myenv\lib\site-packages\aiohttp\connector.py:865> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at c:\users\asd\anaconda3\envs\myenv\lib\asyncio\futures.py:360, <TaskWakeupMethWrapper object at 0x0000027CC4F84670>()]> cb=[TCPConnector._create_direct_connection.<locals>.drop_exception() at c:\users\asd\anaconda3\envs\myenv\lib\site-packages\aiohttp\connector.py:1002]>
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/.

@RajithaBandara Heya! Is Rasa x is opening in your default web browser and are you able to do the conversation? I guess you getting response slow?

OR

set environment variable RASA_VERSION_TIMEOUT_IN_SECONDS=60

Good Luck!

1 Like

@nik202 Thanks for the reply. I tried it, and it opened the browser with no Rendered UI and throws out some errors in the CMD prompt as below

these are my steps 1- rasa run actions 3 - set the RASA_VERSION_TIMEOUT_IN_SECONDS=60 2 - rasa x ( in a separate CMD )

This throws regularly

[2021-09-10 13:04:09 +0530] [7596] [ERROR] Exception occurred while handling uri: 'http://localhost:5002/api/projects/default/models/tags/production?token=1b8dcf22b04768a62f8c5434b2359f99'
Traceback (most recent call last):
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\sanic\app.py", line 908, in handle_request
    response = await self._run_request_middleware(
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\spf\framework.py", line 646, in _run_request_middleware_19_12
    response = await response
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\database\utils.py", line 368, in set_session
    user = await decorators.user_from_request(request)
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\api\decorators.py", line 90, in user_from_request
    return await _get_user_from_request(request.app, request)
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\api\decorators.py", line 73, in _get_user_from_request
    payload = await instance.auth.extract_payload(request, verify=False)
AttributeError: 'Sanic' object has no attribute 'auth'
'Sanic' object has no attribute 'auth'
[2021-09-10 13:04:13 +0530] [7596] [ERROR] Exception occurred while handling uri: 'http://localhost:5002/api/projects/default/models/tags/production?token=1b8dcf22b04768a62f8c5434b2359f99'
Traceback (most recent call last):
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\sanic\app.py", line 908, in handle_request
    response = await self._run_request_middleware(
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\spf\framework.py", line 646, in _run_request_middleware_19_12
    response = await response
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\database\utils.py", line 368, in set_session
    user = await decorators.user_from_request(request)
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\api\decorators.py", line 90, in user_from_request
    return await _get_user_from_request(request.app, request)
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\api\decorators.py", line 73, in _get_user_from_request
    payload = await instance.auth.extract_payload(request, verify=False)
AttributeError: 'Sanic' object has no attribute 'auth'
'Sanic' object has no attribute 'auth'
[2021-09-10 13:04:17 +0530] [7596] [ERROR] Exception occurred while handling uri: 'http://localhost:5002/api/projects/default/models/tags/production?token=1b8dcf22b04768a62f8c5434b2359f99'
Traceback (most recent call last):
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\sanic\app.py", line 908, in handle_request
    response = await self._run_request_middleware(
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\spf\framework.py", line 646, in _run_request_middleware_19_12
    response = await response
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\database\utils.py", line 368, in set_session
    user = await decorators.user_from_request(request)
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\api\decorators.py", line 90, in user_from_request
    return await _get_user_from_request(request.app, request)
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\api\decorators.py", line 73, in _get_user_from_request
    payload = await instance.auth.extract_payload(request, verify=False)
AttributeError: 'Sanic' object has no attribute 'auth'
'Sanic' object has no attribute 'auth'
[2021-09-10 13:04:21 +0530] [7596] [ERROR] Exception occurred while handling uri: 'http://localhost:5002/api/projects/default/models/tags/production?token=1b8dcf22b04768a62f8c5434b2359f99'
Traceback (most recent call last):
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\sanic\app.py", line 908, in handle_request
    response = await self._run_request_middleware(
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\spf\framework.py", line 646, in _run_request_middleware_19_12
    response = await response
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\database\utils.py", line 368, in set_session
    user = await decorators.user_from_request(request)
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\api\decorators.py", line 90, in user_from_request
    return await _get_user_from_request(request.app, request)
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\api\decorators.py", line 73, in _get_user_from_request
    payload = await instance.auth.extract_payload(request, verify=False)
AttributeError: 'Sanic' object has no attribute 'auth'
'Sanic' object has no attribute 'auth'

@RajithaBandara Try update this or other version

pip install sanic==20.9.0

I guess this will solve your issue.

@nik thanks a lot for the reply, I am truly sorry to say that, I have tried several version combinations by referring to forums until you look into my issue. From now onwards ill hold trying solutions and follow up with your suggestions.

please look into my current status.

My steps

1- *rasa run actions* (CMD prompt 1)
2 - I set the time by *SET RASA_VERSION_TIMEOUT_IN_SECONDS=60* (CMD promt 2)
3 - *rasa x*  (CMD promt 2)

Versions

Rasa Version      :         2.8.1
Minimum Compatible Version: 2.8.0
Rasa SDK Version  :         2.8.1
Rasa X Version    :         0.42.0
Python Version    :         3.8.10
Operating System  :         Windows-10-10.0.19041-SP0
Python Path       :         c:\users\asd\anaconda3\envs\myenv\python.exe

sanic versions

sanic                   20.9.1
Sanic-Cors              0.10.0.post3
sanic-jwt               1.6.0
Sanic-Plugins-Framework 0.9.5

I am using anaconda for managing python environments

Issue I got


(myenv) F:\FYP - Copy\formbot>rasa x
Starting Rasa X in local mode... 🚀
2021-09-10 14:35:04 WARNING  rasax.community.services.insights.insight_service  - No local evaluation result files found.
2021-09-10 14:35:08 ERROR    concurrent.futures  - exception calling callback for <Future at 0x1f900b27640 state=finished raised gaierror>
Traceback (most recent call last):
  File "c:\users\asd\anaconda3\envs\myenv\lib\concurrent\futures\thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "c:\users\asd\anaconda3\envs\myenv\lib\socket.py", line 918, 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\asd\anaconda3\envs\myenv\lib\concurrent\futures\_base.py", line 328, in _invoke_callbacks
    callback(self)
  File "c:\users\asd\anaconda3\envs\myenv\lib\asyncio\futures.py", line 374, in _call_set_state
    dest_loop.call_soon_threadsafe(_set_state, destination, source)
  File "c:\users\asd\anaconda3\envs\myenv\lib\asyncio\base_events.py", line 764, in call_soon_threadsafe
    self._check_closed()
  File "c:\users\asd\anaconda3\envs\myenv\lib\asyncio\base_events.py", line 508, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
2021-09-10 14:35:08 ERROR    concurrent.futures  - exception calling callback for <Future at 0x1f900b27af0 state=finished returned list>
Traceback (most recent call last):
  File "c:\users\asd\anaconda3\envs\myenv\lib\concurrent\futures\_base.py", line 328, in _invoke_callbacks
    callback(self)
  File "c:\users\asd\anaconda3\envs\myenv\lib\asyncio\futures.py", line 374, in _call_set_state
    dest_loop.call_soon_threadsafe(_set_state, destination, source)
  File "c:\users\asd\anaconda3\envs\myenv\lib\asyncio\base_events.py", line 764, in call_soon_threadsafe
    self._check_closed()
  File "c:\users\asd\anaconda3\envs\myenv\lib\asyncio\base_events.py", line 508, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Traceback (most recent call last):
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\rasa\cli\x.py", line 496, in run_locally
    local.main(
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\local.py", line 257, in main
    common_utils.run_in_loop(model_service.discover_models())
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\utils\common.py", line 900, in run_in_loop
    return loop.run_until_complete(coro)
  File "c:\users\asd\anaconda3\envs\myenv\lib\asyncio\base_events.py", line 616, in run_until_complete
    return future.result()
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\services\model_service.py", line 821, in discover_models
    await model_service.discover_models()
  File "c:\users\asd\anaconda3\envs\myenv\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\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\services\model_service.py", line 133, in _run_loop
    await self._discover_models()
  File "c:\users\asd\anaconda3\envs\myenv\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\asd\anaconda3\envs\myenv\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\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\services\model_service.py", line 160, in minimum_compatible_version
    info = await stack_service.version()
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\rasax\community\services\stack_service.py", line 107, in version
    response = await session.get(
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\aiohttp\client.py", line 619, in _request
    break
  File "c:\users\asd\anaconda3\envs\myenv\lib\site-packages\aiohttp\helpers.py", line 656, in __exit__
    raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError

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/.

@RajithaBandara No worries. Well please follow these steps and ignore other steps:

Step 1:

pip install rasa==2.8.1 pip install rasa-sdk==2.8.1

Step 2: Downgrade the rasa x version to

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

Step 3:

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

pip install SQLAlchemy==1.3.22

Step 4:

If sanic related error:

pip install sanic-jwt==1.6.0

Step 5:

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

Note: I’m also currently figuring out the latest rasa version 0.42 installation issues, till now I’d request to use rasa 0.39.3.

Please do share the new errors, I guess you will solve this now.

1 Like

@nik202 it seems the solution worked out but still getting some errors. but doesn’t seems the browser got synced with Rasa is it due to low performance of the computer ???

(myenv) F:\FYP - Copy\formbot>rasa x
Starting Rasa X in local mode... 🚀
2021-09-10 15:22:28 WARNING  rasax.community.services.insights.insight_service  - No local evaluation result files found.
2021-09-10 15:22:30 ERROR    concurrent.futures  - exception calling callback for <Future at 0x22c27eed1f0 state=finished raised gaierror>
Traceback (most recent call last):
  File "c:\users\asd\anaconda3\envs\myenv\lib\concurrent\futures\thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "c:\users\asd\anaconda3\envs\myenv\lib\socket.py", line 918, 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\asd\anaconda3\envs\myenv\lib\concurrent\futures\_base.py", line 328, in _invoke_callbacks
    callback(self)
  File "c:\users\asd\anaconda3\envs\myenv\lib\asyncio\futures.py", line 374, in _call_set_state
    dest_loop.call_soon_threadsafe(_set_state, destination, source)
  File "c:\users\asd\anaconda3\envs\myenv\lib\asyncio\base_events.py", line 764, in call_soon_threadsafe
    self._check_closed()
  File "c:\users\asd\anaconda3\envs\myenv\lib\asyncio\base_events.py", line 508, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
2021-09-10 15:22:30 ERROR    concurrent.futures  - exception calling callback for <Future at 0x22c27f4de50 state=finished returned list>
Traceback (most recent call last):
  File "c:\users\asd\anaconda3\envs\myenv\lib\concurrent\futures\_base.py", line 328, in _invoke_callbacks
    callback(self)
  File "c:\users\asd\anaconda3\envs\myenv\lib\asyncio\futures.py", line 374, in _call_set_state
    dest_loop.call_soon_threadsafe(_set_state, destination, source)
  File "c:\users\asd\anaconda3\envs\myenv\lib\asyncio\base_events.py", line 764, in call_soon_threadsafe
    self._check_closed()
  File "c:\users\asd\anaconda3\envs\myenv\lib\asyncio\base_events.py", line 508, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
[2021-09-10 15:23:10 +0530] [9928] [INFO] Goin' Fast @ http://0.0.0.0:5002
2021-09-10 15:23:10 INFO     sanic.root  - Goin' Fast @ http://0.0.0.0:5002

The server is running at http://localhost:5002/login?username=me&password=xhnb1tBG6x0p

[2021-09-10 15:23:13 +0530] [9928] [INFO] Starting worker [9928]
2021-09-10 15:23:13 INFO     sanic.root  - Starting worker [9928]
2021-09-10 15:23:57 ERROR    asyncio  - Task was destroyed but it is pending!
task: <Task pending name='Task-8' coro=<TCPConnector._resolve_host() running at c:\users\asd\anaconda3\envs\myenv\lib\site-packages\aiohttp\connector.py:865> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at c:\users\asd\anaconda3\envs\myenv\lib\asyncio\futures.py:360, <TaskWakeupMethWrapper object at 0x0000022C27F4D2E0>()]> cb=[TCPConnector._create_direct_connection.<locals>.drop_exception() at c:\users\asd\anaconda3\envs\myenv\lib\site-packages\aiohttp\connector.py:1002]>
2021-09-10 15:23:57 ERROR    asyncio  - Task was destroyed but it is pending!
task: <Task pending name='Task-9' coro=<TCPConnector._resolve_host() running at c:\users\asd\anaconda3\envs\myenv\lib\site-packages\aiohttp\connector.py:865> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at c:\users\asd\anaconda3\envs\myenv\lib\asyncio\futures.py:360, <TaskWakeupMethWrapper object at 0x0000022C27F4D190>()]> cb=[TCPConnector._create_direct_connection.<locals>.drop_exception() at c:\users\asd\anaconda3\envs\myenv\lib\site-packages\aiohttp\connector.py:1002]>

@RajithaBandara If this is not disturbing your conversation, then I guess it’s fine or even sometime network issue can be as you can see TCP issue. Transmission Control Protocol which is big brother of IP (internet protocol) I can be wrong too :slight_smile:

@RajithaBandara May be this is remove in next build as rasa team is working very hard on some issues to fixed. I hope you will cooperate. Thanks.

@nik202 I got it. Thanks a lot. :slightly_smiling_face: :slightly_smiling_face: :slightly_smiling_face:

@RajithaBandara Its ok bro :handshake: happy to help. Good Luck and please subscribe rasa youtube channel for more updates https://www.youtube.com/c/RasaHQ or rasa newsletter https://rasa.com

1 Like

@nik202 sorry to coming back in the old thread, the previous setup on my windows operating laptop had been sorted out with your help. due to consuming a lot of training time, I wanted to migrate the chatbot to my MacBook.

(setting up status of the MacBook)

Initially, the Rasa x setup was working smoothly but today for some reason it won’t working and I came back to this raised issue and tried the same versions with the in the anaconda environment, but still, it remains not working with the above suggestion marked as the solution.

Reference

Rasa Version      :         2.8.1
Minimum Compatible Version: 2.8.0
Rasa SDK Version  :         2.8.1
Rasa X Version    :         0.39.3
Python Version    :         3.8.11
Operating System  :         macOS-10.16-x86_64-i386-64bit
Python Path       :         /Users/rajithabandara/opt/anaconda3/envs/rasabot/bin/python

sanic versions

sanic                   20.9.0
Sanic-Cors              0.10.0.post3
sanic-jwt               1.6.0
Sanic-Plugins-Framework 0.9.5Preformatted text

Error

Starting Rasa X in local mode... 🚀
2021-09-14 17:17:38 WARNING  rasax.community.services.insights.insight_service  - No local evaluation result files found.
[2021-09-14 17:17:47 +0530] [2198] [INFO] Goin' Fast @ http://0.0.0.0:5002
2021-09-14 17:17:47 INFO     sanic.root  - Goin' Fast @ http://0.0.0.0:5002

The server is running at http://localhost:5002/login?username=me&password=12MIJJStblZs

[2021-09-14 17:17:47 +0530] [2198] [INFO] Starting worker [2198]
2021-09-14 17:17:47 INFO     sanic.root  - Starting worker [2198]
[2021-09-14 17:17:47 +0530] [2198] [ERROR] Exception occurred while handling uri: 'http://localhost:5002/static/css/2.d0c6ce9d.chunk.css'
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sanic/app.py", line 909, in handle_request
    request, request_name=name
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spf/framework.py", line 646, in _run_request_middleware_19_12
    response = await response
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/database/utils.py", line 368, in set_session
    user = await decorators.user_from_request(request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 90, in user_from_request
    return await _get_user_from_request(request.app, request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 73, in _get_user_from_request
    payload = await instance.auth.extract_payload(request, verify=False)
AttributeError: 'Sanic' object has no attribute 'auth'
2021-09-14 17:17:47 ERROR    sanic.root  - Exception occurred while handling uri: 'http://localhost:5002/static/css/2.d0c6ce9d.chunk.css'
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sanic/app.py", line 909, in handle_request
    request, request_name=name
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spf/framework.py", line 646, in _run_request_middleware_19_12
    response = await response
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/database/utils.py", line 368, in set_session
    user = await decorators.user_from_request(request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 90, in user_from_request
    return await _get_user_from_request(request.app, request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 73, in _get_user_from_request
    payload = await instance.auth.extract_payload(request, verify=False)
AttributeError: 'Sanic' object has no attribute 'auth'
'Sanic' object has no attribute 'auth'
[2021-09-14 17:17:47 +0530] [2198] [ERROR] Exception occurred while handling uri: 'http://localhost:5002/static/css/main.7023b552.chunk.css'
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sanic/app.py", line 909, in handle_request
    request, request_name=name
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spf/framework.py", line 646, in _run_request_middleware_19_12
    response = await response
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/database/utils.py", line 368, in set_session
    user = await decorators.user_from_request(request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 90, in user_from_request
    return await _get_user_from_request(request.app, request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 73, in _get_user_from_request
    payload = await instance.auth.extract_payload(request, verify=False)
AttributeError: 'Sanic' object has no attribute 'auth'
2021-09-14 17:17:47 ERROR    sanic.root  - Exception occurred while handling uri: 'http://localhost:5002/static/css/main.7023b552.chunk.css'
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sanic/app.py", line 909, in handle_request
    request, request_name=name
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spf/framework.py", line 646, in _run_request_middleware_19_12
    response = await response
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/database/utils.py", line 368, in set_session
    user = await decorators.user_from_request(request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 90, in user_from_request
    return await _get_user_from_request(request.app, request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 73, in _get_user_from_request
    payload = await instance.auth.extract_payload(request, verify=False)
AttributeError: 'Sanic' object has no attribute 'auth'
'Sanic' object has no attribute 'auth'
[2021-09-14 17:17:47 +0530] [2198] [ERROR] Exception occurred while handling uri: 'http://localhost:5002/static/js/2.51a60f9e.chunk.js'
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sanic/app.py", line 909, in handle_request
    request, request_name=name
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spf/framework.py", line 646, in _run_request_middleware_19_12
    response = await response
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/database/utils.py", line 368, in set_session
    user = await decorators.user_from_request(request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 90, in user_from_request
    return await _get_user_from_request(request.app, request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 73, in _get_user_from_request
    payload = await instance.auth.extract_payload(request, verify=False)
AttributeError: 'Sanic' object has no attribute 'auth'
2021-09-14 17:17:47 ERROR    sanic.root  - Exception occurred while handling uri: 'http://localhost:5002/static/js/2.51a60f9e.chunk.js'
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sanic/app.py", line 909, in handle_request
    request, request_name=name
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spf/framework.py", line 646, in _run_request_middleware_19_12
    response = await response
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/database/utils.py", line 368, in set_session
    user = await decorators.user_from_request(request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 90, in user_from_request
    return await _get_user_from_request(request.app, request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 73, in _get_user_from_request
    payload = await instance.auth.extract_payload(request, verify=False)
AttributeError: 'Sanic' object has no attribute 'auth'
'Sanic' object has no attribute 'auth'
[2021-09-14 17:17:47 +0530] [2198] [ERROR] Exception occurred while handling uri: 'http://localhost:5002/static/js/main.dc8fd3ed.chunk.js'
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sanic/app.py", line 909, in handle_request
    request, request_name=name
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spf/framework.py", line 646, in _run_request_middleware_19_12
    response = await response
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/database/utils.py", line 368, in set_session
    user = await decorators.user_from_request(request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 90, in user_from_request
    return await _get_user_from_request(request.app, request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 73, in _get_user_from_request
    payload = await instance.auth.extract_payload(request, verify=False)
AttributeError: 'Sanic' object has no attribute 'auth'
2021-09-14 17:17:47 ERROR    sanic.root  - Exception occurred while handling uri: 'http://localhost:5002/static/js/main.dc8fd3ed.chunk.js'
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sanic/app.py", line 909, in handle_request
    request, request_name=name
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spf/framework.py", line 646, in _run_request_middleware_19_12
    response = await response
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/database/utils.py", line 368, in set_session
    user = await decorators.user_from_request(request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 90, in user_from_request
    return await _get_user_from_request(request.app, request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 73, in _get_user_from_request
    payload = await instance.auth.extract_payload(request, verify=False)
AttributeError: 'Sanic' object has no attribute 'auth'
'Sanic' object has no attribute 'auth'
[2021-09-14 17:17:48 +0530] [2198] [ERROR] Exception occurred while handling uri: 'http://localhost:5002/api/projects/default/models/tags/production?token=fdcca3d1606539d560c22339710f83db'
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sanic/app.py", line 909, in handle_request
    request, request_name=name
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spf/framework.py", line 646, in _run_request_middleware_19_12
    response = await response
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/database/utils.py", line 368, in set_session
    user = await decorators.user_from_request(request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 90, in user_from_request
    return await _get_user_from_request(request.app, request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 73, in _get_user_from_request
    payload = await instance.auth.extract_payload(request, verify=False)
AttributeError: 'Sanic' object has no attribute 'auth'
2021-09-14 17:17:48 ERROR    sanic.root  - Exception occurred while handling uri: 'http://localhost:5002/api/projects/default/models/tags/production?token=fdcca3d1606539d560c22339710f83db'
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sanic/app.py", line 909, in handle_request
    request, request_name=name
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spf/framework.py", line 646, in _run_request_middleware_19_12
    response = await response
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/database/utils.py", line 368, in set_session
    user = await decorators.user_from_request(request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 90, in user_from_request
    return await _get_user_from_request(request.app, request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 73, in _get_user_from_request
    payload = await instance.auth.extract_payload(request, verify=False)
AttributeError: 'Sanic' object has no attribute 'auth'
'Sanic' object has no attribute 'auth'
[2021-09-14 17:17:50 +0530] [2198] [ERROR] Exception occurred while handling uri: 'http://localhost:5002/api/projects/default/models/tags/production?token=fdcca3d1606539d560c22339710f83db'
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sanic/app.py", line 909, in handle_request
    request, request_name=name
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spf/framework.py", line 646, in _run_request_middleware_19_12
    response = await response
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/database/utils.py", line 368, in set_session
    user = await decorators.user_from_request(request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 90, in user_from_request
    return await _get_user_from_request(request.app, request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 73, in _get_user_from_request
    payload = await instance.auth.extract_payload(request, verify=False)
AttributeError: 'Sanic' object has no attribute 'auth'
'Sanic' object has no attribute 'auth'
[2021-09-14 17:17:52 +0530] [2198] [ERROR] Exception occurred while handling uri: 'http://localhost:5002/api/projects/default/models/tags/production?token=fdcca3d1606539d560c22339710f83db'
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sanic/app.py", line 909, in handle_request
    request, request_name=name
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/spf/framework.py", line 646, in _run_request_middleware_19_12
    response = await response
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/database/utils.py", line 368, in set_session
    user = await decorators.user_from_request(request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 90, in user_from_request
    return await _get_user_from_request(request.app, request)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rasax/community/api/decorators.py", line 73, in _get_user_from_request
    payload = await instance.auth.extract_payload(request, verify=False)
AttributeError: 'Sanic' object has no attribute 'auth'
'Sanic' object has no attribute 'auth'
[2021-09-14 17:17:54 +0530] [2198] [ERR

@RajithaBandara Do you want to install rasa x on Mac that’s it? Yes or No?

@nik202 yes

@RajithaBandara Please follow these steps:

Create project folder and install this:

pip install virtualenv
cd my-project/
virtualenv venv
source venv/bin/activate

Then install rasa only

pip install rasa==2.8.1

check both rasa and rasa-sdk are installed whilst typing rasa --version and share me the screenshot please.

@nik202

@RajithaBandara I guess I said rasa 2.8.1? and not even said to install rasa-x?

@RajithaBandara Please try run rasa x now on this env?

@nik202 I followed exactly your steps and I tried it once again by deleting the first venv, I guess Rasa x also installing.


Rasa Version      :         2.8.6
Minimum Compatible Version: 2.8.0
Rasa SDK Version  :         2.8.2
Rasa X Version    :         0.42.0
Python Version    :         3.7.9
Operating System  :         Darwin-20.5.0-x86_64-i386-64bit
Python Path       :         /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7

i tired rasa x

Gave me the error

sanic versions

sanic                   20.12.3
Sanic-Cors              0.10.0.post3
sanic-jwt               1.7.0
Sanic-Plugins-Framework 0.9.5

@RajithaBandara No, I am sorry, you not followed my steps as I requested Rasa X is not working in Windows 10 - #14 by nik202 , please see what I had written in my above post.

@RajithaBandara On the otherhand this is related to Mac issue not the window 10

@RajithaBandara can you met this requirement please in your current environment?

  • Rasa Version : 2.8.6
  • Rasa SDK Version : 2.8.1
  • Rasa X Version : 0.42.2

@nik202 I checked out what is wrong with what I did, I followed the exact commands by copying and pasting. my base environment has got rasa 2.8.6 in MacBook in some way which I never knew it was. so the virtual env gets overridden by those versions that’s why the command isn’t taking rasa 2.8.1

anyway leaving that behind and I used Conda environment . and was confused by seeing this

I am sorry to continuing in the Windows environment. if it’s okay to move now, I am pleased to do so/