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

No module named 'segments' #52

Closed
t-duan opened this issue Aug 13, 2020 · 2 comments
Closed

No module named 'segments' #52

t-duan opened this issue Aug 13, 2020 · 2 comments

Comments

@t-duan
Copy link

t-duan commented Aug 13, 2020

Hi, I tried to install Phonemizer from sources, when I run "python setup.py", I got the following error:
Traceback (most recent call last):
File "setup.py", line 21, in
import phonemizer
File "/home/duan/phonemizer/phonemizer/init.py", line 17, in
from .phonemize import phonemize
File "/home/duan/phonemizer/phonemizer/phonemize.py", line 27, in
from phonemizer.backend import (
File "/home/duan/phonemizer/phonemizer/backend/init.py", line 19, in
from .segments import SegmentsBackend
File "/home/duan/phonemizer/phonemizer/backend/segments.py", line 20, in
import segments
ModuleNotFoundError: No module named 'segments'

@mmmaat
Copy link
Collaborator

mmmaat commented Aug 13, 2020

Hi, thanks for reporting. I guess this is due to a recent change in the import system (https://github.com/bootphon/phonemizer/blob/master/CHANGELOG.md#phonemizer-221), I'll fix it soon.

If you can't wait, just edit setup.py: remove the line import phonemizer and change the line version=phonemizer.__version__ to version='2.2.1'.

@t-duan
Copy link
Author

t-duan commented Aug 13, 2020

Ok, thank you very much!

@mmmaat mmmaat closed this as completed in 585c54d Aug 13, 2020
mmmaat pushed a commit that referenced this issue Aug 13, 2020
fixed #52

See merge request mbernard/phonemizer!17
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

2 participants