It is possible to have a group inside a compound path. In the UI you will see "ungroup" offered but not working - the proper cure is to revert compound, then to ungroup, then to compound again.
In scripting, the compoundpath object simply has no path members (and the object does not provide access to groups)
Please either ensure that compound paths cannot include groups (preferred) or allow access to them from scripting
It is possible to have a group inside a compound path. In the UI you will see "ungroup" offered but not working - the proper cure is to revert compound, then to ungroup, then to compound again.
In scripting, the compoundpath object simply has no path members (and the object does not provide access to groups)
Please either ensure that compound paths cannot include groups (preferred) or allow access to them from scripting