If Python2 is installed via Homebrew (and likely through other third-party install mechanisms), the SU_CATALOG, SKIP_DEFERRAL, and MAX_DEFERRAL_TIME_CUSTOM checks fail with import errors while attempting to import the Foundation and CoreFoundation modules. This is likely expected behavior as those modules are only included by default in the macOS Python install.
The simple fix would be to place /usr/bin in the $PATH definitions, ahead of paths where third-party Python2 installs might be present, so that the script will only use the system Python2 install and successfully make the requisite calls. I'll submit a pull request shortly with this change, just wanted to have an issue to attach to the PR.
If Python2 is installed via Homebrew (and likely through other third-party install mechanisms), the
SU_CATALOG
,SKIP_DEFERRAL
, andMAX_DEFERRAL_TIME_CUSTOM
checks fail with import errors while attempting to import theFoundation
andCoreFoundation
modules. This is likely expected behavior as those modules are only included by default in the macOS Python install.The simple fix would be to place
/usr/bin
in the$PATH
definitions, ahead of paths where third-party Python2 installs might be present, so that the script will only use the system Python2 install and successfully make the requisite calls. I'll submit a pull request shortly with this change, just wanted to have an issue to attach to the PR.