JustinaPetr / Weatherbot_Tutorial

275 stars 447 forks source link

AttributeError: module 'rasa_core.training.online' has no attribute 'run_online_learning' #34

Closed ankur17895 closed 5 years ago

ankur17895 commented 5 years ago

When i start model training using train_online.py I am getting error specified below:

AttributeError Traceback (most recent call last)

in () logging.basicConfig(level="INFO") nlu_interpreter = RasaNLUInterpreter('./models/nlu/default/weathernlu') ---> run_weather_online(nlu_interpreter) in run_weather_online(interpreter, domain_file, training_data_file) epochs=200, max_training_samples=300) ---> online.run_online_learning(agent) return agent AttributeError: module 'rasa_core.training.online' has no attribute 'run_online_learning'
JustinaPetr commented 5 years ago

Hey. Which version of Rasa Core are you running this with?

ankur17895 commented 5 years ago

0.11.3

JustinaPetr commented 5 years ago

Oh, I see now :) With Rasa Core >0.11.3 there were a lot of improvements for online learning introduced. The latest code in this repo is updated for Rasa Core >0.11.3 that.s why you are getting the error. I would suggest you updating the Rasa Core version using

pip install -U rasa_core

which should pick up the changes and the error should be gone.

ankur17895 commented 5 years ago

Thanks it is working now. :)