Under what condition does it reach this point with `pyside_found=True`? It looks like, if it can't find the modules it needs, `ImportError` is raised while `pyside_found` is still False.