-
Notifications
You must be signed in to change notification settings - Fork 175
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
RuntimeError: espeak not installed on your system #163
Comments
I'm having the same issue |
@rumbleFTW I'm on MacOS |
Please check #159 for the solution for MacOS. |
I just had the same issue. I did some digging. I think it has to do with how I made virtual environment at least for me. I used conda just as normally as I do. Then I called Note that I installed Here is the output import ctypes
ctypes.cdll.LoadLibrary('libespeak-ng.so.1')
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
Cell In[6], line 1
----> 1 ctypes.cdll.LoadLibrary('libespeak-ng.so.1')
File ~/miniconda3/envs/tts/lib/python3.10/ctypes/__init__.py:452, in LibraryLoader.LoadLibrary(self, name)
451 def LoadLibrary(self, name):
--> 452 return self._dlltype(name)
File ~/miniconda3/envs/tts/lib/python3.10/ctypes/__init__.py:374, in CDLL.__init__(self, name, mode, handle, use_errno, use_last_error, winmode)
371 self._FuncPtr = _FuncPtr
373 if handle is None:
--> 374 self._handle = _dlopen(self._name, mode)
375 else:
376 self._handle = handle
OSError: /home/seongbin/miniconda3/envs/tts/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib/libespeak-ng.so.1) It's looking for libs in relative path. I know that conda redefines lib path as well as bin path. So the solutions I am thinking are 1. install espeak-ng using conda so that conda can places libs as well as bins under new path or 2. do not use conda, use something else like venv. I will put updates when I tried them. But I won't have time this weekend. So if someone wants to try, please do and it would be appreciated if someone can verify them. |
@sbinnee You are probably correct, since I am trying to do this in a conda env as well, and might be because of the way conda handles the libs. However the espeak-ng package is not present in the conda repositories as far as I know. I tried the second method that you suggested i.e. use venv for the environment, and it worked flawlessly. So it is indeed because of the conda env. Although this solves the issue, my workflow is really dependent on conda, so I still need to figure out how to make it work in a conda env. |
Hi, did you tried that (from docs): conda env config vars set PHONEMIZER_ESPEAK_LIBRARY="/somewhere/to/libespeak-ng.so" ? |
Just tried. Didn't work for me. Can someone else like @sbinnee test out if it solves the issue on their system? |
I met the same problem. My platform is Linux. Besides, I don't know where the 'libespeak-ng.so' is located |
Yeah, this is definitely still a problem for windows users.
Traceback (most recent call last): It's there. It's the 64 bit version. I don't know what it wants.I edited wrapper.py to see what would happen and it printed out the actual error; Why the heck it is trying to prepend the current directory of the running script? |
I have the same problem in a VM with Linux Ubuntu 22.04.4 LTS (x86-64)Even though the model worked fine on a local machine with windows, when passing the path to the espeak-ng library according to this installation guide https://bootphon.github.io/phonemizer/install.html , I could not make it work in a VM under Ubuntu 22.04.4 LTS x86-64. When running my script to transcribe phonemes via wav2vec2phoneme, I got the following message Traceback (most recent call last): For installing espeak, I followed these steps:
Espeak is definitely installed under /usr/lib/x86_64-linux-gnu/libespeak-ng.so.1 and /usr/bin/espeak-ng. I tried the following:
I would appreciate any help. Thanks in advance. |
I had the same issue on my M1 pro macbook, this environment worked. I changed it to somewhere like |
请问你解决了吗,我也遇到了相同的问题 |
verified , works for me after installing with homebrew. I add the cell: import os
# Set the environment variable within the notebook
os.environ['PHONEMIZER_ESPEAK_LIBRARY'] = '/opt/homebrew/opt/espeak-ng/lib/libespeak-ng.dylib' and then it works |
I encountered the same problem and successfully solved it with another method, at least it worked for me.
to install arch4edu/espeak 1:1.48.04-4 in arch
raise RuntimeError( # pragma: nocover
RuntimeError: espeak not installed on your system
import ctypes
ctypes.cdll.LoadLibrary('libespeak-ng.so.1') The results are similar, but the paths are different OSError: /home/seongbin/miniconda3/envs/tts/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib/libespeak-ng.so.1) with taking /home/seongbin/miniconda3/envs/tts/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib/libespeak-ng.so.1) as an example, we can copy Then this problem is solved, and it works for me. |
PHONEMIZER_ESPEAK_LIBRARY="c:\Program Files\eSpeak NG\libespeak-ng.dll" it works for me in Windows 11 |
I am facing this error when I try to initialize the phonemizer backend:
RuntimeError: espeak not installed on your system
I already have installed espeak-ng using
pacman -S espeak-ng
and set the pathPHONEMIZER_ESPEAK_LIBRARY
to my espeak binary. Any idea on how to fix this?Details:
OS: Arch linux.
Python version: 3.8.18
espeak-ng version: 1.51.1
The text was updated successfully, but these errors were encountered: