-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Bug] Installation in M1 venv fails #1533
Comments
Hi @dawiinci, did you solve this? I come with the same problem. |
No, unfortunately not. |
I installed both versions without errors. But TTS still fails to install:
|
@dawiinci you are re-installing numpy from TTS's requirements.txt . Can you clone the repo, replace "numpy=XXX" to "numpy=1.21.5" or "numpy=1.21.6" in the requirements.txt and then install ? Thanks. |
FWIW, this fails for me too, even replacing the numpy version with 1.21.5 or 1.21.6. It looks like there are many bugs in numpy on an M1 chip based on their issues upstream. |
Are you on an M1 Mac as well? |
I am on an M1. |
Can confirm this doesn't work on M1. I tried cloning the repo and changing the
This seems to be a known issue with M1 and the |
I am having the same issue. Any progress? |
For me it fails due to "mecab-python3" See:
|
Having the same issue 👀 |
We officially only support Linux. Thus I close this issue but feel free to keep the conversation here. Being said that... One of our deps (mecab) used for G2P in Japanese is not M1 compatible. Try manually installing TTS by removing it from the requirements. |
Sure I’ll try that (Just so you know I hate python) |
This works thanks, pyworld has no wheel but builds fine on M1 |
We can probably also run it in Docker. |
I'm not sure if this is best solution but this worked for me:
You should see:
If you already have miniforge and it is an older version of python, run:
Setup the main requirements:
Then use it:
At an earlier point I had run this (not sure if it is a requirement):
|
@h57758 i tried running the code in Docker on my M1 but unfortunately without success. Steps to reproduce:
I'm getting this error: /venv/lib/python3.8/site-packages/torchaudio/compliance/kaldi.py:22: UserWarning: Failed to initialize NumPy: module compiled against API version 0xf but this version of numpy is 0xe (Triggered internally at /root/pytorch/torch/csrc/utils/tensor_numpy.cpp:77.)
EPSILON = torch.tensor(torch.finfo(torch.float).eps)
Traceback (most recent call last):
File "/venv/bin/tts", line 8, in <module>
sys.exit(main())
File "/root/TTS/bin/synthesize.py", line 357, in main
wav = synthesizer.tts(
File "/root/TTS/utils/synthesizer.py", line 270, in tts
outputs = synthesis(
File "/root/TTS/tts/utils/synthesis.py", line 217, in synthesis
model_outputs = model_outputs[0].data.cpu().numpy()
RuntimeError: Numpy is not available So this seems to be the same numpy problem mentioned before. |
This did the trick! Thank you |
I'm not sure what happened, but when i pull from the latest version (c753ad4) the demo runs fine using Docker on my M1. |
Works for me too! First
Then
|
I can also confirm that |
Thanks @jeffrafter, it did works on the Apple M1 chip. |
for people needing help for mac m2 using py=3.8 virtual env:
does the trick. |
Thanks @jeffrafter, it works on the M2 chip also! |
Still getting this error with
|
I am using M1 and pip TTS and here's what I did:
And that's it. |
|
Describe the bug
Installing tts in a python venv on macOS fails to install.
To Reproduce
Expected behavior
Successful installation.
Logs
M1 Mac ARMx64, macOS 12.3.1, Python 3.9.12 (brew)
The text was updated successfully, but these errors were encountered: