piper icon indicating copy to clipboard operation
piper copied to clipboard

ERROR: Cannot install piper-tts==1.1.0 and piper-tts==1.2.0 because these package versions have conflicting dependencies.

Open cetindogu opened this issue 10 months ago • 18 comments

python.exe Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

pip install piper-tts Defaulting to user installation because normal site-packages is not writeable Collecting piper-tts Using cached piper_tts-1.2.0-py3-none-any.whl.metadata (776 bytes) INFO: pip is looking at multiple versions of piper-tts to determine which version is compatible with other requirements. This could take a while. Using cached piper_tts-1.1.0-py3-none-any.whl.metadata (776 bytes) ERROR: Cannot install piper-tts==1.1.0 and piper-tts==1.2.0 because these package versions have conflicting dependencies.

The conflict is caused by: piper-tts 1.2.0 depends on piper-phonemize~=1.1.0 piper-tts 1.1.0 depends on piper-phonemize~=1.0.0

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

cetindogu avatar Feb 06 '25 06:02 cetindogu

I am facing the same issue.

Are you using a Windows operating system??

ShikoThePro avatar Feb 06 '25 20:02 ShikoThePro

yes windows 11 23H2

cetindogu avatar Feb 07 '25 15:02 cetindogu

Exactly the same. It doesn't work when using pip to install Piper.

However, I actually solved it by downloading the zip file from here: https://github.com/rhasspy/piper/releases/download/2023.11.14-2/piper_windows_amd64.zip

After downloading, unzip the file, then download the model and its config file from Hugging Face, and place them in the same folder for easier access.

Next, open the command prompt from the Piper folder and run this command: echo "Your text here" | piper.exe -m C:\piper\your_model.onnx -c C:\piper\your_model_config_file.onnx.json -f my_voice.wav

This should work!

Feel free to reach out if you need further assistance!

ShikoThePro avatar Feb 08 '25 14:02 ShikoThePro

I got bitten by the same. The issue seems to be that piper-phonemize is not built for Windows: https://pypi.org/project/piper-phonemize/#files

hapasa avatar Feb 08 '25 20:02 hapasa

I got bitten by the same. The issue seems to be that piper-phonemize is not built for Windows: https://pypi.org/project/piper-phonemize/#files

That is True.

But there is an approach to solve this problem as I mentioned above.

ShikoThePro avatar Feb 09 '25 18:02 ShikoThePro

I have the same issue on linux. All these packages seem well outdated and not well maintained.

simonsays-techtalk avatar Feb 19 '25 13:02 simonsays-techtalk

Hi, I’m experiencing the same installation issue with Piper TTS when trying to use it. I'm running Python 3.9 on Windows 11, and the CPU version of onnxruntime seems to conflict with the current dependency requirements.

Camilo-Barreto avatar Feb 20 '25 13:02 Camilo-Barreto

I have moved away from this project. The audio streaming from the docker container is horrible, manual installation fails.

simonsays-techtalk avatar Feb 20 '25 13:02 simonsays-techtalk

I tried it on Intel Windows 10 with Python 3.11.2, 3.10.11, and 3.12.5 and this exact same error message will not go away. I then tried it with Python 3.10.12 in WSL in Windows 10, and it worked first time! https://youtu.be/Zhl__eO03f8

ianlow27 avatar Feb 21 '25 22:02 ianlow27

Exactly the same. It doesn't work when using pip to install Piper.

However, I actually solved it by downloading the zip file from here: https://github.com/rhasspy/piper/releases/download/2023.11.14-2/piper_windows_amd64.zip

After downloading, unzip the file, then download the model and its config file from Hugging Face, and place them in the same folder for easier access.

Next, open the command prompt from the Piper folder and run this command: echo "Your text here" | piper.exe -m C:\piper\your_model.onnx -c C:\piper\your_model_config_file.onnx.json -f my_voice.wav

This should work!

Feel free to reach out if you need further assistance!

Confirmed this works with the latest version of Visual C++ 2015-2022 Redistributable (x64) version 14.42.34438.0

i3enl avatar Feb 23 '25 22:02 i3enl

Following!

suburban-daredevil avatar Feb 24 '25 06:02 suburban-daredevil

Same issue. +1 Bump.

JustAnEric avatar Mar 02 '25 00:03 JustAnEric

I have same issue on linux mint

javav12 avatar Mar 08 '25 15:03 javav12

Same issue on macOS Sequoia.

jendas1 avatar Apr 12 '25 06:04 jendas1

Likely the same issue: https://github.com/rhasspy/piper/issues/769

micseydel avatar Apr 14 '25 18:04 micseydel

@simonsays-techtalk, what are you using instead? I'm tempted to try @ShikoThePro's solution but it seems like it's essentially just a downgrade, so I'd be reluctant to rely on it.

micseydel avatar Apr 14 '25 18:04 micseydel

@micseydel That is a very good question. I got so fed up with it all, I designed my own solution. But it is very different from this. It is an HA mediaplayer that does STT and TTS from Ollama and has the ability to learn and forget using a database (RAG). It's still somewhat, or very, rudimental, but it does work with some effort. Check my github, it's called Soundhive. It does tts from HA, but cannot execute commands (not that that was working very well anyway, or usefull). I found tts from HA more usefull that executing STT commands for my usecase.

simonsays-techtalk avatar Apr 14 '25 18:04 simonsays-techtalk

I have the same issue with Windows 11.

JulianValline avatar Apr 30 '25 14:04 JulianValline