# Getting this error: ValueError: Unknown data format for file ./data/nlu.yml

**URL:** <https://forum.rasa.com/t/getting-this-error-valueerror-unknown-data-format-for-file-data-nlu-yml/49779>\
**Category:** Rasa Open Source\
**Created:** [December 6, 2021, 1:50pm UTC](https://forum.rasa.com/t/getting-this-error-valueerror-unknown-data-format-for-file-data-nlu-yml/49779 "2021-12-06T13:50:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![R6xDesigns](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/r6xdesigns/32/18504_2.png) [@R6xDesigns](https://forum.rasa.com/u/R6xDesigns)\
**Post date:** [December 6, 2021, 1:50pm UTC](https://forum.rasa.com/t/getting-this-error-valueerror-unknown-data-format-for-file-data-nlu-yml/49779/1 "2021-12-06T13:50:42Z")

</div>

I use VS Code and using the files there created by the command rasa init + a python file with following code:

from rasa\_nlu.training\_data import load\_data

from rasa\_nlu.config import RasaNLUModelConfig

from rasa\_nlu.model import Trainer

from rasa\_nlu import config

training\_data = load\_data("./data/nlu.yml")

trainer = Trainer(config.load(“config.yml”))

interpreter = trainer.train(training\_data)

model\_directory = trainer.persist("./models/nlu", fixed\_model\_name=“current”)

Please Help me best regards

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [December 6, 2021, 3:01pm UTC](https://forum.rasa.com/t/getting-this-error-valueerror-unknown-data-format-for-file-data-nlu-yml/49779/2 "2021-12-06T15:01:03Z")

</div>

@R6xDesigns Hello and welcome to the forum!

Are you trying to run the code using Jupyter Notebook? make sure the project tree met the tree structure of rasa.

@R6xDesigns what is your `rasa --version` ?

---

<div class="post-metadata">

**Author:** ![R6xDesigns](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/r6xdesigns/32/18504_2.png) [@R6xDesigns](https://forum.rasa.com/u/R6xDesigns)\
**Post date:** [December 6, 2021, 3:13pm UTC](https://forum.rasa.com/t/getting-this-error-valueerror-unknown-data-format-for-file-data-nlu-yml/49779/3 "2021-12-06T15:13:28Z")

</div>

Im really new to it so i hope i an answer the question correct.

Im just running in my py env the command py name\_of\_python\_file where the code is in.

my rasa version is 3.0.1 python: 3.8.10 rasa sdk: 3.0.2

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [December 6, 2021, 5:43pm UTC](https://forum.rasa.com/t/getting-this-error-valueerror-unknown-data-format-for-file-data-nlu-yml/49779/4 "2021-12-06T17:43:45Z")

</div>

@R6xDesigns I will recommend you to please follow this valuable links, so that you get familiar with the rasa and its working. Please start with point 2, as its latest and please while seeing the videos, also see the documents.

Valuable links and resources for your reference

1. [RasaMasterclass](https://www.youtube.com/playlist?list=PL75e0qA87dlHQny7z43NduZHPo6qd-cRc)
2. [Conversational AI with Rasa - Video Series [Latest]](https://www.youtube.com/playlist?list=PL75e0qA87dlEjGAc9j9v3a5h1mxI2Z9fi)
3. [Rasa for Beginners](https://www.udemy.com/course/rasa-for-beginners/)
4. [Rasa Certification Workshop](https://www.udemy.com/course/rasa-certification-workshop/)
5. [Rasa Advanced Custom Actions, Forms, & Responses Workshop](https://www.udemy.com/course/rasa-advanced-custom-actions-forms-responses-workshop/) No-longer accepting enrolment
6. [Rasa Advanced Deployment Workshop](https://www.udemy.com/course/rasa-advanced-deployment-workshop/)
7. [Rasa Youtube Channel](https://www.youtube.com/channel/UCJ0V6493mLvqdiVwOKWBODQ) Please subscribe and hit the bell icon for notification.
8. [Rasa Github Mini Project](https://github.com/RasaHQ/rasa/tree/main/examples)
9. [Rasa Masterclass Handbook](https://info.rasa.com/masterclass-ebook)
10. [Hardcopy Book : Conversational AI with Rasa](https://www.packtpub.com/product/conversational-ai-with-rasa/9781801077057)

I hope these links will help you to learn Rasa!

I hope this will motivate you a lot and solve your coming issues. Good Luck!

---

<div class="post-metadata">

**Author:** ![R6xDesigns](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/r6xdesigns/32/18504_2.png) [@R6xDesigns](https://forum.rasa.com/u/R6xDesigns)\
**Post date:** [December 7, 2021, 1:20pm UTC](https://forum.rasa.com/t/getting-this-error-valueerror-unknown-data-format-for-file-data-nlu-yml/49779/5 "2021-12-07T13:20:07Z")

</div>

Thx that helped a lot.

Now im relly confused. i tried to make any custom actions in the actions.py. The basic hello world def that is allready in there worked perfectly. Now i wanted to work with the nlu model interpreter. but if i install vie pip rasa\_nlu, i cant start any rasa commands like rasa interactive.

How can that be??

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [December 7, 2021, 9:50pm UTC](https://forum.rasa.com/t/getting-this-error-valueerror-unknown-data-format-for-file-data-nlu-yml/49779/6 "2021-12-07T21:50:52Z")

</div>

@R6xDesigns congrts Ben, can you please mark this thread as solution and as the nlu model interpreter is not related to the main thread.

But, please share some code or errors for us what you trying to archive now for your next issue. Thanks.
