Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Example program -Error #14

Closed
KarthikShivaa opened this issue Apr 16, 2016 · 6 comments
Closed

Example program -Error #14

KarthikShivaa opened this issue Apr 16, 2016 · 6 comments

Comments

@KarthikShivaa
Copy link

Please tell me how to correct this error....
Thanks in advance!
Traceback (most recent call last):
File "/home/user/PycharmProjects/untitled/zen.py", line 9, in
config = Decoder.default_config()
NameError: name 'Decoder' is not defined

Process finished with exit code 1

@nshmyrev
Copy link

import pocketsphinx module properly.

@TobiasWeis
Copy link

I just did a fresh clone and built it, and the example program (which is provided by you and untouched) only throws errors. First ones in line are actually:
Traceback (most recent call last):
File "./example.py", line 4, in
from pocketsphinx.pocketsphinx import *
ImportError: No module named pocketsphinx

After one removes the first pocketsphinx and the first sphinxbase, the Decoder-Error from above comes.

@nshmyrev
Copy link

You can check files in your filesystem and installation log to see if module is actually properly installed. Most likely it was not installed properly. To get further help you need to provide installation logs.

@TobiasWeis
Copy link

Again, this is related to the false instructions in the readme. Still had the repo-version installed. After uninstalling that, building fresh from git, the example works.

@mbait
Copy link

mbait commented Apr 29, 2016

What readme are you referring to and what instructions do you consider
"false"?

On Thu, Apr 28, 2016 at 4:42 PM, Tobi notifications@github.com wrote:

Again, this is related to the false instructions in the readme. Still had
the repo-version installed. After uninstalling that, building fresh from
git, the example works.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#14 (comment)

Sincerely, Alexander

@TobiasWeis
Copy link

Regarding the readme, please excuse, fault was totally on my side (surprise!), it got too late last night. I misread the readme and installed with apt-get (this package in the repos seems to be broken?) instead of pip/git.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants