# Train\_init.py agent error

**URL:** <https://forum.rasa.com/t/train-init-py-agent-error/1232>\
**Category:** Rasa Open Source\
**Created:** [September 19, 2018, 9:55am UTC](https://forum.rasa.com/t/train-init-py-agent-error/1232 "2018-09-19T09:55:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinaynagpal9](https://avatars.discourse-cdn.com/v4/letter/v/d07c76/32.png) [@vinaynagpal9](https://forum.rasa.com/u/vinaynagpal9)\
**Post date:** [September 19, 2018, 9:55am UTC](https://forum.rasa.com/t/train-init-py-agent-error/1232/1 "2018-09-19T09:55:59Z")

</div>

‘’’ python train\_init.py /home/bugsbun/anaconda3/envs/rasa/lib/python2.7/site-packages/pykwalify/core.py:99: UnsafeLoaderWarning: The default ‘Loader’ for ‘load(stream)’ without further arguments can be unsafe. Use ‘load(stream, Loader=ruamel.yaml.Loader)’ explicitly if that is OK. Alternatively include the following in your code:

import warnings warnings.simplefilter(‘ignore’, ruamel.yaml.error.UnsafeLoaderWarning)

In most other cases you should consider using ‘safe\_load(stream)’ data = yaml.load(stream) Traceback (most recent call last): File “train\_init.py”, line 26, in validation\_split = 0.2) File “/home/bugsbun/anaconda3/envs/rasa/lib/python2.7/site-packages/rasa\_core/agent.py”, line 501, in train raise Exception("Passing a file name to `agent.train(...)` is " Exception: Passing a file name to `agent.train(...)` is not supported anymore. Rather load the data with `data = agent.load_data(file_name)` and pass it to `agent.train(data)`.

‘’’

---

<div class="post-metadata">

**Author:** ![vinaynagpal9](https://avatars.discourse-cdn.com/v4/letter/v/d07c76/32.png) [@vinaynagpal9](https://forum.rasa.com/u/vinaynagpal9)\
**Post date:** [September 19, 2018, 11:19am UTC](https://forum.rasa.com/t/train-init-py-agent-error/1232/2 "2018-09-19T11:19:39Z")

</div>

when i solve agent problem the next problem with the action problem ‘’’ Exception: Can not access action ‘action\_jobsearch’, as that name is not a registered action for this domain. Available actions are: ‘’’

---

<div class="post-metadata">

**Author:** ![Neptune](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@Neptune](https://forum.rasa.com/u/Neptune)\
**Post date:** [October 9, 2018, 6:56am UTC](https://forum.rasa.com/t/train-init-py-agent-error/1232/3 "2018-10-09T06:56:02Z")

</div>

you solved?
