-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't install piper-phonemize in Python #41
Comments
Here's the error message: The conflict is caused by: To fix this you could try to:
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts |
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 |
No builds for windows either. Looks like somebody deployed a borked build |
Same here with leanspeech |
I encountered a similar issue, and here's how I managed to fix it on my Windows 10 system:
After installing the updated requirements, I installed piper-phonemize-cross individually: You can find it here: This worked perfectly for me. Hope this helps! |
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 Android<https://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 GitHub<#41 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A5N2BUJUQJIO46UTOSFFMX3Z42Q3ZAVCNFSM6AAAAABOCLSV52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZQGA3TCMJYGQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
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 Android<https://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 GitHub<#41 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A5N2BUJUQJIO46UTOSFFMX3Z42Q3ZAVCNFSM6AAAAABOCLSV52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZQGA3TCMJYGQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
From what I've figured out, this error happens because there's no version of piper-phenomize for python3.12 available on pypi. To fix it on ubuntu 24.04, I installed python3.11 according to the instructions here and then made a 3.11 venv via instructions here and installed piper_tts, and it just worked™ Here's a copy of the incantations I used as a quick reference and defense against linkrot:
Success! Note that the "sudo" commands install python3.11 in your base system. It doesn't matter if your previous venv is activated or not, nor which directory you're in. The non-sudo commands create a new virtual environment named "venv-311", activate it, double-check that "python3" invokes the 3.11 version, and then installs piper-tts in the new virtual environment. Note that installing python3.11 has zero affect on anything else in the base system unless it's explicitly invoked as "pthon3.11" like I did here. I'm posting this comment here AND on the related issue under piper-tss, just so the next poor benighted soul who googles it actually finds it. |
If you want to do this in a windows machine, type "wsl" on your windows terminal. |
I'm having the same issue that when I'm trying to install piper from their github via
Perhaps PyPi's wheels aren't setup right? I see 1.1.0 on the PyPi website though. Also when I try to install it from the github repo I get a missing header error when compiling with |
To build the python wheel of the most recent version, 1.2.0, I had to modify the setup.py to be the following:
The the actual build:
However, the actual piper-tts uses previous version 1.1.0. |
To make the Windows build work in non WSL windows seems to be trickier. My current notes are: Setup compiler env, paths:
Add BOM mark to src/phoneme_ids.hpp There is no make, so run cmake manually:
The wheel builds for windows using the modified setup.py from above. |
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...
The text was updated successfully, but these errors were encountered: