Custom connector channel problem

Hi, i want to connect my rasa with other chatbot using custom econnector but im facing this error. her is my rasa version:

Rasa Version      :         2.8.12
Minimum Compatible Version: 2.8.9
Rasa SDK Version  :         2.8.1
Rasa X Version    :         None
Python Version    :         3.8.10
Operating System  :         Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29
Python Path       :         /home/ainul/venv/bin/python3

here is the error that im facing

2021-11-20 01:46:37 DEBUG    rasa.__main__  - Failed to run CLI command due to an exception.
Traceback (most recent call last):
  File "/home/ainul/venv/lib/python3.8/site-packages/rasa/core/run.py", line 64, in _create_single_channel
    input_channel_class = rasa.shared.utils.common.class_from_module_path(
  File "/home/ainul/venv/lib/python3.8/site-packages/rasa/shared/utils/common.py", line 37, in class_from_module_path
    m = importlib.import_module(module_name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/ainul/it4u_chatbot_v3/lhc/LhcInput.py", line 10, in <module>
    from rasa.core.channels.channel import UserMessage, CollectingOutputChannel, QueueOutputChannel
ImportError: cannot import name 'QueueOutputChannel' from 'rasa.core.channels.channel' (/home/ainul/venv/lib/python3.8/site-packages/rasa/core/channels/channel.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ainul/venv/lib/python3.8/site-packages/rasa/__main__.py", line 118, in main
    cmdline_arguments.func(cmdline_arguments)
  File "/home/ainul/venv/lib/python3.8/site-packages/rasa/cli/run.py", line 95, in run
    rasa.run(**vars(args))
  File "/home/ainul/venv/lib/python3.8/site-packages/rasa/api.py", line 57, in run
    rasa.core.run.serve_application(
  File "/home/ainul/venv/lib/python3.8/site-packages/rasa/core/run.py", line 173, in serve_application
    input_channels = create_http_input_channels(channel, credentials)
  File "/home/ainul/venv/lib/python3.8/site-packages/rasa/core/run.py", line 53, in create_http_input_channels
    return [_create_single_channel(c, k) for c, k in all_credentials.items()]
  File "/home/ainul/venv/lib/python3.8/site-packages/rasa/core/run.py", line 53, in <listcomp>
    return [_create_single_channel(c, k) for c, k in all_credentials.items()]
  File "/home/ainul/venv/lib/python3.8/site-packages/rasa/core/run.py", line 69, in _create_single_channel
    raise RasaException(
rasa.shared.exceptions.RasaException: Failed to find input channel class for 'lhc.LhcInput.LhcInput'. 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.
RasaException: Failed to find input channel class for 'lhc.LhcInput.LhcInput'. 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.

please help me, thank you!

Something similar has happened to me and it usually happens when some python module is missing or it is not installed correctly. Check your python dependencies in the virtual enviroment and run the connector out of rasa to find out.

Currently I have the same error but apparently I have no solution :confused:

 from rasa.core.channels.channel import QueueOutputChannel, CollectingOutputChannel
ImportError: cannot import name 'QueueOutputChannel' from 'rasa.core.channels.channel'
Rasa Version      :         3.4.2
Minimum Compatible Version: 3.0.0
Rasa SDK Version  :         3.4.1
Python Version    :         3.10.10
Operating System  :         Windows-10-10.0.22621-SP0

in my case I use poetry to manage my packages:

[[package]]
name = "rasa"
version = "3.5.4"
description = "Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, and more - Create chatbots and voice assistants"
category = "main"
optional = false
python-versions = ">=3.7,<3.11"
files = [
    {file = "rasa-3.5.4-py3-none-any.whl", hash = "sha256:d2ff0b0cbb7656b3abdbceb8fd3ed8fa7620f4555692da9d34eb9749099225f5"},
    {file = "rasa-3.5.4.tar.gz", hash = "sha256:6206b38bba2b32a4ad8906cb9ce611988f9c9bc488cb15900b97f386347862f2"},
]
rasa-sdk = ">=3.5.0,<3.6.0"

[[package]]
name = "rasa-sdk"
version = "3.5.0"
description = "Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, and more - Create chatbots and voice assistants"
category = "main"
optional = false
python-versions = ">=3.7,<3.11"
files = [
    {file = "rasa_sdk-3.5.0-py3-none-any.whl", hash = "sha256:d2b1455f7e8587ddaa5611c617c0a3555c3080b0a2f934206a9609149cbdbb75"},
    {file = "rasa_sdk-3.5.0.tar.gz", hash = "sha256:6de94b5dfa778a2910b690a0046f266d79e09c32a0cbbdd1b6fb58e7c9cf2b10"},
]