# ConsoleInputChannel error

**URL:** <https://forum.rasa.com/t/consoleinputchannel-error/3147>\
**Category:** Rasa Open Source\
**Created:** [November 29, 2018, 1:07pm UTC](https://forum.rasa.com/t/consoleinputchannel-error/3147 "2018-11-29T13:07:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wygggo](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/wygggo/32/3043_2.png) [@wygggo](https://forum.rasa.com/u/wygggo)\
**Post date:** [November 29, 2018, 1:07pm UTC](https://forum.rasa.com/t/consoleinputchannel-error/3147/1 "2018-11-29T13:07:03Z")

</div>

from rasa\_core.channels.console import ConsoleInputChannel ImportError: cannot import name ‘ConsoleInputChannel’

Which input channel can replace ConsoleInputChannel ?

My code:

def run(serve\_forever=True):

```
 agent = Agent.load("projects/dialogue",
                    interpreter=RasaNLUInterpreter("projects/ivr_nlu/demo"))
 if serve_forever:
    #agent.handle_channel(ConsoleInputChannel())
    agent.handle_channel(RestInput.name())

 return agent

```

why can’t I use ConsoleInputChannel ? Which channel I should use to replcae it ?

---

<div class="post-metadata">

**Author:** ![Juste](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juste/32/15_2.png) [@Juste](https://forum.rasa.com/u/Juste)\
**Post date:** [November 29, 2018, 1:34pm UTC](https://forum.rasa.com/t/consoleinputchannel-error/3147/2 "2018-11-29T13:34:10Z")

</div>

ConsoleInputChannel got deprecated in Rasa Core v0.11. Which version of the Rasa Core are you running?

---

<div class="post-metadata">

**Author:** ![wygggo](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/wygggo/32/3043_2.png) [@wygggo](https://forum.rasa.com/u/wygggo)\
**Post date:** [November 29, 2018, 1:40pm UTC](https://forum.rasa.com/t/consoleinputchannel-error/3147/3 "2018-11-29T13:40:58Z")

</div>

I git clone from the current master branch.

---

<div class="post-metadata">

**Author:** ![Juste](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juste/32/15_2.png) [@Juste](https://forum.rasa.com/u/Juste)\
**Post date:** [November 29, 2018, 3:34pm UTC](https://forum.rasa.com/t/consoleinputchannel-error/3147/4 "2018-11-29T15:34:23Z")

</div>

Right, so you are using the latest version of Rasa Core which doesn’t have the class ConsoleInputChannel anymore. You can either install the Rasa Core versions \< v0.11 or update your code to be compatible with the latest release of Rasa Core. If you can share the code or the function which you are running, I can help you make the changes 🙂

---

<div class="post-metadata">

**Author:** ![jwickers](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/jwickers/32/1178_2.png) [@jwickers](https://forum.rasa.com/u/jwickers)\
**Post date:** [November 29, 2018, 3:48pm UTC](https://forum.rasa.com/t/consoleinputchannel-error/3147/5 "2018-11-29T15:48:34Z")

</div>

This should be included in [Chat & Voice platforms](https://rasa.com/docs/core/connectors/) with how to replace `python -m rasa_core.run ...` I’m guessing it should look like:

```auto
from rasa_core.channels.console import CmdlineInput
agent.handle_channels([CmdlineInput()])

```

but that does not seem to work as it’s not taking any input…
