Traceback (most recent call last):


 "C:\Program 
s\Python\Python368\lib\threading.py", line 916, in _bootstrap_inner

self.run()


 "C:\Users\PeteDad-Admin\AppData\Roaming\Python\Python36\site-packages\discord\gateway.py", line 74, in run

f = asyncio.run_coroutine_threadsafe(coro, loop=self.ws.loop)


 "C:\Program 
s\Python\Python368\lib\asyncio\tasks.py", line 725, in run_coroutine_threadsafe

loop.call_soon_threadsafe(callback)


 "C:\Program 
s\Python\Python368\lib\asyncio\base_events.py", line 637, in call_soon_threadsafe

self._check_closed()


 "C:\Program 
s\Python\Python368\lib\asyncio\base_events.py", line 377, in _check_closed

raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

Traceback (most recent call last):


 "W:/GIT_WORKSPACES/MyProject/sequence_bug.py", line 51, in <module>

workers=NUM_WORKERS)


 "C:\Users\XXX\AppData\Local\Continuum\anaconda3\envs\tf-2-env\lib\site-packages\tensorflow\python\keras\engine\training.py", line 1176, in fit_generator

steps_name='steps_per_epoch')


 "C:\Users\XXX\AppData\Local\Continuum\anaconda3\envs\tf-2-env\lib\site-packages\tensorflow\python\keras\engine\training_generator.py", line 322, in model_iteration

steps_name='validation_steps')


 "C:\Users\XXX\AppData\Local\Continuum\anaconda3\envs\tf-2-env\lib\site-packages\tensorflow\python\keras\engine\training_generator.py", line 220, in model_iteration

batch_data = _get_next_batch(generator, mode)


 "C:\Users\XXX\AppData\Local\Continuum\anaconda3\envs\tf-2-env\lib\site-packages\tensorflow\python\keras\engine\training_generator.py", line 362, in _get_next_batch

generator_output = next(generator)


 "C:\Users\XXX\AppData\Local\Continuum\anaconda3\envs\tf-2-env\lib\site-packages\tensorflow\python\keras\utils\data_utils.py", line 915, in get

'Your generator is NOT thread-safe. '
RuntimeError: Your generator is NOT thread-safe. Keras requires a thread-safe generator when `use_multiprocessing=False, workers > 1`.
