Try using mime version 2.5.2. instead. I had the same error while using mime 4.0.4 and after this the error was gone.