rhasspy / piper-phonemize

C++ library for converting text to phonemes for Piper
MIT License
86 stars 72 forks source link

Can't install piper-phonemize in Python #41

Open Germling opened 1 month ago

Germling commented 1 month ago

I tried pip install piper-phonemize or cloning the Git directory and installing it manually. Now I don't have it and can't use piper-tts...

Germling commented 1 month ago

Here's the error message: (piper-env) C:\Users\XXX>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. 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 to attempt to solve the dependency conflict

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

mrfrostycakes commented 1 month ago

Having same issue on my end exactly. Can't install piper-tts due to piper-phenomize but can't find a version of piper-phenomize with pip

krazyjakee commented 1 month ago

No builds for windows either. Looks like somebody deployed a borked build

hadware commented 1 month ago

Same here with leanspeech

JacsonAnderson commented 4 days ago

I encountered a similar issue, and here's how I managed to fix it on my Windows 10 system: I removed the piper-phonemize line from the requirements.txt file located at: ~\piper\src\python\requirements.txt

Before: cython>=0.29.0,<1 piper-phonemize~=1.1.0 librosa>=0.9.2,<1 numpy>=1.19.0 onnxruntime>=1.11.0 pytorch-lightning~=1.7.0 torch>=1.11.0,<2

My modified version: cython>=0.29.0,<1 librosa>=0.9.2,<1 numpy>=1.24.4 onnxruntime>=1.11.0 pytorch-lightning~=1.7.0 torch>=1.11.0

After installing the updated requirements, I installed piper-phonemize-cross individually: pip install piper-phonemize-cross

You can find it here: https://pypi.org/project/piper-phonemize-cross/

This worked perfectly for me.

Hope this helps!

mrfrostycakes commented 3 days ago

Thanks for this. I'm actually trying to I implement from comfyui so I don't think this will work.

I'm also not understanding your workforce to get to the requirements.txt file. Your link takes me to download a whl file which also doesn't install

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: jacson Ander @.> Sent: Tuesday, October 22, 2024 12:23:40 PM To: rhasspy/piper-phonemize @.> Cc: Carey Chico @.>; Comment @.> Subject: Re: [rhasspy/piper-phonemize] Can't install piper-phonemize in Python (Issue #41)

I encountered a similar issue, and here's how I managed to fix it on my Windows 10 system: I removed the piper-phonemize line from the requirements.txt file located at: ~\piper\src\python\requirements.txt

Before: cython>=0.29.0,<1 piper-phonemize~=1.1.0 librosa>=0.9.2,<1 numpy>=1.19.0 onnxruntime>=1.11.0 pytorch-lightning~=1.7.0 torch>=1.11.0,<2

My modified version: cython>=0.29.0,<1 librosa>=0.9.2,<1 numpy>=1.24.4 onnxruntime>=1.11.0 pytorch-lightning~=1.7.0 torch>=1.11.0

After installing the updated requirements, I installed piper-phonemize-cross individually: pip install piper-phonemize-cross

You can find it here: https://pypi.org/project/piper-phonemize-cross/

This worked perfectly for me.

Hope this helps!

— Reply to this email directly, view it on GitHubhttps://github.com/rhasspy/piper-phonemize/issues/41#issuecomment-2430071184, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A5N2BUJUQJIO46UTOSFFMX3Z42Q3ZAVCNFSM6AAAAABOCLSV52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZQGA3TCMJYGQ. You are receiving this because you commented.Message ID: @.***>

mrfrostycakes commented 3 days ago

Okay, update, I grabbed all of piper-master and modified the requirements.txt to match yours. I get the following error with torch:

ERROR: Could not find a version that satisfies the requirement torch<2,>=1.11.0 (from versions: 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.5.0) ERROR: No matching distribution found for torch<2,>=1.11.0

Carey Chico


From: Carey Chico @.> Sent: Wednesday, October 23, 2024 1:11 PM To: rhasspy/piper-phonemize @.>; rhasspy/piper-phonemize @.> Cc: Comment @.> Subject: Re: [rhasspy/piper-phonemize] Can't install piper-phonemize in Python (Issue #41)

Thanks for this. I'm actually trying to I implement from comfyui so I don't think this will work.

I'm also not understanding your workforce to get to the requirements.txt file. Your link takes me to download a whl file which also doesn't install

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: jacson Ander @.> Sent: Tuesday, October 22, 2024 12:23:40 PM To: rhasspy/piper-phonemize @.> Cc: Carey Chico @.>; Comment @.> Subject: Re: [rhasspy/piper-phonemize] Can't install piper-phonemize in Python (Issue #41)

I encountered a similar issue, and here's how I managed to fix it on my Windows 10 system: I removed the piper-phonemize line from the requirements.txt file located at: ~\piper\src\python\requirements.txt

Before: cython>=0.29.0,<1 piper-phonemize~=1.1.0 librosa>=0.9.2,<1 numpy>=1.19.0 onnxruntime>=1.11.0 pytorch-lightning~=1.7.0 torch>=1.11.0,<2

My modified version: cython>=0.29.0,<1 librosa>=0.9.2,<1 numpy>=1.24.4 onnxruntime>=1.11.0 pytorch-lightning~=1.7.0 torch>=1.11.0

After installing the updated requirements, I installed piper-phonemize-cross individually: pip install piper-phonemize-cross

You can find it here: https://pypi.org/project/piper-phonemize-cross/

This worked perfectly for me.

Hope this helps!

— Reply to this email directly, view it on GitHubhttps://github.com/rhasspy/piper-phonemize/issues/41#issuecomment-2430071184, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A5N2BUJUQJIO46UTOSFFMX3Z42Q3ZAVCNFSM6AAAAABOCLSV52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZQGA3TCMJYGQ. You are receiving this because you commented.Message ID: @.***>