# Unable to import 'rasa\_nlu.training\_data'

**URL:** <https://forum.rasa.com/t/unable-to-import-rasa-nlu-training-data/3194>\
**Category:** Rasa Open Source\
**Created:** [December 1, 2018, 6:15pm UTC](https://forum.rasa.com/t/unable-to-import-rasa-nlu-training-data/3194 "2018-12-01T18:15:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabruun](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fabruun/32/1221_2.png) [@fabruun](https://forum.rasa.com/u/fabruun)\
**Post date:** [December 1, 2018, 6:15pm UTC](https://forum.rasa.com/t/unable-to-import-rasa-nlu-training-data/3194/1 "2018-12-01T18:15:18Z")

</div>

Hello everyone at Rasa! I have been struggling with getting the setup to work on my machine. I am using Python 3.6.4 and I have installed the newest version of the rasa\_nlu(0.13.8). I have set everything up as according to the guide. But when I make my nlu\_model.py and try to run it through my terminal issues starts to arise. I’m using Visual Studio Code with a Python debugger extension and gets the following error: [pylint] Unable to import ‘rasa\_nlu.training\_data’ [E0401]

I think I have read and seen all guides there is about this so this my last resort. I really hope that there is someone out there who can help me with this. Oh and I have also my rasa-nlu-trainer working in the browser. Here is a snippet of my nlu\_model.py code:

```auto
from rasa_nlu.training_data import load_data
from rasa_nlu.model import Trainer, Metadata, Interpreter
from rasa_nlu import config

def train (data, config_file, model_dir):
    training_data = load_data(data)
    configuration = config.load(config_file)
    trainer = Trainer(configuration)
    trainer.train(training_data)

```

Best Regards Frederik

---

<div class="post-metadata">

**Author:** ![Ghostvv](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ghostvv/32/211_2.png) [@Ghostvv](https://forum.rasa.com/u/Ghostvv)\
**Post date:** [December 12, 2018, 1:26pm UTC](https://forum.rasa.com/t/unable-to-import-rasa-nlu-training-data/3194/2 "2018-12-12T13:26:27Z")

</div>

does simply importing `rasa_nlu` works for you?

---

<div class="post-metadata">

**Author:** ![roohi](https://avatars.discourse-cdn.com/v4/letter/r/ba9def/32.png) [@roohi](https://forum.rasa.com/u/roohi)\
**Post date:** [April 9, 2019, 8:38am UTC](https://forum.rasa.com/t/unable-to-import-rasa-nlu-training-data/3194/3 "2019-04-09T08:38:17Z")

</div>

Hi,

I am facing same issue. Any help would be appreciated

Thanks

---

<div class="post-metadata">

**Author:** ![Ghostvv](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ghostvv/32/211_2.png) [@Ghostvv](https://forum.rasa.com/u/Ghostvv)\
**Post date:** [April 9, 2019, 9:39am UTC](https://forum.rasa.com/t/unable-to-import-rasa-nlu-training-data/3194/4 "2019-04-09T09:39:32Z")

</div>

It looks like `rasa_nlu` is not installed properly in your environment

---

<div class="post-metadata">

**Author:** ![babukrishna12](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@babukrishna12](https://forum.rasa.com/u/babukrishna12)\
**Post date:** [July 7, 2019, 4:39am UTC](https://forum.rasa.com/t/unable-to-import-rasa-nlu-training-data/3194/5 "2019-07-07T04:39:35Z")

</div>

![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/4/4fd8aaac1fc6cea66dc45177f6631abfb338a5e0.png) I am getting same issue

---

<div class="post-metadata">

**Author:** ![JulianGerhard](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juliangerhard/32/3781_2.png) [@JulianGerhard](https://forum.rasa.com/u/JulianGerhard)\
**Post date:** [July 7, 2019, 11:14am UTC](https://forum.rasa.com/t/unable-to-import-rasa-nlu-training-data/3194/6 "2019-07-07T11:14:53Z")

</div>

Hi @babukrishna12,

since you answered 7h ago to a posting that started in December 2018, may I ask why you stay with the old `rasa_nlu` packages instead of updating to the newest version?

If it has to be, then I suggest to follow the error:

Obviously python is unable to find `rasa_nlu`. This could have various reasons. Which **python version** are you using? What is the output of `pip show rasa_nlu` ?

Regards

---

<div class="post-metadata">

**Author:** ![babukrishna12](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@babukrishna12](https://forum.rasa.com/u/babukrishna12)\
**Post date:** [July 7, 2019, 4:25pm UTC](https://forum.rasa.com/t/unable-to-import-rasa-nlu-training-data/3194/8 "2019-07-07T16:25:00Z")

</div>

Thank you, working good
