Socketio_connector. SocketIOInput'. Unknown input channel

I am following the link “How to build a voice assistant with open source Rasa and Mozilla tools” to integrate speech with Rasa. I added the following in credentials.yml file.

socketio_connector.SocketIOInput: bot_message_evt: bot_uttered session_persistence: true user_message_evt: user_uttered

When I am running ``` rasa run --enable-api -p 5005

I am getting error.......




rasa run --enable-api -p 5005
2019-12-03 00:02:45 INFO     root  - Generating grammar tables from /usr/lib/python3.7/lib2to3/Grammar.txt
2019-12-03 00:02:45 INFO     root  - Generating grammar tables from /usr/lib/python3.7/lib2to3/PatternGrammar.txt
Traceback (most recent call last):
  File "/home/saravanan/.local/lib/python3.7/site-packages/rasa/core/run.py", line 59, in _create_single_channel
    input_channel_class = rasa.utils.common.class_from_module_path(channel)
  File "/home/saravanan/.local/lib/python3.7/site-packages/rasa/utils/common.py", line 180, in class_from_module_path
    m = importlib.import_module(module_name)
  File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/saravanan/Saravanan/Speech/Sara/rasa-demo/socketio_connector.py", line 26, in <module>
    from TTS.models.tacotron import Tacotron
ModuleNotFoundError: No module named 'TTS'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/saravanan/.local/bin/rasa", line 10, in <module>
    sys.exit(main())
  File "/home/saravanan/.local/lib/python3.7/site-packages/rasa/__main__.py", line 76, in main
    cmdline_arguments.func(cmdline_arguments)
  File "/home/saravanan/.local/lib/python3.7/site-packages/rasa/cli/run.py", line 85, in run
    rasa.run(**vars(args))
  File "/home/saravanan/.local/lib/python3.7/site-packages/rasa/run.py", line 56, in run
    **kwargs,
  File "/home/saravanan/.local/lib/python3.7/site-packages/rasa/core/run.py", line 161, in serve_application
    input_channels = create_http_input_channels(channel, credentials)
  File "/home/saravanan/.local/lib/python3.7/site-packages/rasa/core/run.py", line 48, in create_http_input_channels
    return [_create_single_channel(c, k) for c, k in all_credentials.items()]
  File "/home/saravanan/.local/lib/python3.7/site-packages/rasa/core/run.py", line 48, in <listcomp>
    return [_create_single_channel(c, k) for c, k in all_credentials.items()]
  File "/home/saravanan/.local/lib/python3.7/site-packages/rasa/core/run.py", line 67, in _create_single_channel
    "is a proper name of a class in a module.".format(channel)
Exception: Failed to find input channel class for 'socketio_connector.SocketIOInput'. Unknown input channel. Check your credentials configuration to make sure the mentioned channel is not misspelled. If you are creating your own channel, make sure it is a proper name of a class in a module.

Hey @saravananselvamohan,

Sorry for the late reply. This appears to be a missing module the ‘TTS’, were you able to get that resolved? I can review the post and test it myself and see but that appears to be the main issue I"m seeing in this error initially.

There was a section in the post about doing the following, was this completed?

git clone https://github.com/mozilla/TTS.git
cd TTS
git checkout db7f3d3

Then installing this, this could be the missing part.

Thanks @btotharye. I fixed all misconfigurations with me. I also moved to creating Chatbot UI with Rasa. I found all the existing documents in Rasa website clearly explained to newbie like me. Happy Learning with Rasa:smile:

1 Like

I follow the same rasa blog for the voice assistant , but when i am running “rasa run --enable-api -p 5005” I am getting the following error

rasa run --enable-api -p 5005 RasaException: Failed to find input channel class for ‘socketio_connector.SocketIOInput’. Unknown input channel. Check your credentials configuration to make sure the mentioned channel is not misspelled. If you are creating your own channel, make sure it is a proper name of a class in a module.

Hi,

Did you find any solution for this?

Not yet

Has someone found a solution? Getting the same error

Hello Guys, did someone find a solution for this problem (RasaException: Failed to find input channel class for ‘socketio_connector.SocketIOInput’. Unknown input channel. Check your credentials configuration to make sure the mentioned channel is not misspelled. If you are creating your own channel, make sure it is a proper name of a class in a module.)

Found a solution for (RasaException: Failed to find input channel class for ‘socketio_connector.SocketIOInput’. Unknown input channel. Check your credentials configuration to make sure the mentioned channel is not misspelled. If you are creating your own channel, make sure it is a proper name of a class in a module.)

You can use the socketio.py file from here

But now I got a new error:

**The client is using an unsupported version of the Socket.IO or Engine.IO protocols (further occurrences of this error will be logged with level INFO) **

Maybe @Juste can help ?