# Error loading model

**URL:** <https://forum.rasa.com/t/error-loading-model/61542>\
**Category:** Rasa Open Source\
**Created:** [April 5, 2024, 10:40pm UTC](https://forum.rasa.com/t/error-loading-model/61542 "2024-04-05T22:40:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hiibb](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/hiibb/32/24089_2.png) [@hiibb](https://forum.rasa.com/u/hiibb)\
**Post date:** [April 5, 2024, 10:40pm UTC](https://forum.rasa.com/t/error-loading-model/61542/1 "2024-04-05T22:40:53Z")

</div>

Hello, I am using rasa to traian a chatbot, using “rasa data validate” i validated my data and intents and storiws etc and while training, the warning i got about intents, fixed them too so im not getting any warnings regarding that now. However when for the first time when i run rasa train and rasa shell, its successful, but when i get into my directory later, and run rasa train and shell again, it gives an error

2024-04-06 03:00:59 ERROR rasa.core.agent - Could not load model due to Error initializing graph component for node run\_DIETClassifier5… Traceback (most recent call last): File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/rasa/engine/graph.py”, line 403, in \_load\_component self.\_component: GraphComponent = constructor( # type: ignore[no-redef] File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/rasa/nlu/classifiers/diet\_classifier.py”, line 1125, in load return cls.\_load( File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/rasa/nlu/classifiers/diet\_classifier.py”, line 1156, in \_load model = cls.\_load\_model( File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/rasa/nlu/classifiers/diet\_classifier.py”, line 1249, in \_load\_model model = cls.\_load\_model\_class( File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/rasa/nlu/classifiers/diet\_classifier.py”, line 1280, in \_load\_model\_class return cls.model\_class().load( File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/rasa/utils/tensorflow/models.py”, line 447, in load model.load\_weights(model\_file\_name) File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/keras/utils/traceback\_utils.py”, line 70, in error\_handler raise e.with\_traceback(filtered\_tb) from None File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/tensorflow/python/training/py\_checkpoint\_reader.py”, line 45, in error\_translator raise errors\_impl.OpError(None, None, error\_message, errors\_impl.UNKNOWN) tensorflow.python.framework.errors\_impl.OpError: /var/folders/1k/ygnf9\_9n2vd6w9scf\_18r5n00000gn/T/tmpng96i6ah/train\_DIETClassifier5/DIETClassifier.tf\_model.data-00000-of-00001; No such file or directory

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/rasa/core/agent.py”, line 254, in load\_agent agent.load\_model(model\_path) File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/rasa/core/agent.py”, line 352, in load\_model self.processor = MessageProcessor( File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/rasa/core/processor.py”, line 105, in **init** self.model\_filename, self.model\_metadata, self.graph\_runner = self.\_load\_model( File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/rasa/core/processor.py”, line 142, in \_load\_model metadata, runner = loader.load\_predict\_graph\_runner( File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/rasa/engine/loader.py”, line 29, in load\_predict\_graph\_runner runner = graph\_runner\_class.create( File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/rasa/engine/runner/dask.py”, line 51, in create return cls(graph\_schema, model\_storage, execution\_context, hooks) File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/rasa/engine/runner/dask.py”, line 37, in **init** self.\_instantiated\_nodes: Dict[Text, GraphNode] = self.\_instantiate\_nodes( File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/rasa/engine/runner/dask.py”, line 60, in \_instantiate\_nodes return { File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/rasa/engine/runner/dask.py”, line 61, in node\_name: GraphNode.from\_schema\_node( File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/rasa/engine/graph.py”, line 566, in from\_schema\_node return cls( File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/rasa/engine/graph.py”, line 392, in **init** self.\_load\_component() File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/rasa/engine/graph.py”, line 416, in \_load\_component raise GraphComponentException( rasa.engine.exceptions.GraphComponentException: Error initializing graph component for node run\_DIETClassifier5. 2024-04-06 03:00:59 INFO root - Rasa server is up and running. and i cant interact with the chatbot as it says " ![User|24x24]. i have only modified the nlu.yml, domain.yml and stories.yml files. i havent changed the config file and left it default. im using version 3.1. on macOS
