Failed to register package 'actions'

Hey, I’m new !

I can’t get rid of this issue. I’m using : rasa_core 0.14.0 rasa_nlu 0.15.0 tensorflow 1.13.1 rasa_core_sdk 0.14.0 And Python 3.7

With this command:

starter-pack-rasa-stack>python -m rasa_core_sdk.endpoint --actions actions

I get this issue:

2019-05-17 11:28:54 INFO main - Starting action endpoint server… 2019-05-17 11:28:54 ERROR rasa_core_sdk.executor - Failed to register package ‘actions’. Traceback (most recent call last): File “C:\Users\cyril\Anaconda3\lib\site-packages\rasa_core_sdk\”, line 150, in register_package self._import_submodules(package) File “C:\Users\cyril\Anaconda3\lib\site-packages\rasa_core_sdk\”, line 137, in import_submodules package = importlib.import_module(package) File "C:\Users\cyril\Anaconda3\lib\", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File “”, line 1006, in _gcd_import File “”, line 983, in _find_and_load File “”, line 965, in _find_and_load_unlocked ModuleNotFoundError: No module named ‘actions’ 2019-05-17 11:28:54 INFO main - Action endpoint is up and running. on (‘’, 5055)

Nevertheless, I had my own action, but now, I’m using actions from RASA-demo Here is the python code of my

-- coding: utf-8 --

from future import absolute_import from future import division from future import print_function from future import unicode_literals

from rasa_core_sdk import Action from import ConversationPaused

logger = logging.getLogger(name)

class ActionChitchat(Action): “”“Returns the chitchat utterance dependent on the intent”“”

def name(self):
    return "action_chitchat"

def run(self, dispatcher, tracker, domain):
    intent = tracker.latest_message["intent"].get("name")

    # retrieve the correct chitchat utterance dependent on the intent
    if intent in [
        dispatcher.utter_template("utter_" + intent, tracker)
    return []

class ActionPause(Action): “”“Pause the conversation”“”

def name(self):
    return "action_pause"

def run(self, dispatcher, tracker, domain):
    return [ConversationPaused()]

I declared my action in the domain

Help :sleepy: Thanks !

hey @CyrilBjn change you actions file name to “” from “”

Hi, thanks, but I just mistyped, it’s already

Where is located? The file needs to be in current working directory.

1 Like

Hi @akshay2000, thanks, that was the issue, thanks a lot.

Good to know. You should be able to mark my answer as the solution using check mark button.

@Rishabhh17 is create new topic with how you are importing and the directory structure