# Failed to register package 'actions'

**URL:** <https://forum.rasa.com/t/failed-to-register-package-actions/9924>\
**Category:** Rasa Open Source\
**Created:** [May 17, 2019, 9:42am UTC](https://forum.rasa.com/t/failed-to-register-package-actions/9924 "2019-05-17T09:42:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![CyrilBjn](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/cyrilbjn/32/2812_2.png) [@CyrilBjn](https://forum.rasa.com/u/CyrilBjn)\
**Post date:** [May 17, 2019, 9:42am UTC](https://forum.rasa.com/t/failed-to-register-package-actions/9924/1 "2019-05-17T09:42:06Z")

</div>

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\executor.py”, line 150, in register\_package self.\_import\_submodules(package) File “C:\Users\cyril\Anaconda3\lib\site-packages\rasa\_core\_sdk\executor.py”, line 137, in _import\_submodules package = importlib.import\_module(package) File "C:\Users\cyril\Anaconda3\lib\importlib\_init_.py", 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 (‘0.0.0.0’, 5055)

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

> # -_- 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 rasa\_core\_sdk.events 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 [
> "ask_isbot",
> "ask_languagesbot",
> "ask_time",
> "ask_whatismyname",
> "ask_wherefrom",
> "ask_whoami",
> "ask_weather",
> "ask_whoisit",
> "ask_whocreatedyou",
> "ask_whoisboss",
> "ask_howdoing",
> "ask_howold",
> "loveyou",
> "insult",
>                                            
> ]:
> 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 😪Thanks !

---

<div class="post-metadata">

**Author:** ![JiteshGaikwad](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@JiteshGaikwad](https://forum.rasa.com/u/JiteshGaikwad)\
**Post date:** [May 17, 2019, 10:15am UTC](https://forum.rasa.com/t/failed-to-register-package-actions/9924/2 "2019-05-17T10:15:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![CyrilBjn](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/cyrilbjn/32/2812_2.png) [@CyrilBjn](https://forum.rasa.com/u/CyrilBjn)\
**Post date:** [May 17, 2019, 10:19am UTC](https://forum.rasa.com/t/failed-to-register-package-actions/9924/3 "2019-05-17T10:19:56Z")

</div>

Hi, thanks, but I just mistyped, it’s already actions.py

---

<div class="post-metadata">

**Author:** ![akshay2000](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akshay2000/32/415_2.png) [@akshay2000](https://forum.rasa.com/u/akshay2000)\
**Post date:** [May 17, 2019, 10:53am UTC](https://forum.rasa.com/t/failed-to-register-package-actions/9924/4 "2019-05-17T10:53:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![CyrilBjn](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/cyrilbjn/32/2812_2.png) [@CyrilBjn](https://forum.rasa.com/u/CyrilBjn)\
**Post date:** [May 20, 2019, 8:56am UTC](https://forum.rasa.com/t/failed-to-register-package-actions/9924/5 "2019-05-20T08:56:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![akshay2000](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akshay2000/32/415_2.png) [@akshay2000](https://forum.rasa.com/u/akshay2000)\
**Post date:** [May 20, 2019, 9:32am UTC](https://forum.rasa.com/t/failed-to-register-package-actions/9924/6 "2019-05-20T09:32:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ermarkar](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ermarkar/32/13716_2.png) [@ermarkar](https://forum.rasa.com/u/ermarkar)\
**Post date:** [August 12, 2021, 8:57am UTC](https://forum.rasa.com/t/failed-to-register-package-actions/9924/8 "2021-08-12T08:57:46Z")

</div>

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