Skip to content

Issue running g2p-seq2seq after install #194

@TristanKnot

Description

@TristanKnot

I'm having issues running the g2p model after setting up the package with sudo python setup.py install.
When I run the following in terminal I get the error below:

"g2p-seq2seq --interactive --model_dir ../../test_model/g2p-seq2seq-model-6.2-cmudict-nostress/ "
or simply
"g2p-seq2seq"

I have TensorFlow (1.15) and t2t installed.
"/usr/local/bin" is in my PATH and "g2p..." tab completes when I try to execute the script, but I still get the error below.
I'm running this on macOS.

Did I need to take any additional steps that are not outlined in the README?

tek:g2p_seq2seq Tristan$ g2p-seq2seq
Traceback (most recent call last):
File "/Users/Tristan/anaconda3/bin/g2p-seq2seq", line 33, in
sys.exit(load_entry_point('g2p-seq2seq==6.2.2a0', 'console_scripts', 'g2p-seq2seq')())
File "/Users/Tristan/anaconda3/bin/g2p-seq2seq", line 22, in importlib_load_entry_point
for entry_point in distribution(dist_name).entry_points
File "/Users/Tristan/anaconda3/lib/python3.7/site-packages/importlib_metadata/api.py", line 310, in distribution
return Distribution.from_name(package)
File "/Users/Tristan/anaconda3/lib/python3.7/site-packages/importlib_metadata/api.py", line 158, in from_name
raise PackageNotFoundError(name)
importlib_metadata.api.PackageNotFoundError: g2p-seq2seq

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions