It seems that cytoolz 0.12.1 is broken with recent versions of cython, see: https://github.com/pytoolz/cytoolz/issues/202 Updating to cytoolz 0.12.3 seems to fix the issue.