def __init__(self):
        if (self.compare is None) != (self.version is None):
            raise ValueError(
                "Must specify both or neither compare and version.")
:raises ValueError: If ``compare`` and ``version`` values are not
dataset/ETHPy150Open ClusterHQ/flocker/admin/packaging.py/Dependency.__init__