wygggo
(gengen wang)
November 29, 2018, 1:07pm
1
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 ?
Juste
(Juste)
November 29, 2018, 1:34pm
2
ConsoleInputChannel got deprecated in Rasa Core v0.11. Which version of the Rasa Core are you running?
wygggo
(gengen wang)
November 29, 2018, 1:40pm
3
I git clone from the current master branch.
Juste
(Juste)
November 29, 2018, 3:34pm
4
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
jwickers
(Jwickers)
November 29, 2018, 3:48pm
5
This should be included in Chat & Voice platforms with how to replace python -m rasa_core.run ...
I’m guessing it should look like:
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…