diff --git a/TTS/__init__.py b/TTS/__init__.py index 8e93c9b5db..d270e09e22 100644 --- a/TTS/__init__.py +++ b/TTS/__init__.py @@ -4,6 +4,15 @@ __version__ = importlib.metadata.version("coqui-tts") +if "coqpit" in importlib.metadata.packages_distributions().get("coqpit", []): + msg = ( + "coqui-tts switched to a forked version of Coqpit, but you still have the original " + "package installed. Run the following to avoid conflicts:\n" + " pip uninstall coqpit\n" + " pip install coqpit-config" + ) + raise ImportError(msg) + if is_pytorch_at_least_2_4(): import _codecs