This is the old syntax for throwing exceptions. It should be replaced with the as keyword with Python 2.6 and is probably not supported at all in Python 3.
Try to find another library that supports Python 3, or consider downgrading to Python 2.6 (which should really be the last option).
You can view all the details on PEP 3110 .
source share