Closed 106AbdulBasit closed 3 weeks ago
Hi, your issue is not related to phonemizer but to your environment. I suppose the exception is raised by the line backend = EspeakBackend('en-us')
because under the scene the espeak library is copied into a temp directory (https://github.com/bootphon/phonemizer/blob/master/phonemizer/backend/espeak/api.py#L66).
If this is confirmed you can try fixing a call to tempfile.mkdtemp()
in your cloud. What is strange is that usually tempdir is going to /tmp
by default, not to /home
...
*Issue Description: I'm encountering a "Home directory not accessible: Permission denied" error when attempting to run the following code on a cloud environment. The code is using the Phonemizer library for phonemizing text. It runs successfully on a local machine, but the issue arises when trying to execute it in a cloud environment
Error Message:
Home directory not accessible: Permission denied Home directory not accessible: Permission denied
Context: The script executes successfully on a local machine, but the error occurs when attempting to run it in a cloud environment. The issue seems to be related to home directory permissions
Steps to Reproduce:
Execute the provided code on a local machine. Attempt to run the same code on a cloud environment. Additional Information:
The code is using the Phonemizer library. The error suggests a permission issue related to home directory access. The script is expected to remove punctuation and phonemize words. Environment:
Local Machine: ubntu[wsl] Cloud Environment: vast.ai Python Version: 3.8 Phonemizer Library Version: 3.2.1