# Unable to run rasa x

**URL:** <https://forum.rasa.com/t/unable-to-run-rasa-x/12850>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [July 12, 2019, 7:17am UTC](https://forum.rasa.com/t/unable-to-run-rasa-x/12850 "2019-07-12T07:17:49Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![technophile\_2507](https://avatars.discourse-cdn.com/v4/letter/t/e9c0ed/32.png) [@technophile\_2507](https://forum.rasa.com/u/technophile_2507)\
**Post date:** [July 12, 2019, 7:17am UTC](https://forum.rasa.com/t/unable-to-run-rasa-x/12850/1 "2019-07-12T07:17:49Z")

</div>

Hi everyone, I am trying to run _rasa x_ in this environment and am getting this error. rasa shell and rasa run are working peoperly. So i belivee my domain.yml and config.yml files are in the right path. I tried a lot to fix it. Please help me to get rid of this and move forward. Thank you all in advance.

 ![error](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/1/119f0dd8bb1f4d90bbc69e197783421b23ed5da0.png)

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [July 12, 2019, 1:20pm UTC](https://forum.rasa.com/t/unable-to-run-rasa-x/12850/2 "2019-07-12T13:20:45Z")

</div>

Interesting error. Are you just running `rasa x` and then this happens? Which version of Rasa X are you running? @erohmensing I remember seeing that you fixed some encoding stuff somewhere recently?

---

<div class="post-metadata">

**Author:** ![jgaya](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/jgaya/32/3040_2.png) [@jgaya](https://forum.rasa.com/u/jgaya)\
**Post date:** [July 12, 2019, 2:06pm UTC](https://forum.rasa.com/t/unable-to-run-rasa-x/12850/3 "2019-07-12T14:06:48Z")

</div>

Hi all, I’m having exacly the same problem, running rasa latest rasa shell, rasa run --enable-api works ok, but running rasa x get this problem:

Using ubuntu, python 3.6 , if you need any other data from me to sole this please let me know, thanks.

```auto
u:~/rasa$ rasa x
WARNING: Logging before flag parsing goes to stderr.
W0711 20:56:09.452179 139872976144192 deprecation_wrapper.py:118] From /home/ubuntu/.local/lib/python3.6/site-packages/rasa/utils/common.py:113: The name tf.logging.ERROR is deprecated. Please use tf.compat.v1.logging.ERROR instead.

Starting Rasa X in local mode... 🚀
WARNING: Logging before flag parsing goes to stderr.
W0711 20:56:14.296167 140424807159616 deprecation_wrapper.py:118] From /home/ubuntu/.local/lib/python3.6/site-packages/rasa/core/policies/policy.py:35: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead.

W0711 20:56:15.753621 140424807159616 deprecation_wrapper.py:118] From /home/ubuntu/.local/lib/python3.6/site-packages/rasa/utils/common.py:113: The name tf.logging.ERROR is deprecated. Please use tf.compat.v1.logging.ERROR instead.

2019-07-11 20:56:15 WARNING tensorflow - From /home/ubuntu/.local/lib/python3.6/site-packages/rasa/utils/common.py:113: The name tf.logging.ERROR is deprecated. Please use tf.compat.v1.logging.ERROR instead.

Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.6/site-packages/rasa/cli/x.py", line 322, in run_locally
    local.main(args, project_path, args.data, token=rasa_x_token)
  File "/home/ubuntu/.local/lib/python3.6/site-packages/rasax/community/local.py", line 190, in main
    project_path, data_path, session, args.port
  File "/home/ubuntu/.local/lib/python3.6/site-packages/rasax/community/local.py", line 157, in _initialize_with_local_data
    story_files, story_service, COMMUNITY_USERNAME, COMMUNITY_TEAM_NAME
  File "uvloop/loop.pyx", line 1451, in uvloop.loop.Loop.run_until_complete
  File "/home/ubuntu/.local/lib/python3.6/site-packages/rasax/community/initialise.py", line 109, in inject_stories
    story_files, team, username
  File "/home/ubuntu/.local/lib/python3.6/site-packages/rasax/community/services/story_service.py", line 200, in save_stories_from_files
    await self.add_domain_items_for_stories()
  File "/home/ubuntu/.local/lib/python3.6/site-packages/rasax/community/services/story_service.py", line 363, in add_domain_items_for_stories
    await self._add_story_items_to_domain(project_id, story_events)
  File "/home/ubuntu/.local/lib/python3.6/site-packages/rasax/community/services/story_service.py", line 370, in _add_story_items_to_domain
    actions=story_events[0],
TypeError: 'NoneType' object is not subscriptable

```

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [July 12, 2019, 3:14pm UTC](https://forum.rasa.com/t/unable-to-run-rasa-x/12850/4 "2019-07-12T15:14:15Z")

</div>

@jgaya your `‘NoneType’ object is not subscriptable` is not the same issue as the `charmap codec can't encode characters` issue.

If `actions=story_events[0]` is empty, do you have an initial project set up in the directory where you are running rasa x with the same directory set up as `rasa init`?

@technophile_2507 this has to do with how your console encodes I/O from python. Can you try the fixes here? [UnicodeDecodeError](http://forum.rasa.com/t/unicodedecodeerror/12814)

---

<div class="post-metadata">

**Author:** ![jgaya](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/jgaya/32/3040_2.png) [@jgaya](https://forum.rasa.com/u/jgaya)\
**Post date:** [July 12, 2019, 3:28pm UTC](https://forum.rasa.com/t/unable-to-run-rasa-x/12850/5 "2019-07-12T15:28:08Z")

</div>

I have a bot working in that dir, imported from dialog flow. follow the tutoraial for that. I am missing some config files?

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [July 12, 2019, 3:35pm UTC](https://forum.rasa.com/t/unable-to-run-rasa-x/12850/6 "2019-07-12T15:35:26Z")

</div>

What command do you use to successfully run rasa shell?

---

<div class="post-metadata">

**Author:** ![jgaya](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/jgaya/32/3040_2.png) [@jgaya](https://forum.rasa.com/u/jgaya)\
**Post date:** [July 15, 2019, 7:49pm UTC](https://forum.rasa.com/t/unable-to-run-rasa-x/12850/7 "2019-07-15T19:49:55Z")

</div>

Just “rasa shell” works fine. Anything that can help me with this will be appreciated, it is the only thing that it’s not working for me. Thanks.

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [July 15, 2019, 7:56pm UTC](https://forum.rasa.com/t/unable-to-run-rasa-x/12850/8 "2019-07-15T19:56:09Z")

</div>

Hmm okay and you have rasa stories written in the `data` directory?

> I am missing some config files?

Can you quickly describe your project directory for me?

---

<div class="post-metadata">

**Author:** ![jgaya](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/jgaya/32/3040_2.png) [@jgaya](https://forum.rasa.com/u/jgaya)\
**Post date:** [July 15, 2019, 9:57pm UTC](https://forum.rasa.com/t/unable-to-run-rasa-x/12850/9 "2019-07-15T21:57:07Z")

</div>

![dir](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/2/228708a8b92871674576853044e0f6a0a55eec4a.png)

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [July 16, 2019, 1:50am UTC](https://forum.rasa.com/t/unable-to-run-rasa-x/12850/10 "2019-07-16T01:50:35Z")

</div>

Okay that setup looks fine 🤔, and the content of your stories file(s)?

---

<div class="post-metadata">

**Author:** ![jgaya](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/jgaya/32/3040_2.png) [@jgaya](https://forum.rasa.com/u/jgaya)\
**Post date:** [July 17, 2019, 5:43pm UTC](https://forum.rasa.com/t/unable-to-run-rasa-x/12850/11 "2019-07-17T17:43:51Z")

</div>

I check I don’t have a _data/stories.md_ file if that is the one you are refering to. That one missing could be the problem here?

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [July 17, 2019, 6:14pm UTC](https://forum.rasa.com/t/unable-to-run-rasa-x/12850/12 "2019-07-17T18:14:28Z")

</div>

Yes I think so 😃 that is where rasa x is looking for your stories.

```auto
 File "/home/ubuntu/.local/lib/python3.6/site-packages/rasax/community/services/story_service.py", line 370, in _add_story_items_to_domain
    actions=story_events[0],
TypeError: 'NoneType' object is not subscriptable

```

There it is looking for the first story event, but if you don’t have any stories, then it won’t find any.

Do you have stories anywhere else? You can also pass the path to your data (stories and NLU) folder if you don’t have your data in the usual folder. See the entire list of parameters [here](https://rasa.com/docs/rasa/user-guide/command-line-interface/#start-rasa-x)

What do you have in your `data` directory?

---

<div class="post-metadata">

**Author:** ![jgaya](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/jgaya/32/3040_2.png) [@jgaya](https://forum.rasa.com/u/jgaya)\
**Post date:** [July 18, 2019, 9:22pm UTC](https://forum.rasa.com/t/unable-to-run-rasa-x/12850/13 "2019-07-18T21:22:10Z")

</div>

I added the stories.md with at least a story and rasa x started working. Thank you for helping me out

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [July 19, 2019, 12:48am UTC](https://forum.rasa.com/t/unable-to-run-rasa-x/12850/14 "2019-07-19T00:48:58Z")

</div>

Sure thing. One question for you – which version of rasa x are you running? (`pip show | grep rasa`) – I tried running `rasa x` without stories on the latest version and go no errors, so I’m just wondering.

---

<div class="post-metadata">

**Author:** ![pythoncourse](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@pythoncourse](https://forum.rasa.com/u/pythoncourse)\
**Post date:** [September 9, 2020, 5:15am UTC](https://forum.rasa.com/t/unable-to-run-rasa-x/12850/15 "2020-09-09T05:15:56Z")

</div>

Check it out : [typeerror nonetype object is not subscriptable](https://360digitmg.com/python-typeerror-nonetype-object-is-not-subsriptable)
