Error training core

someon knows why i have that error, is working until the windows update and i dont modified nothing of the code.

> Traceback (most recent call last):
>   File "train_core.py", line 37, in <module>
>     run_bot_online(nlu_interpreter)
>   File "train_core.py", line 24, in run_bot_online
>     data = agent.load_data('data/stories.md')
>   File "C:\Users\Ramon\AppData\Local\Programs\Python\Python36\lib\site-packages\rasa_core\agent.py", line 472, in load_data
>     debug_plots)
>   File "C:\Users\Ramon\AppData\Local\Programs\Python\Python36\lib\site-packages\rasa_core\training\__init__.py", line 57, in load_data
>     return g.generate()
>   File "C:\Users\Ramon\AppData\Local\Programs\Python\Python36\lib\site-packages\rasa_core\training\generator.py", line 283, in generate
>     trackers = self._process_step(step, incoming_trackers)
>   File "C:\Users\Ramon\AppData\Local\Programs\Python\Python36\lib\site-packages\rasa_core\training\generator.py", line 466, in _process_step
>     tracker.update(event)
>   File "C:\Users\Ramon\AppData\Local\Programs\Python\Python36\lib\site-packages\rasa_core\training\generator.py", line 137, in update
>     self._append_current_state()
>   File "C:\Users\Ramon\AppData\Local\Programs\Python\Python36\lib\site-packages\rasa_core\training\generator.py", line 107, in _append_current_state
>     self._states.append(frozenset(state.items()))
> AttributeError: 'NoneType' object has no attribute 'append'

code:

agent = Agent(domain_file,
                  policies=[MemoizationPolicy(), KerasPolicy(),
                            FallbackPolicy()],
                  interpreter=interpreter)

    data = agent.load_data('data/stories.md')

    agent.train(data,
                batch_size=50,
                epochs=100,
                max_training_samples=300,
                interactive=True)
    agent.persist('./models/core/xonebot')

Hi @ramon

That is odd. Commands seem fine to me. We were having this error before when users tried to add rewind commands to their stories. Could you upload your story data or is the file too large?

1 Like

stories.md (1.7 KB)

This is the file

@MetcalfeTom Yes Tom, i also getting the same error when i tried to add rewind commands to my stories. Any solution?

@ramon When i remove the ‘rewind’ statement,the error goes away