The easiest way to solve this build error is to remove: ------------------------------------- %check python setup.py test ------------------------------------- Then the build should pass. The test script has some problem that calls non-existing function.