Based on the error message it seems that one of the inputs to set is a None object as seen here:
set(None)
> TypeError: 'NoneType' object is not iterable

My guess would be that the transformers.trainer object is unable to load the desired file and returns None instead.
CC @stas for viz.