Skip to content
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

M1 Mac piper-phonemize issues + arm64 binary fails to run #395

Open
bephrem1 opened this issue Feb 14, 2024 · 11 comments
Open

M1 Mac piper-phonemize issues + arm64 binary fails to run #395

bephrem1 opened this issue Feb 14, 2024 · 11 comments

Comments

@bephrem1
Copy link

bephrem1 commented Feb 14, 2024

Creating this issue to pull together the issues that Mac users are facing getting things up & running locally. I am on an M1 Macbook, 2020, running Sonoma 14.0 (8GB RAM).

1) piper-phenomize dependency issue

Running pip install piper-tts yields the following error:

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

following up with specific package versions with pip install piper-phonemize==1.1.0 piper-tts==1.2.0 yields

ERROR: Could not find a version that satisfies the requirement piper-phonemize==1.1.0 (from versions: none)
ERROR: No matching distribution found for piper-phonemize==1.1.0

running pip install piper-phonemize yields the same error as above.

This is odd because the package shows up on PyPi (piper-phonemize on PyPi). (not sure why it says (from versions: none), wondering where that data is pulled from.

This leads to the piper-tts being (currently) uninstallable for Mac users.

2) arm64 binary fails to run

Running the arm64 binary (downloaded from repo homepage) result in the error:

zsh: exec format error: /Users/bephrem/Documents/onsite.dev/code/dialog-service/tts/piper/piper

running file {piper_executable_path} yields

{piper_executable_path}: ELF 64-bit LSB executable, ARM aarch64, version 1 (GNU/Linux), dynamically linked,
interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=3686a5e80b65afe31f6526f01faa309360429b10,
for GNU/Linux 3.7.0, not stripped, too many notes (256)

So currently it seems that there is no straight-forward way to run the library on a Macbook (w/o use of Docker, etc, which I might explore next).


Related Issues:

piper
#27 (issue running arm64 binary)
#156 (piper-phonemize dependency issue)
#193 (piper-phonemize dependency issue)
#217 (piper-phonemize dependency issue)
#357 (issue running arm64 binary)
#384 (piper-phonemize dependency issue)
#404 (~ other ~)

piper-phenomize
rhasspy/piper-phonemize#14 (piper-phenomize pip package missing)

Related PRs:

rhasspy/piper-phonemize#11
rhasspy/piper-phonemize#13

Related Videos:

▶︎▶︎ Context on Piper TTS Python Package: https://youtu.be/MT9wJ1k3xBw?si=kC51MB4yVZuYy2cO&t=1206 (timestamped)

@jmtatsch
Copy link

I can confirm issue number 1 which led me building from source which worked well with the Cmakelist pull request currently open.

@ElYaiko
Copy link

ElYaiko commented Feb 27, 2024

Having same issues

@OlliePugh
Copy link

Also experiencing this, but unfortunately don't have the python / C knowledge to help resolve it :/

@KoStard
Copy link

KoStard commented Apr 1, 2024

Here is the mentioned pull request, it's still open: Fixed build issues on MacOS caused by unset rpath by TheLouisHong · Pull Request #412 · rhasspy/piper.

This issue makes it harder for the M1/2 mac users to install the library.

@vodiylik
Copy link

vodiylik commented May 10, 2024

@bephrem1 Try install piper-phonemize-cross package with

pip install piper-phonemize-cross

command

@BirgitPohl
Copy link

pip install piper-phonemize-cross

I tried it, then ran

pip install piper-tts  

Didn't work for me. Mac with M2.

@vodiylik
Copy link

Didn't work for me. Mac with M2.

can you provide some logs?

@BirgitPohl
Copy link

BirgitPohl commented Jun 21, 2024

Sure, but the message is not new.

 pip install piper-phonemize-cross
Collecting piper-phonemize-cross
  Downloading piper_phonemize_cross-1.2.1-cp312-cp312-macosx_11_0_arm64.whl.metadata (325 bytes)
Downloading piper_phonemize_cross-1.2.1-cp312-cp312-macosx_11_0_arm64.whl (15.1 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.1/15.1 MB 7.3 MB/s eta 0:00:00
Installing collected packages: piper-phonemize-cross
Successfully installed piper-phonemize-cross-1.2.1
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

@vodiylik
Copy link

@BirgitPohl try install with this option

pip install piper-tts --no-deps

@Fledermaus-20
Copy link

@BirgitPohl try install with this option

pip install piper-tts --no-deps

This worked for me. Thanks!

@niummxvy
Copy link

@bephrem1* Try install piper-phonemize-cross package with

pip install piper-phonemize-cross

command

This works for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants