Kyubyong / g2p

g2p: English Grapheme To Phoneme Conversion
Apache License 2.0
811 stars 128 forks source link

ImportError: cannot import name 'g2p' #2

Closed mattmiranda closed 6 years ago

mattmiranda commented 6 years ago

Hello, Thank you for making this handy package. I installed the package using the setup.py file and tried importing it but I get an import error.

>>> from g2p_en import g2p Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/g2p_en/__init__.py", line 1, in <module> from g2p import g2p, Session ImportError: cannot import name 'g2p'

I also tried uninstalling the package and installing it again using pip but the problem persisted. Am I doing something wrong?

Thanks in advance. Matt

ozmig77 commented 6 years ago

Hello, found a bug in loading submodules at python3 and now it's fixed.

mattmiranda commented 6 years ago

Thank you very much!