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

model error #3

Closed
exploer opened this issue Nov 7, 2017 · 8 comments
Closed

model error #3

exploer opened this issue Nov 7, 2017 · 8 comments

Comments

@exploer
Copy link

exploer commented Nov 7, 2017

ImportError: No module named speech

@awni
Copy link
Owner

awni commented Nov 7, 2017

This means your PYTHONPATH is not set correctly. I would double check that when you source setup.sh the paths are being set appropriately. In particular:

echo $PYTHONPATH and make sure that the path to the repository is there.

One possible error is that the source setup.sh must be done from the top level directory (speech/).

@exploer
Copy link
Author

exploer commented Nov 8, 2017

when I exec "echo $PYTHONPATH", It tells me “..../speech-master/libs/warp-ctc/pytorch_binding: ", is it correct? @awni

@awni
Copy link
Owner

awni commented Nov 8, 2017

No it's not correct, it should be something like:

<path_to>/speech-master/..:<path_to>/speech-master/libs/warp-ctc/pytorch_binding:

I'm not sure why the setup.sh script didn't work for you. I'll try to find a way to reproduce this, but in the meantime, you can set the path manually for now or debug the setup.sh script yourself and submit a patch if you figure out the issue. The script is not complicated, just two lines.

@exploer exploer closed this as completed Nov 8, 2017
@exploer exploer reopened this Nov 8, 2017
@exploer
Copy link
Author

exploer commented Nov 8, 2017

It is OK. ".../speech-master/..:/home/pupil/win/speech-master/libs/warp-ctc/pytorch_binding:". But it still t tells me "ImportError: No module named speech". @awni

@awni
Copy link
Owner

awni commented Nov 8, 2017

Oops, I get the problem now, the module name is the repo name (bad design!). If you change the repo from speech-master to speech it should work.

I will file an issue to fix the package structure so this does not break.

@exploer
Copy link
Author

exploer commented Nov 8, 2017

sorry, I cannot catch you. I do not find that any folder named speech. can you tell me more Specific measures.

@exploer
Copy link
Author

exploer commented Nov 8, 2017

when I exec "sudo make", it tells me "ImportError: No module named torch", it works good yesterday,
what happend? @awni

@awni
Copy link
Owner

awni commented Nov 8, 2017

If you change the name of the repository from speech-master to speech it should solve the import speech error.

@awni awni closed this as completed Nov 8, 2017
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