Skip to content

Commit

Permalink
fix: notify users when wrong coqpit package is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
eginhard committed Feb 10, 2025
1 parent a2fb366 commit 7bd1108
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions TTS/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7bd1108

Please sign in to comment.