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

Errors After Installation #433

Closed
ashishbajaj99 opened this issue Jan 13, 2016 · 24 comments
Closed

Errors After Installation #433

ashishbajaj99 opened this issue Jan 13, 2016 · 24 comments

Comments

@ashishbajaj99
Copy link

I've followed all the instructions for installation and configuration. Here is my profile.yml

carrier: ''
first_name: Ashish
gmail_password: ''
last_name: Bajaj
phone_number: ''
prefers_email: true
stt_engine: sphinx
tts_engine: espeak-tts
espeak-tts:
   voice: 'default+m3'
   pitch_adjustment: 40
   words_per_minute: 160
timezone: Asia/Kolkata

When I launch jasper.py I get the following errors:

Traceback (most recent call last):
  File "/home/pi/jasper/jasper.py", line 12, in <module>
    from client import tts, stt, jasperpath, diagnose
  File "/home/pi/jasper/client/tts.py", line 41, in <module>
    import diagnose
  File "/home/pi/jasper/client/diagnose.py", line 9, in <module>
    import pip.req
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 74, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "/usr/lib/python2.7/dist-packages/pip/vcs/mercurial.py", line 9, in <module>
    from pip.download import path_to_url
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 25, in <module>
    from requests.compat import IncompleteRead
ImportError: cannot import name IncompleteRead

I am on Debian Jessie branch. Also I've used the package manager to install the experimental dependencies using this:

sudo apt-get -t experimental install phonetisaurus m2m-aligner mitlm

Though I can see that I have phonetisaurus via the package manager, I am unable to locate the fst file.

pi@ashiya:~ $ dpkg -L phonetisaurus
/.
/usr
/usr/bin
/usr/bin/phonetisaurus-calculateER
/usr/bin/phonetisaurus-g2p
/usr/bin/phonetisaurus-arpa2fst
/usr/bin/phonetisaurus-align
/usr/share
/usr/share/doc
/usr/share/doc/phonetisaurus
/usr/share/doc/phonetisaurus/README.txt
/usr/share/doc/phonetisaurus/buildinfo_armhf.gz
/usr/share/doc/phonetisaurus/changelog.Debian.gz
/usr/share/doc/phonetisaurus/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/phonetisaurus-align.1.gz
/usr/share/man/man1/phonetisaurus-arpa2fst.1.gz
/usr/share/man/man1/phonetisaurus-g2p.1.gz
/usr/share/man/man1/phonetisaurus-calculateER.1.gz

So as you can see my profile.yml doesnt have the following lines - does this cause the error?

pocketsphinx:
  fst_model: '../phonetisaurus/g014b2b.fst'                              #optional
  hmm_dir: '/usr/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k' #optional
@ashishbajaj99
Copy link
Author

Okay found that this was an error with pip installations. Extremely weird problem that pip installation with apt-get results in errors. But it works with easy_install

Essentially this does not work:

$ sudo apt-get purge -y python-pip
$ sudo apt-get -y autoremove
$ sudo apt-get install -y python-pip
$ pip --version

But this works:

$ sudo apt-get purge -y python-pip
$ sudo apt-get -y autoremove
$ sudo easy_install pip
$ pip --version

Now I am getting errors with my STT engine:

pi@ashiya:~ $ jasper/jasper.py 
*******************************************************
*             JASPER - THE TALKING COMPUTER           *
* (c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *
*******************************************************
ERROR:root:Error occured!
Traceback (most recent call last):
  File "jasper/jasper.py", line 143, in <module>
    app = Jasper()
  File "jasper/jasper.py", line 88, in __init__
    stt_engine_class = stt.get_engine_by_slug(stt_engine_slug)
  File "/home/pi/jasper/client/stt.py", line 648, in get_engine_by_slug
    "dependencies, etc.)") % slug)
ValueError: STT engine 'sphinx' is not available (due to missing dependencies, missing dependencies, etc.)

Not sure why, I've manually downloaded the Phonetisaurus model and compiled it using the instructions here:

cd g014b2b/
./compile-fst.sh

My new profile.yml looks like this:

pi@ashiya:~/jasper $ cat ~/.jasper/profile.yml 
carrier: ''
first_name: Ashish
gmail_password: ''
last_name: Bajaj
phone_number: ''
prefers_email: true
stt_engine: sphinx
pocketsphinx:
   fst_model: '/home/pi/g014b2b/g014b2b.fst'
   hmm_dir: '/usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k'
tts_engine: espeak-tts
espeak-tts:
   voice: 'default+m3'
   pitch_adjustment: 40
   words_per_minute: 160
timezone: Asia/Kolkata

How can I check what dependencies I am missing? Appreciate any help.

Cheers.

@G10DRAS
Copy link

G10DRAS commented Jan 13, 2016

Run Jasper in debug mode
./jasper.py --debug
and see log for more details.

Seems pocketsphinx not installed.

@G10DRAS
Copy link

G10DRAS commented Jan 14, 2016

try installing Pocketsphinx

sudo apt-get install -y python python-dev python-pip build-essential swig git

sudo apt-get install python-pocketsphinx
OR
sudo pip install sphinxbase
sudo pip install pocketsphinx

@ashishbajaj99
Copy link
Author

Hmmm, I actually did have pocketsphinx installed via apt-get:

sudo apt-get install pocketsphinx

Here is what I get with dpkg:

pi@ashiya:~ $ dpkg -L pocketsphinx
/.
/usr
/usr/bin
/usr/bin/pocketsphinx_batch
/usr/bin/pocketsphinx_continuous
/usr/bin/pocketsphinx_mdef_convert
/usr/share
/usr/share/doc
/usr/share/doc/pocketsphinx
/usr/share/doc/pocketsphinx/AUTHORS
/usr/share/doc/pocketsphinx/html
/usr/share/doc/pocketsphinx/html/tabs.css
/usr/share/doc/pocketsphinx/html/dynsections.js
/usr/share/doc/pocketsphinx/html/tab_a.png
/usr/share/doc/pocketsphinx/html/tab_b.png
/usr/share/doc/pocketsphinx/html/tab_h.png
/usr/share/doc/pocketsphinx/html/tab_s.png
/usr/share/doc/pocketsphinx/html/nav_h.png
/usr/share/doc/pocketsphinx/html/nav_f.png
/usr/share/doc/pocketsphinx/html/bc_s.png
/usr/share/doc/pocketsphinx/html/doxygen.png
/usr/share/doc/pocketsphinx/html/closed.png
/usr/share/doc/pocketsphinx/html/open.png
/usr/share/doc/pocketsphinx/html/bdwn.png
/usr/share/doc/pocketsphinx/html/sync_on.png
/usr/share/doc/pocketsphinx/html/sync_off.png
/usr/share/doc/pocketsphinx/html/nav_g.png
/usr/share/doc/pocketsphinx/html/ftv2blank.png
/usr/share/doc/pocketsphinx/html/ftv2doc.png
/usr/share/doc/pocketsphinx/html/ftv2folderclosed.png
/usr/share/doc/pocketsphinx/html/ftv2folderopen.png
/usr/share/doc/pocketsphinx/html/ftv2lastnode.png
/usr/share/doc/pocketsphinx/html/ftv2link.png
/usr/share/doc/pocketsphinx/html/ftv2mlastnode.png
/usr/share/doc/pocketsphinx/html/ftv2mnode.png
/usr/share/doc/pocketsphinx/html/ftv2node.png
/usr/share/doc/pocketsphinx/html/ftv2plastnode.png
/usr/share/doc/pocketsphinx/html/ftv2pnode.png
/usr/share/doc/pocketsphinx/html/ftv2vertline.png
/usr/share/doc/pocketsphinx/html/ftv2splitbar.png
/usr/share/doc/pocketsphinx/html/doxygen.css
/usr/share/doc/pocketsphinx/html/cmdln__macro_8h_source.html
/usr/share/doc/pocketsphinx/html/fsg__set_8h_source.html
/usr/share/doc/pocketsphinx/html/pocketsphinx_8h_source.html
/usr/share/doc/pocketsphinx/html/pocketsphinx__export_8h_source.html
/usr/share/doc/pocketsphinx/html/ps__lattice_8h_source.html
/usr/share/doc/pocketsphinx/html/ps__mllr_8h_source.html
/usr/share/doc/pocketsphinx/html/acmod_8c_source.html
/usr/share/doc/pocketsphinx/html/acmod_8h_source.html
/usr/share/doc/pocketsphinx/html/bin__mdef_8c_source.html
/usr/share/doc/pocketsphinx/html/bin__mdef_8h_source.html
/usr/share/doc/pocketsphinx/html/blkarray__list_8c_source.html
/usr/share/doc/pocketsphinx/html/blkarray__list_8h_source.html
/usr/share/doc/pocketsphinx/html/dict_8c_source.html
/usr/share/doc/pocketsphinx/html/dict_8h_source.html
/usr/share/doc/pocketsphinx/html/dict2pid_8c_source.html
/usr/share/doc/pocketsphinx/html/dict2pid_8h_source.html
/usr/share/doc/pocketsphinx/html/fsg__history_8c_source.html
/usr/share/doc/pocketsphinx/html/fsg__history_8h_source.html
/usr/share/doc/pocketsphinx/html/fsg__lextree_8c_source.html
/usr/share/doc/pocketsphinx/html/fsg__lextree_8h_source.html
/usr/share/doc/pocketsphinx/html/fsg__search_8c_source.html
/usr/share/doc/pocketsphinx/html/fsg__search__internal_8h_source.html
/usr/share/doc/pocketsphinx/html/hmm_8c_source.html
/usr/share/doc/pocketsphinx/html/hmm_8h_source.html
/usr/share/doc/pocketsphinx/html/mdef_8c_source.html
/usr/share/doc/pocketsphinx/html/mdef_8h_source.html
/usr/share/doc/pocketsphinx/html/ms__gauden_8c_source.html
/usr/share/doc/pocketsphinx/html/ms__gauden_8h_source.html
/usr/share/doc/pocketsphinx/html/ms__mgau_8c_source.html
/usr/share/doc/pocketsphinx/html/ms__mgau_8h_source.html
/usr/share/doc/pocketsphinx/html/ms__senone_8c_source.html
/usr/share/doc/pocketsphinx/html/ms__senone_8h_source.html
/usr/share/doc/pocketsphinx/html/ngram__search_8c_source.html
/usr/share/doc/pocketsphinx/html/ngram__search_8h_source.html
/usr/share/doc/pocketsphinx/html/ngram__search__fwdflat_8c_source.html
/usr/share/doc/pocketsphinx/html/ngram__search__fwdflat_8h_source.html
/usr/share/doc/pocketsphinx/html/ngram__search__fwdtree_8c_source.html
/usr/share/doc/pocketsphinx/html/ngram__search__fwdtree_8h_source.html
/usr/share/doc/pocketsphinx/html/phone__loop__search_8c_source.html
/usr/share/doc/pocketsphinx/html/phone__loop__search_8h_source.html
/usr/share/doc/pocketsphinx/html/pocketsphinx_8c_source.html
/usr/share/doc/pocketsphinx/html/pocketsphinx__internal_8h_source.html
/usr/share/doc/pocketsphinx/html/ps__alignment_8c_source.html
/usr/share/doc/pocketsphinx/html/ps__alignment_8h_source.html
/usr/share/doc/pocketsphinx/html/ps__lattice_8c_source.html
/usr/share/doc/pocketsphinx/html/ps__lattice__internal_8h_source.html
/usr/share/doc/pocketsphinx/html/ps__mllr_8c_source.html
/usr/share/doc/pocketsphinx/html/ptm__mgau_8c_source.html
/usr/share/doc/pocketsphinx/html/ptm__mgau_8h_source.html
/usr/share/doc/pocketsphinx/html/s2__semi__mgau_8c_source.html
/usr/share/doc/pocketsphinx/html/s2__semi__mgau_8h_source.html
/usr/share/doc/pocketsphinx/html/s3types_8h_source.html
/usr/share/doc/pocketsphinx/html/state__align__search_8c_source.html
/usr/share/doc/pocketsphinx/html/state__align__search_8h_source.html
/usr/share/doc/pocketsphinx/html/tied__mgau__common_8h_source.html
/usr/share/doc/pocketsphinx/html/tmat_8c_source.html
/usr/share/doc/pocketsphinx/html/tmat_8h_source.html
/usr/share/doc/pocketsphinx/html/vector_8c_source.html
/usr/share/doc/pocketsphinx/html/vector_8h_source.html
/usr/share/doc/pocketsphinx/html/fsg__set_8h.html
/usr/share/doc/pocketsphinx/html/pocketsphinx_8h.html
/usr/share/doc/pocketsphinx/html/ps__lattice_8h.html
/usr/share/doc/pocketsphinx/html/ps__mllr_8h.html
/usr/share/doc/pocketsphinx/html/acmod_8c.html
/usr/share/doc/pocketsphinx/html/acmod_8h.html
/usr/share/doc/pocketsphinx/html/bin__mdef_8h.html
/usr/share/doc/pocketsphinx/html/dict_8h.html
/usr/share/doc/pocketsphinx/html/dict2pid_8c.html
/usr/share/doc/pocketsphinx/html/dict2pid_8h.html
/usr/share/doc/pocketsphinx/html/fsg__lextree_8c.html
/usr/share/doc/pocketsphinx/html/hmm_8h.html
/usr/share/doc/pocketsphinx/html/mdef_8h.html
/usr/share/doc/pocketsphinx/html/ms__gauden_8h.html
/usr/share/doc/pocketsphinx/html/ms__mgau_8h.html
/usr/share/doc/pocketsphinx/html/ms__senone_8h.html
/usr/share/doc/pocketsphinx/html/ngram__search_8c.html
/usr/share/doc/pocketsphinx/html/ngram__search_8h.html
/usr/share/doc/pocketsphinx/html/ngram__search__fwdflat_8c.html
/usr/share/doc/pocketsphinx/html/ngram__search__fwdflat_8h.html
/usr/share/doc/pocketsphinx/html/ngram__search__fwdtree_8c.html
/usr/share/doc/pocketsphinx/html/ngram__search__fwdtree_8h.html
/usr/share/doc/pocketsphinx/html/phone__loop__search_8h.html
/usr/share/doc/pocketsphinx/html/pocketsphinx__internal_8h.html
/usr/share/doc/pocketsphinx/html/ps__alignment_8c.html
/usr/share/doc/pocketsphinx/html/ps__alignment_8h.html
/usr/share/doc/pocketsphinx/html/ps__lattice_8c.html
/usr/share/doc/pocketsphinx/html/ps__lattice__internal_8h.html
/usr/share/doc/pocketsphinx/html/ps__mllr_8c.html
/usr/share/doc/pocketsphinx/html/ptm__mgau_8h.html
/usr/share/doc/pocketsphinx/html/s3types_8h.html
/usr/share/doc/pocketsphinx/html/state__align__search_8c.html
/usr/share/doc/pocketsphinx/html/state__align__search_8h.html
/usr/share/doc/pocketsphinx/html/tied__mgau__common_8h.html
/usr/share/doc/pocketsphinx/html/tmat_8h.html
/usr/share/doc/pocketsphinx/html/structacmod__s.html
/usr/share/doc/pocketsphinx/html/structastar__seg__s.html
/usr/share/doc/pocketsphinx/html/structbestbp__rc__s.html
/usr/share/doc/pocketsphinx/html/structbin__mdef__s.html
/usr/share/doc/pocketsphinx/html/structblkarray__list__s.html
/usr/share/doc/pocketsphinx/html/structbptbl__s.html
/usr/share/doc/pocketsphinx/html/structbptbl__seg__s.html
/usr/share/doc/pocketsphinx/html/structcand__sf__t.html
/usr/share/doc/pocketsphinx/html/structcd__tree__s.html
/usr/share/doc/pocketsphinx/html/structchan__s.html
/usr/share/doc/pocketsphinx/html/structciphone__t.html
/usr/share/doc/pocketsphinx/html/structdag__seg__s.html
/usr/share/doc/pocketsphinx/html/structdict2pid__t.html
/usr/share/doc/pocketsphinx/html/structdict__t.html
/usr/share/doc/pocketsphinx/html/structdictword__t.html
/usr/share/doc/pocketsphinx/html/structfsg__glist__linklist__t.html
/usr/share/doc/pocketsphinx/html/structfsg__hist__entry__s.html
/usr/share/doc/pocketsphinx/html/structfsg__history__s.html
/usr/share/doc/pocketsphinx/html/structfsg__lextree__s.html
/usr/share/doc/pocketsphinx/html/structfsg__pnode__ctxt__t.html
/usr/share/doc/pocketsphinx/html/structfsg__pnode__s.html
/usr/share/doc/pocketsphinx/html/structfsg__search__s.html
/usr/share/doc/pocketsphinx/html/structfsg__seg__s.html
/usr/share/doc/pocketsphinx/html/structgauden__dist__t.html
/usr/share/doc/pocketsphinx/html/structgauden__t.html
/usr/share/doc/pocketsphinx/html/structhmm__context__s.html
/usr/share/doc/pocketsphinx/html/structhmm__context__t.html
/usr/share/doc/pocketsphinx/html/structhmm__s.html
/usr/share/doc/pocketsphinx/html/structhmm__t.html
/usr/share/doc/pocketsphinx/html/structlast__ltrans__t.html
/usr/share/doc/pocketsphinx/html/structlastphn__cand__s.html
/usr/share/doc/pocketsphinx/html/structlatlink__list__s.html
/usr/share/doc/pocketsphinx/html/structmdef__entry__s.html
/usr/share/doc/pocketsphinx/html/structmdef__t.html
/usr/share/doc/pocketsphinx/html/structms__mgau__model__t.html
/usr/share/doc/pocketsphinx/html/structms__mgau__t.html
/usr/share/doc/pocketsphinx/html/structngram__search__s.html
/usr/share/doc/pocketsphinx/html/structngram__search__stats__s.html
/usr/share/doc/pocketsphinx/html/structph__lc__s.html
/usr/share/doc/pocketsphinx/html/structph__lc__t.html
/usr/share/doc/pocketsphinx/html/structph__rc__s.html
/usr/share/doc/pocketsphinx/html/structph__rc__t.html
/usr/share/doc/pocketsphinx/html/structphone__loop__renorm__s.html
/usr/share/doc/pocketsphinx/html/structphone__loop__s.html
/usr/share/doc/pocketsphinx/html/structphone__loop__search__s.html
/usr/share/doc/pocketsphinx/html/structphone__t.html
/usr/share/doc/pocketsphinx/html/structps__alignment__entry__s.html
/usr/share/doc/pocketsphinx/html/structps__alignment__iter__s.html
/usr/share/doc/pocketsphinx/html/structps__alignment__s.html
/usr/share/doc/pocketsphinx/html/structps__alignment__vector__s.html
/usr/share/doc/pocketsphinx/html/structps__astar__s.html
/usr/share/doc/pocketsphinx/html/structps__decoder__s.html
/usr/share/doc/pocketsphinx/html/structps__latlink__s.html
/usr/share/doc/pocketsphinx/html/structps__latnode__s.html
/usr/share/doc/pocketsphinx/html/structps__latpath__s.html
/usr/share/doc/pocketsphinx/html/structps__lattice__s.html
/usr/share/doc/pocketsphinx/html/structps__mgau__s.html
/usr/share/doc/pocketsphinx/html/structps__mgaufuncs__s.html
/usr/share/doc/pocketsphinx/html/structps__mllr__s.html
/usr/share/doc/pocketsphinx/html/structps__search__s.html
/usr/share/doc/pocketsphinx/html/structps__searchfuncs__s.html
/usr/share/doc/pocketsphinx/html/structps__seg__s.html
/usr/share/doc/pocketsphinx/html/structps__segfuncs__s.html
/usr/share/doc/pocketsphinx/html/structptm__fast__eval__s.html
/usr/share/doc/pocketsphinx/html/structptm__mgau__s.html
/usr/share/doc/pocketsphinx/html/structptm__topn__s.html
/usr/share/doc/pocketsphinx/html/structroot__chan__s.html
/usr/share/doc/pocketsphinx/html/structs2__semi__mgau__s.html
/usr/share/doc/pocketsphinx/html/structsenone__t.html
/usr/share/doc/pocketsphinx/html/structstate__align__search__s.html
/usr/share/doc/pocketsphinx/html/structtmat__t.html
/usr/share/doc/pocketsphinx/html/structvqFeature__s.html
/usr/share/doc/pocketsphinx/html/structxwdssid__t.html
/usr/share/doc/pocketsphinx/html/dir_d44c64559bbebec7f509842c48db8b23.html
/usr/share/doc/pocketsphinx/html/dir_8d034a1e03e98d9b7ac467250bbebdea.html
/usr/share/doc/pocketsphinx/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html
/usr/share/doc/pocketsphinx/html/index.html
/usr/share/doc/pocketsphinx/html/annotated.html
/usr/share/doc/pocketsphinx/html/classes.html
/usr/share/doc/pocketsphinx/html/functions.html
/usr/share/doc/pocketsphinx/html/functions_b.html
/usr/share/doc/pocketsphinx/html/functions_c.html
/usr/share/doc/pocketsphinx/html/functions_d.html
/usr/share/doc/pocketsphinx/html/functions_e.html
/usr/share/doc/pocketsphinx/html/functions_f.html
/usr/share/doc/pocketsphinx/html/functions_g.html
/usr/share/doc/pocketsphinx/html/functions_h.html
/usr/share/doc/pocketsphinx/html/functions_i.html
/usr/share/doc/pocketsphinx/html/functions_j.html
/usr/share/doc/pocketsphinx/html/functions_l.html
/usr/share/doc/pocketsphinx/html/functions_m.html
/usr/share/doc/pocketsphinx/html/functions_n.html
/usr/share/doc/pocketsphinx/html/functions_o.html
/usr/share/doc/pocketsphinx/html/functions_p.html
/usr/share/doc/pocketsphinx/html/functions_q.html
/usr/share/doc/pocketsphinx/html/functions_r.html
/usr/share/doc/pocketsphinx/html/functions_s.html
/usr/share/doc/pocketsphinx/html/functions_t.html
/usr/share/doc/pocketsphinx/html/functions_u.html
/usr/share/doc/pocketsphinx/html/functions_v.html
/usr/share/doc/pocketsphinx/html/functions_w.html
/usr/share/doc/pocketsphinx/html/functions_vars.html
/usr/share/doc/pocketsphinx/html/functions_vars_b.html
/usr/share/doc/pocketsphinx/html/functions_vars_c.html
/usr/share/doc/pocketsphinx/html/functions_vars_d.html
/usr/share/doc/pocketsphinx/html/functions_vars_e.html
/usr/share/doc/pocketsphinx/html/functions_vars_f.html
/usr/share/doc/pocketsphinx/html/functions_vars_g.html
/usr/share/doc/pocketsphinx/html/functions_vars_h.html
/usr/share/doc/pocketsphinx/html/functions_vars_i.html
/usr/share/doc/pocketsphinx/html/functions_vars_j.html
/usr/share/doc/pocketsphinx/html/functions_vars_l.html
/usr/share/doc/pocketsphinx/html/functions_vars_m.html
/usr/share/doc/pocketsphinx/html/functions_vars_n.html
/usr/share/doc/pocketsphinx/html/functions_vars_o.html
/usr/share/doc/pocketsphinx/html/functions_vars_p.html
/usr/share/doc/pocketsphinx/html/functions_vars_q.html
/usr/share/doc/pocketsphinx/html/functions_vars_r.html
/usr/share/doc/pocketsphinx/html/functions_vars_s.html
/usr/share/doc/pocketsphinx/html/functions_vars_t.html
/usr/share/doc/pocketsphinx/html/functions_vars_u.html
/usr/share/doc/pocketsphinx/html/functions_vars_v.html
/usr/share/doc/pocketsphinx/html/functions_vars_w.html
/usr/share/doc/pocketsphinx/html/files.html
/usr/share/doc/pocketsphinx/html/globals.html
/usr/share/doc/pocketsphinx/html/globals_b.html
/usr/share/doc/pocketsphinx/html/globals_c.html
/usr/share/doc/pocketsphinx/html/globals_d.html
/usr/share/doc/pocketsphinx/html/globals_f.html
/usr/share/doc/pocketsphinx/html/globals_g.html
/usr/share/doc/pocketsphinx/html/globals_h.html
/usr/share/doc/pocketsphinx/html/globals_l.html
/usr/share/doc/pocketsphinx/html/globals_m.html
/usr/share/doc/pocketsphinx/html/globals_n.html
/usr/share/doc/pocketsphinx/html/globals_p.html
/usr/share/doc/pocketsphinx/html/globals_r.html
/usr/share/doc/pocketsphinx/html/globals_s.html
/usr/share/doc/pocketsphinx/html/globals_t.html
/usr/share/doc/pocketsphinx/html/globals_w.html
/usr/share/doc/pocketsphinx/html/globals_func.html
/usr/share/doc/pocketsphinx/html/globals_func_b.html
/usr/share/doc/pocketsphinx/html/globals_func_c.html
/usr/share/doc/pocketsphinx/html/globals_func_d.html
/usr/share/doc/pocketsphinx/html/globals_func_f.html
/usr/share/doc/pocketsphinx/html/globals_func_g.html
/usr/share/doc/pocketsphinx/html/globals_func_h.html
/usr/share/doc/pocketsphinx/html/globals_func_l.html
/usr/share/doc/pocketsphinx/html/globals_func_m.html
/usr/share/doc/pocketsphinx/html/globals_func_n.html
/usr/share/doc/pocketsphinx/html/globals_func_p.html
/usr/share/doc/pocketsphinx/html/globals_func_s.html
/usr/share/doc/pocketsphinx/html/globals_func_t.html
/usr/share/doc/pocketsphinx/html/globals_type.html
/usr/share/doc/pocketsphinx/html/globals_enum.html
/usr/share/doc/pocketsphinx/html/globals_eval.html
/usr/share/doc/pocketsphinx/html/globals_defs.html
/usr/share/doc/pocketsphinx/html/navtree.js
/usr/share/doc/pocketsphinx/html/annotated.js
/usr/share/doc/pocketsphinx/html/structacmod__s.js
/usr/share/doc/pocketsphinx/html/structastar__seg__s.js
/usr/share/doc/pocketsphinx/html/structbestbp__rc__s.js
/usr/share/doc/pocketsphinx/html/structbin__mdef__s.js
/usr/share/doc/pocketsphinx/html/structblkarray__list__s.js
/usr/share/doc/pocketsphinx/html/structbptbl__s.js
/usr/share/doc/pocketsphinx/html/structbptbl__seg__s.js
/usr/share/doc/pocketsphinx/html/structcand__sf__t.js
/usr/share/doc/pocketsphinx/html/structcd__tree__s.js
/usr/share/doc/pocketsphinx/html/structchan__s.js
/usr/share/doc/pocketsphinx/html/structciphone__t.js
/usr/share/doc/pocketsphinx/html/structdag__seg__s.js
/usr/share/doc/pocketsphinx/html/structdict2pid__t.js
/usr/share/doc/pocketsphinx/html/structdict__t.js
/usr/share/doc/pocketsphinx/html/structdictword__t.js
/usr/share/doc/pocketsphinx/html/structfsg__glist__linklist__t.js
/usr/share/doc/pocketsphinx/html/structfsg__hist__entry__s.js
/usr/share/doc/pocketsphinx/html/structfsg__history__s.js
/usr/share/doc/pocketsphinx/html/structfsg__lextree__s.js
/usr/share/doc/pocketsphinx/html/structfsg__pnode__ctxt__t.js
/usr/share/doc/pocketsphinx/html/structfsg__pnode__s.js
/usr/share/doc/pocketsphinx/html/structfsg__search__s.js
/usr/share/doc/pocketsphinx/html/structfsg__seg__s.js
/usr/share/doc/pocketsphinx/html/structgauden__dist__t.js
/usr/share/doc/pocketsphinx/html/structgauden__t.js
/usr/share/doc/pocketsphinx/html/structhmm__context__s.js
/usr/share/doc/pocketsphinx/html/structhmm__s.js
/usr/share/doc/pocketsphinx/html/structlast__ltrans__t.js
/usr/share/doc/pocketsphinx/html/structlastphn__cand__s.js
/usr/share/doc/pocketsphinx/html/structlatlink__list__s.js
/usr/share/doc/pocketsphinx/html/structmdef__entry__s.js
/usr/share/doc/pocketsphinx/html/structmdef__t.js
/usr/share/doc/pocketsphinx/html/structms__mgau__model__t.js
/usr/share/doc/pocketsphinx/html/structngram__search__s.js
/usr/share/doc/pocketsphinx/html/structngram__search__stats__s.js
/usr/share/doc/pocketsphinx/html/structph__lc__s.js
/usr/share/doc/pocketsphinx/html/structph__rc__s.js
/usr/share/doc/pocketsphinx/html/structphone__loop__renorm__s.js
/usr/share/doc/pocketsphinx/html/structphone__loop__s.js
/usr/share/doc/pocketsphinx/html/structphone__loop__search__s.js
/usr/share/doc/pocketsphinx/html/structphone__t.js
/usr/share/doc/pocketsphinx/html/structps__alignment__entry__s.js
/usr/share/doc/pocketsphinx/html/structps__alignment__iter__s.js
/usr/share/doc/pocketsphinx/html/structps__alignment__s.js
/usr/share/doc/pocketsphinx/html/structps__alignment__vector__s.js
/usr/share/doc/pocketsphinx/html/structps__astar__s.js
/usr/share/doc/pocketsphinx/html/structps__decoder__s.js
/usr/share/doc/pocketsphinx/html/structps__latlink__s.js
/usr/share/doc/pocketsphinx/html/structps__latnode__s.js
/usr/share/doc/pocketsphinx/html/structps__latpath__s.js
/usr/share/doc/pocketsphinx/html/structps__lattice__s.js
/usr/share/doc/pocketsphinx/html/structps__mgau__s.js
/usr/share/doc/pocketsphinx/html/structps__mgaufuncs__s.js
/usr/share/doc/pocketsphinx/html/structps__mllr__s.js
/usr/share/doc/pocketsphinx/html/structps__search__s.js
/usr/share/doc/pocketsphinx/html/structps__searchfuncs__s.js
/usr/share/doc/pocketsphinx/html/structps__seg__s.js
/usr/share/doc/pocketsphinx/html/structps__segfuncs__s.js
/usr/share/doc/pocketsphinx/html/structptm__fast__eval__s.js
/usr/share/doc/pocketsphinx/html/structptm__mgau__s.js
/usr/share/doc/pocketsphinx/html/structptm__topn__s.js
/usr/share/doc/pocketsphinx/html/structroot__chan__s.js
/usr/share/doc/pocketsphinx/html/structs2__semi__mgau__s.js
/usr/share/doc/pocketsphinx/html/structsenone__t.js
/usr/share/doc/pocketsphinx/html/structstate__align__search__s.js
/usr/share/doc/pocketsphinx/html/structtmat__t.js
/usr/share/doc/pocketsphinx/html/structvqFeature__s.js
/usr/share/doc/pocketsphinx/html/structxwdssid__t.js
/usr/share/doc/pocketsphinx/html/functions_dup.js
/usr/share/doc/pocketsphinx/html/functions_vars.js
/usr/share/doc/pocketsphinx/html/files.js
/usr/share/doc/pocketsphinx/html/dir_d44c64559bbebec7f509842c48db8b23.js
/usr/share/doc/pocketsphinx/html/fsg__set_8h.js
/usr/share/doc/pocketsphinx/html/pocketsphinx_8h.js
/usr/share/doc/pocketsphinx/html/ps__lattice_8h.js
/usr/share/doc/pocketsphinx/html/ps__mllr_8h.js
/usr/share/doc/pocketsphinx/html/dir_68267d1309a1af8e8297ef4c3efbcdba.js
/usr/share/doc/pocketsphinx/html/dir_8d034a1e03e98d9b7ac467250bbebdea.js
/usr/share/doc/pocketsphinx/html/acmod_8c.js
/usr/share/doc/pocketsphinx/html/acmod_8h.js
/usr/share/doc/pocketsphinx/html/bin__mdef_8h.js
/usr/share/doc/pocketsphinx/html/dict_8h.js
/usr/share/doc/pocketsphinx/html/dict2pid_8c.js
/usr/share/doc/pocketsphinx/html/dict2pid_8h.js
/usr/share/doc/pocketsphinx/html/fsg__lextree_8c.js
/usr/share/doc/pocketsphinx/html/hmm_8h.js
/usr/share/doc/pocketsphinx/html/mdef_8h.js
/usr/share/doc/pocketsphinx/html/ms__gauden_8h.js
/usr/share/doc/pocketsphinx/html/ms__mgau_8h.js
/usr/share/doc/pocketsphinx/html/ms__senone_8h.js
/usr/share/doc/pocketsphinx/html/ngram__search_8c.js
/usr/share/doc/pocketsphinx/html/ngram__search_8h.js
/usr/share/doc/pocketsphinx/html/ngram__search__fwdflat_8c.js
/usr/share/doc/pocketsphinx/html/ngram__search__fwdflat_8h.js
/usr/share/doc/pocketsphinx/html/ngram__search__fwdtree_8c.js
/usr/share/doc/pocketsphinx/html/ngram__search__fwdtree_8h.js
/usr/share/doc/pocketsphinx/html/phone__loop__search_8h.js
/usr/share/doc/pocketsphinx/html/pocketsphinx__internal_8h.js
/usr/share/doc/pocketsphinx/html/ps__alignment_8c.js
/usr/share/doc/pocketsphinx/html/ps__alignment_8h.js
/usr/share/doc/pocketsphinx/html/ps__lattice_8c.js
/usr/share/doc/pocketsphinx/html/ps__lattice__internal_8h.js
/usr/share/doc/pocketsphinx/html/ps__mllr_8c.js
/usr/share/doc/pocketsphinx/html/ptm__mgau_8h.js
/usr/share/doc/pocketsphinx/html/s3types_8h.js
/usr/share/doc/pocketsphinx/html/state__align__search_8c.js
/usr/share/doc/pocketsphinx/html/state__align__search_8h.js
/usr/share/doc/pocketsphinx/html/tied__mgau__common_8h.js
/usr/share/doc/pocketsphinx/html/tmat_8h.js
/usr/share/doc/pocketsphinx/html/globals_dup.js
/usr/share/doc/pocketsphinx/html/globals_func.js
/usr/share/doc/pocketsphinx/html/navtreeindex0.js
/usr/share/doc/pocketsphinx/html/navtreeindex1.js
/usr/share/doc/pocketsphinx/html/navtreeindex2.js
/usr/share/doc/pocketsphinx/html/navtreeindex3.js
/usr/share/doc/pocketsphinx/html/navtreeindex4.js
/usr/share/doc/pocketsphinx/html/navtreeindex5.js
/usr/share/doc/pocketsphinx/html/navtreeindex6.js
/usr/share/doc/pocketsphinx/html/resize.js
/usr/share/doc/pocketsphinx/html/navtree.css
/usr/share/doc/pocketsphinx/copyright
/usr/share/doc/pocketsphinx/NEWS.gz
/usr/share/doc/pocketsphinx/changelog.Debian.gz
/usr/share/doc/pocketsphinx/changelog.gz
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/pocketsphinx_batch.1.gz
/usr/share/man/man1/pocketsphinx_continuous.1.gz
/usr/share/man/man1/pocketsphinx_mdef_convert.1.gz
/usr/share/doc/pocketsphinx/html/jquery.js

Do you want me to install python-pocketsphinx instead?

Somehow jasper doesn't recognise the installation - is there a hardcoded path that I need to modify?

pi@ashiya:~/jasper $ ./jasper.py --debug
*******************************************************
*             JASPER - THE TALKING COMPUTER           *
* (c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *
*******************************************************
DEBUG:client.diagnose:Checking network connection to server 'www.google.com'...
DEBUG:client.diagnose:Network connection working
DEBUG:__main__:Trying to read config file: '/home/pi/.jasper/profile.yml'
DEBUG:client.diagnose:Checking python import 'pocketsphinx'...
DEBUG:client.diagnose:Python import 'pocketsphinx' not found
ERROR:root:Error occured!
Traceback (most recent call last):
  File "./jasper.py", line 143, in <module>
    app = Jasper()
  File "./jasper.py", line 88, in __init__
    stt_engine_class = stt.get_engine_by_slug(stt_engine_slug)
  File "/home/pi/jasper/client/stt.py", line 648, in get_engine_by_slug
    "dependencies, etc.)") % slug)
ValueError: STT engine 'sphinx' is not available (due to missing dependencies, missing dependencies, etc.)

@G10DRAS
Copy link

G10DRAS commented Jan 14, 2016

Try sudo apt-get install python-pocketsphinx

@ashishbajaj99
Copy link
Author

Thanks a lot that works.... The website needs serious updates to procedures...

@ShunJianLee
Copy link

@ashishbajaj99 @G10DRAS Hello, may i know have you seen this error before?

No handlers could be found for logger "cmuclmtk"


  •         JASPER - THE TALKING COMPUTER           *
    
  • (c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *
    WARNING:root:tts_engine not specified in profile, defaulting to 'espeak-tts'
    ERROR:client.vocabcompiler:Fatal compilation Error occured, cleaning up...
    Traceback (most recent call last):
    File "/home/pi/jasper/client/vocabcompiler.py", line 163, in compile
    self._compile_vocabulary(phrases)
    File "/home/pi/jasper/client/vocabcompiler.py", line 269, in _compile_vocabulary
    vocabulary = self._compile_languagemodel(text, self.languagemodel_file)
    File "/home/pi/jasper/client/vocabcompiler.py", line 290, in _compile_languagemodel
    cmuclmtk.text2vocab(text, vocab_file)
    NameError: global name 'cmuclmtk' is not defined
    ERROR:root:Error occured!
    Traceback (most recent call last):
    File "/home/pi/jasper/jasper.py", line 143, in
    app = Jasper()
    File "/home/pi/jasper/jasper.py", line 106, in init
    stt_passive_engine_class.get_passive_instance(),
    File "/home/pi/jasper/client/stt.py", line 48, in get_passive_instance
    return cls.get_instance('keyword', phrases)
    File "/home/pi/jasper/client/stt.py", line 40, in get_instance
    vocabulary.compile(phrases)
    File "/home/pi/jasper/client/vocabcompiler.py", line 171, in compile
    raise e
    NameError: global name 'cmuclmtk' is not defined

@G10DRAS
Copy link

G10DRAS commented May 4, 2016

Did you installed CMUCLMTK ? If not then installed it.

@rkbilla
Copy link

rkbilla commented Jun 15, 2016

`mq(06:48:32)-()->/jasper/jasper.py


  •         JASPER - THE TALKING COMPUTER           *
    
  • (c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *
    ERROR:client.vocabcompiler:Fatal compilation Error occured, cleaning up...
    Traceback (most recent call last):
    File "/root/jasper/client/vocabcompiler.py", line 163, in compile
    self._compile_vocabulary(phrases)
    File "/root/jasper/client/vocabcompiler.py", line 271, in _compile_vocabulary
    self._compile_dictionary(vocabulary, self.dictionary_file)
    File "/root/jasper/client/vocabcompiler.py", line 320, in _compile_dictionary
    g2pconverter = PhonetisaurusG2P(**PhonetisaurusG2P.get_config())
    File "/root/jasper/client/g2p.py", line 90, in new
    "$PATH.")
    OSError: Can't find command 'phonetisaurus-g2p'! Please check if Phonetisaurus is installed and in your $PATH.
    ERROR:root:Error occured!
    Traceback (most recent call last):
    File "/root/jasper/jasper.py", line 143, in
    app = Jasper()
    File "/root/jasper/jasper.py", line 106, in init
    stt_passive_engine_class.get_passive_instance(),
    File "/root/jasper/client/stt.py", line 48, in get_passive_instance
    return cls.get_instance('keyword', phrases)
    File "/root/jasper/client/stt.py", line 40, in get_instance
    vocabulary.compile(phrases)
    File "/root/jasper/client/vocabcompiler.py", line 171, in compile
    raise e
    OSError: Can't find command 'phonetisaurus-g2p'! Please check if Phonetisaurus is installed and in your $PATH.
    `

Getting this error tryed all but no use plz help me out on this

@G10DRAS
Copy link

G10DRAS commented Jun 16, 2016

Check if Phonetisaurus is installed along with its dependencies, or try re-installing Phonetisaurus.

@rkbilla
Copy link

rkbilla commented Jun 16, 2016

Hi @G10DRAS wen i try to install it saying

pip install pocketsphinx
Requirement already satisfied (use --upgrade to upgrade): pocketsphinx in /usr/local/lib/python2.7/dist-packages

wen i run the jasper it saying

image

@ShunJianLee
Copy link

@ashishbajaj99 Hello bro, can you tell me how to solve the STT engine found slug issues?

@ShunJianLee
Copy link

Hello bro, can you tell me how to solve this issues? Thanks @rkbilla @G10DRAS

pi@raspberrypi:~ $ /home/pi/jasper/jasper.py

JASPER - THE TALKING COMPUTER *
(c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis * ******************************************************* WARNING:root:Network not connected. This may prevent Jasper from running properly. ERROR:root:Error occured! Traceback (most recent call last): File "/home/pi/jasper/jasper.py", line 146, in app = Jasper() File "/home/pi/jasper/jasper.py", line 91, in init stt_engine_class = stt.get_engine_by_slug(stt_engine_slug) File "/home/pi/jasper/client/stt.py", line 639, in get_engine_by_slug raise ValueError("No STT engine found for slug '%s'" % slug) ValueError: No STT engine found for slug 'pocketsphinx'

@G10DRAS
Copy link

G10DRAS commented Aug 20, 2016

You already posted here
#557

@h3
Copy link

h3 commented Mar 11, 2017

For me the binary name of mkdfa was wrong on Ubuntu xenial (mkdfa instead of mkdfa.pl).

I created a symlink to it ant it started working:

$ ln -s $PWD/TRAINING/bin/julius-4.1.5-linuxbin/bin/mkdfa.pl /usr/bin/mkdfa.pl

@yuva2229
Copy link

yuva2229 commented Sep 1, 2017

Iam just a beginner at this i have installed every required software to run jasper but wen i run it this error is coming


  •         JASPER - THE TALKING COMPUTER           *
    
  • (c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *

ERROR:root:Error occured!
Traceback (most recent call last):
File "/home/pi/jasper/jasper.py", line 146, in
app = Jasper()
File "/home/pi/jasper/jasper.py", line 80, in init
self.config = yaml.safe_load(f)
File "/usr/local/lib/python2.7/dist-packages/yaml/init.py", line 93, in safe_load
return load(stream, SafeLoader)
File "/usr/local/lib/python2.7/dist-packages/yaml/init.py", line 71, in load
return loader.get_single_data()
File "/usr/local/lib/python2.7/dist-packages/yaml/constructor.py", line 37, in get_single_data
node = self.get_single_node()
File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
File "/usr/local/lib/python2.7/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/local/lib/python2.7/dist-packages/yaml/parser.py", line 428, in parse_block_mapping_key
if self.check_token(KeyToken):
File "/usr/local/lib/python2.7/dist-packages/yaml/scanner.py", line 115, in check_token
while self.need_more_tokens():
File "/usr/local/lib/python2.7/dist-packages/yaml/scanner.py", line 149, in need_more_tokens
self.stale_possible_simple_keys()
File "/usr/local/lib/python2.7/dist-packages/yaml/scanner.py", line 289, in stale_possible_simple_keys
"could not found expected ':'", self.get_mark())
ScannerError: while scanning a simple key
in "/home/pi/.jasper/profile.yml", line 7, column 1
could not found expected ':'
in "/home/pi/.jasper/profile.yml", line 8, column 1
please help me out i dono wat it is!

@G10DRAS
Copy link

G10DRAS commented Sep 1, 2017

If you read log carefully it will you all.

ScannerError: while scanning a simple key
in "/home/pi/.jasper/profile.yml", line 7, column 1
could not found expected ':'
in "/home/pi/.jasper/profile.yml", line 8, column 1

@kshatriypiyush
Copy link

it would be great if you can suggest any solution for this prob.


  •         JASPER - THE TALKING COMPUTER           *
    
  • (c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *

ERROR:root:Error occured!
Traceback (most recent call last):
File "/home/pi/jasper/jasper.py", line 146, in
app = Jasper()
File "/home/pi/jasper/jasper.py", line 109, in init
stt_passive_engine_class.get_passive_instance(),
File "/home/pi/jasper/client/stt.py", line 48, in get_passive_instance
return cls.get_instance('keyword', phrases)
File "/home/pi/jasper/client/stt.py", line 34, in get_instance
config = cls.get_config()
File "/home/pi/jasper/client/stt.py", line 143, in get_config
config['hmm_dir'] = profile['pocketsphinx']['hmm_dir']
TypeError: 'NoneType' object has no attribute 'getitem'

@G10DRAS
Copy link

G10DRAS commented Mar 9, 2019

Check the formatting in config file.

@ghost
Copy link

ghost commented Mar 29, 2019

After all installation error with following message:
Any solution for this?


  •         JASPER - THE TALKING COMPUTER           *
    
  • (c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *

WARNING:root:tts_engine not specified in profile, defaulting to 'espeak-tts'
ERROR:root:Error occured!
Traceback (most recent call last):
File "/home/pi/jasper/jasper.py", line 146, in
app = Jasper()
File "/home/pi/jasper/jasper.py", line 108, in init
self.mic = Mic(tts_engine_class.get_instance(),
File "/home/pi/jasper/client/tts.py", line 57, in get_instance
config = cls.get_config()
File "/home/pi/jasper/client/tts.py", line 158, in get_config
if 'voice' in profile['espeak-tts']:
TypeError: argument of type 'NoneType' is not iterable

@G10DRAS
Copy link

G10DRAS commented Mar 29, 2019

did you install espeak ?

@ghost
Copy link

ghost commented Mar 29, 2019

Yes, I already install espeak and try it individually with command espeak "hello" and its work perfectly good.
Any other suggestions please!

@G10DRAS
Copy link

G10DRAS commented Mar 29, 2019

Then check your config file formatting.

@G10DRAS
Copy link

G10DRAS commented Mar 29, 2019

too basic question !!

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

7 participants