Python setup.py fails due to astroid package on Ubuntu

Hello, I have a project with build failure shown at https://travis-ci.com/zhaofeng-shu33/pspartition-python-binding/jobs/242492721. The same build passes on MacOS but fails for Ubuntu python. The error messages says maximum recursion depth exceeded in comparison for astroid package. I do not use it in my setup.py. Maybe it is related to Travis python virtual environment problem or the problem of the package itself?

https://travis-ci.com/zhaofeng-shu33/pspartition-python-binding/jobs/242492721#L421

It’s a part of pylint.

Fixing the version of astroid and pylint fixed the problem. Thanks.