I was stuck with this for 2 months and always came to this thread when googeling the issue.

My issue was resolved when I detected that the file it always failed on had been given a strange name...