JustinaPetr / Weatherbot_Tutorial

275 stars 447 forks source link

ValueError: 'action_weather' is not in list #24

Open SreenijaK opened 5 years ago

SreenijaK commented 5 years ago
"Available actions are: \n{}".format(action_name, action_names))

Exception: Can not access action 'action_weather', as that name is not a registered action for this domain. Available a

Frozen-In-Ice commented 5 years ago

The updated weather_domain.yml has replaced the actions.ActionWeather to action_weather. I had to make that change when I was working off the video tutorial, and then it worked for me.

JustinaPetr commented 5 years ago

@SreenijaK Hey, thanks for raising this issue. Yes, @Frozen-In-Ice is right - if you follow the video, you should use the Rasa NLU and Core versions which are provided in the requirements.txt file, but if you want to use the latest releases of Rasa Core and NLU, you should use the code from this directory. The error you are getting is due to the changes that were introduced to Rasa since the release of the Rasa Core 11 - custom actions should be listed using their actual names instead of the class names.