Error: EPIPE: broken pipe, write

This occurs when running python appium with an android device. Any ideas how to fix it?