Py2app likely doesn't work with Python 3.12 at the moment due to using ``imp`` which has been deprecated for a long time and was removed in 3.12.