RuntimeError raised on running Rasa Shell

I’m facing this issue on running rasa shell command

asyncio - Task exception was never retrieved future: <Task finished coro=<configure_app..run_cmdline_io() done, defined at c:\users\nidhi\anaconda\envs\rasaapp\lib\site-packages\rasa\core\> exception=RuntimeError(‘This event loop is already running’)>

Traceback call:

Traceback (most recent call last):
  File "c:\users\nidhi\anaconda\envs\rasaapp\lib\site-packages\rasa\core\", line 128, in run_cmdline_io
    server_url=constants.DEFAULT_SERVER_FORMAT.format("http", port)
  File "c:\users\nidhi\anaconda\envs\rasaapp\lib\site-packages\rasa\core\channels\", line 131, in record_messages
    text = get_user_input(button_question)
  File "c:\users\nidhi\anaconda\envs\rasaapp\lib\site-packages\rasa\core\channels\", line 77, in get_user_input
    style=Style([("qmark", "#b373d6"), ("", "#b373d6")]),
  File "c:\users\nidhi\anaconda\envs\rasaapp\lib\site-packages\questionary\", line 45, in ask
    return self.unsafe_ask(patch_stdout)
  File "c:\users\nidhi\anaconda\envs\rasaapp\lib\site-packages\questionary\", line 59, in unsafe_ask
  File "c:\users\nidhi\anaconda\envs\rasaapp\lib\site-packages\prompt_toolkit\application\", line 788, in run
    return get_event_loop().run_until_complete(self.run_async(pre_run=pre_run))
  File "c:\users\nidhi\anaconda\envs\rasaapp\lib\asyncio\", line 570, in run_until_complete
  File "c:\users\nidhi\anaconda\envs\rasaapp\lib\asyncio\", line 525, in run_forever
    raise RuntimeError('This event loop is already running')
RuntimeError: This event loop is already running  

Hi @nidhiverma1997 Check out this post : Error : This event loop is already running

Alongwith that, try installing asyncio

Hey @varunsapre10, it worked! I read the linked post earlier too but it didn’t work. So I rerun rasa init and this time it did. Thanks for helping :raised_hands:

Hey @nidhiverma1997 Glad I was able to help

1 Like