Appears that the last couple of lines of setup.py has a `except ImportError: print 'py2exe not found. py2exe command not available'` Adding parentheses fixes the problem: `except ImportError: print ('py2exe not found. py2exe command not available')`