def _classify_and_log_pip_install_error()

in src/responsibleai/rai_analyse/rai_component_utilities.py [0:0]


def _classify_and_log_pip_install_error(elog):
    ret_message = []
    if elog is None:
        return ret_message

    if b"Could not find a version that satisfies the requirement" in elog:
        ret_message.append("Detected unsatisfiable version requirment.")

    if b"package versions have conflicting dependencies" in elog:
        ret_message.append("Detected dependency conflict error.")

    for m in ret_message:
        _logger.warning(m)

    return ret_message