# Could not load model due to module 'rasa.utils.io' has no attribute 'read\_json\_file' in Rasa 2.0.2

**URL:** <https://forum.rasa.com/t/could-not-load-model-due-to-module-rasa-utils-io-has-no-attribute-read-json-file-in-rasa-2-0-2/36195>\
**Category:** Rasa Open Source\
**Created:** [October 22, 2020, 8:49pm UTC](https://forum.rasa.com/t/could-not-load-model-due-to-module-rasa-utils-io-has-no-attribute-read-json-file-in-rasa-2-0-2/36195 "2020-10-22T20:49:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SaiSatwik](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/saisatwik/32/23703_2.png) [@SaiSatwik](https://forum.rasa.com/u/SaiSatwik)\
**Post date:** [October 22, 2020, 8:49pm UTC](https://forum.rasa.com/t/could-not-load-model-due-to-module-rasa-utils-io-has-no-attribute-read-json-file-in-rasa-2-0-2/36195/1 "2020-10-22T20:49:24Z")

</div>

I am using NLU component of Rasa. I started playing around with latest update of rasa i.e 2.0.2. I trained my model and after training the model, I’m trying to run the NLU server to parse sentence with it using the command: `python run --api-enable -m [model_path]`. I am getting below error when running server

> 2020-10-23 02:01:09 ERROR rasa.core.agent - Could not load model due to module ‘[rasa.utils.io](http://rasa.utils.io)’ has no attribute ‘read\_json\_file’.

Is this a known error or is this any bug with the new version? Thanks in advance

---

<div class="post-metadata">

**Author:** ![koaning](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/koaning/32/6626_2.png) [@koaning](https://forum.rasa.com/u/koaning)\
**Post date:** [October 26, 2020, 9:00am UTC](https://forum.rasa.com/t/could-not-load-model-due-to-module-rasa-utils-io-has-no-attribute-read-json-file-in-rasa-2-0-2/36195/2 "2020-10-26T09:00:17Z")

</div>

Just to check, did you run this command:

```auto
python run --api-enable -m [model_path]

```

Or this one:

```auto
rasa run --api-enable -m [model_path]

```

Also, did you also see a trace attached to this error by any chance?

---

<div class="post-metadata">

**Author:** ![SaiSatwik](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/saisatwik/32/23703_2.png) [@SaiSatwik](https://forum.rasa.com/u/SaiSatwik)\
**Post date:** [October 29, 2020, 10:53am UTC](https://forum.rasa.com/t/could-not-load-model-due-to-module-rasa-utils-io-has-no-attribute-read-json-file-in-rasa-2-0-2/36195/3 "2020-10-29T10:53:48Z")

</div>

Sorry my bad I ran

```auto
rasa run --api-enable -m [model_path]

```

I can figure out the issue. I am using one custom extractor where read\_json\_file was from [rasa.utils.io](http://rasa.utils.io) was used. But with the recent rasa update, the project structure has little changes and read\_json\_file can be obtained from

> [rasa.shared.utils.io](http://rasa.shared.utils.io)

Now its working. Thanks
