rhasspy / piper

A fast, local neural text to speech system
https://rhasspy.github.io/piper-samples/
MIT License
5.27k stars 372 forks source link

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

Open Syedoaun opened 2 months ago

Syedoaun commented 2 months ago

pip install piper-tts

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

miranda commented 2 months ago

I had this problem too, I was able to get around it by installing python v3.10.12 and using that in a virtual environment. Otherwise I could not find any way to get it to work with my main system python v3.12.3. It seems this trick doesn't work for everyone but it did work for me on Arch Linux.

txuselo commented 1 month ago

Same issue here... even with python v3.10.12 I still having the issue on my mac m1. I don't know if this can affect

(venv31012) [jesus@Jesus-MBP](aks-uat-shared-app)(apps)scrapper (master)% python --version
Python 3.10.12
(venv31012) [jesus@Jesus-MBP](aks-uat-shared-app)(apps)scrapper (master)% pip install --no-cache-dir piper-tts                                                                    
Collecting piper-tts
  Downloading 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.
  Downloading 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

However, on a docker container based on python:3.10-slim it works

TheBill2001 commented 1 month ago

Also on Arch Linux, I have to use micromamba to install Python 3.11. Related rhasspy/piper-phonemize#33.

detrin commented 1 month ago

I have similar issue

~/Documents/projects/umbrella ❯ uv pip install piper-tts                                                                                                                                       Py umbrella 23:26:11
  × No solution found when resolving dependencies:
  ╰─▶ Because only the following versions of piper-phonemize are available:
          piper-phonemize<=1.0.0
          piper-phonemize>=1.1.dev0
      and piper-phonemize==1.0.0 has no wheels are available with a matching Python ABI, we can conclude that piper-phonemize<1.1.dev0 cannot be used.
      And because piper-tts==1.1.0 depends on piper-phonemize<1.1.dev0 and only the following versions of piper-tts are available:
          piper-tts==1.1.0
          piper-tts==1.2.0
      we can conclude that piper-tts<1.2.0 cannot be used. (1)

      Because only the following versions of piper-phonemize are available:
          piper-phonemize<=1.1.0
          piper-phonemize>=1.2.dev0
      and piper-phonemize==1.1.0 has no wheels are available with a matching Python ABI, we can conclude that piper-phonemize>=1.1.0 cannot be used.
      And because piper-tts==1.2.0 depends on piper-phonemize>=1.1.0, we can conclude that piper-tts==1.2.0 cannot be used.
      And because we know from (1) that piper-tts<1.2.0 cannot be used, we can conclude that all versions of piper-tts cannot be used.
      And because you require piper-tts, we can conclude that the requirements are unsatisfiable.

      hint: piper-phonemize was requested with a pre-release marker (e.g., piper-phonemize>1.0.0,<1.1.dev0), but pre-releases weren't enabled (try: `--prerelease=allow`)
jfhc commented 1 month ago

I have this problem using python 3.11.9


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```
isakimov commented 1 month ago

problem with python 3.10.11

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

JoshuaEworo commented 3 weeks ago

I still have this problem with python 3.11.6

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
smallbraingames commented 2 weeks ago

I am having this as well on a Mac with python 13.10.12

SomeOtherDev commented 1 week ago

I'm having this issue with both Python 3.11 and 3.9 on Windows. Downloading and running the piper windows binary works fine, but having the package installed would be better for my projects.

My "workaround" at the moment is a Dockerfile using the python:3.9-slim image. I then run apt-install for "libportaudio2" and "libsndfile1" (not sure if these are even needed tbh), and then ensuring piper-tts is installed via pip (I have a requirements.txt file for this).

JonSpeare commented 1 week ago

Same problem here, python 3.12.4 on Ubuntu.

ram-sh commented 2 days ago

same problem Python 3.11.5