For me, this happened when I tried to return a Keras model from a child process. This is because inter-process communication uses pickling to transfer objects.
As others have stated, pickling keras models doesn't work.