raise ValueError when comparing packages with different names