BrickPi runs most the python motor and sensor examples but for only a maximum of around 10 seconds and then fails.
The error is always when BrickPiUpdateValues() is called.
Then it refers to lines 413 and 497 in BrickPi.py
Then it refers to /usr/lib/python2.7/dist-packagees/serial/serialpoix.py, line 485, in write.
The final lines read
raise SerialException(‘write failed: %s’ % (v,))
serial.serialutil.SerialException: write failed: [Errno 5] Input/output error