Train Model step giving error

Following the instruction in Quickstart, the training the dialogue model( python -m rasa_core.train) is giving below error, please suggest.

C:\RASA\rasa_core\examples\concertbot>python -m rasa_core.train -d domain.yml -s stories.md -o models/dialogue

Traceback (most recent call last): File “C:\Users\All Users\Anaconda3\lib\runpy.py”, line 193, in _run_module_as_main “main”, mod_spec) File “C:\Users\All Users\Anaconda3\lib\runpy.py”, line 85, in run_code exec(code, run_globals) File “c:\rasa\rasa_core\rasa_core\train.py”, line 23, in from rasa_core.training import interactive File “c:\rasa\rasa_core\rasa_core\training\interactive.py”, line 14, in from PyInquirer import prompt File “C:\Users\All Users\Anaconda3\lib\site-packages\PyInquirer_init.py”, line 6, in from prompt_toolkit.token import Token ImportError: cannot import name ‘Token’

Hi @raoshivaprasad,

I think you are having issue with your toolkit. It could be version error. You can do a quick try with upgrading your pyinquirer package.

pip install PyInquirer

Hope this would solve your issue.

Thanks,

Neel

1 Like

Hi Neel

It works, you are a genius. Thanks a lot!

You are right with the toolkit version issue, RASA seems to use older version, while for me to launch Spider from Anaconda Navigator I need iPython >=4 which installs latest version of toolkit.

Best Regards, Shivaprasad