collabora / WhisperLive

A nearly-live implementation of OpenAI's Whisper.
MIT License
2.09k stars 283 forks source link

pip install fails #219

Open powellnorma opened 6 months ago

powellnorma commented 6 months ago

In colab, pip install whisper-live fails with:

Installing collected packages: tokenizers
  Attempting uninstall: tokenizers
    Found existing installation: tokenizers 0.19.1
    Uninstalling tokenizers-0.19.1:
      Successfully uninstalled tokenizers-0.19.1
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
transformers 4.41.1 requires tokenizers<0.20,>=0.19, but you have tokenizers 0.15.2 which is incompatible.

Can this be fixed by specifying the dependencies with exact package versions?

makaveli10 commented 6 months ago

@powellnorma we havent tried this in colab yet, thanks for opening the issue. Feel free to open a PR if you have fix already.

powellnorma commented 6 months ago

I just ignored the error .. Hoping that it wouldn't bite me later. The output was like

ERROR: pip's dependency resolver [..]
transformers [..]
Successfully installed [..]

Still it would be great if this warning/error could be avoided somehow. If you have a working virtualenv, maybe you could compare pip freeze with the pip freeze in colab. Or one prints the dependency tree - it looks like there are two different packages requiring different versions of tokenizers ..