jasperproject / jasper-client

Client code for Jasper voice computing platform
MIT License
4.53k stars 1.01k forks source link

ImportError: No module named req #699

Closed asyraafqayyum closed 6 years ago

asyraafqayyum commented 6 years ago

After entering this >> pi@raspberrypi:~ $ /home/pi/jasper/jasper.py I got this errors: Traceback (most recent call last): File "/home/pi/jasper/jasper.py", line 13, in from client import stt File "/home/pi/jasper/client/stt.py", line 16, in import diagnose File "/home/pi/jasper/client/diagnose.py", line 9, in import pip.req ImportError: No module named req

By reading solutions to similar error, i have enter this code to change the pip version: sudo python -m pip install --upgrade pip==9.0.3

Then this error come:


G10DRAS commented 6 years ago

see this error

ERROR:client.g2p:Command 'phonetisaurus-g2p --model=/home/pi/phonetisaurus/g014b2b.fst --input=/tmp/tmpakf5pP.g2p --words --isfile' return with exit status -11

did you installed phonetisaurus-g2p and /home/pi/phonetisaurus/g014b2b.fst

asyraafqayyum commented 6 years ago

Im following to install phonetisaurus : http://jasperproject.github.io/documentation/configuration/

Build Phonetisaurus:

cd is2013-conversion/phonetisaurus/src
sudo make

Move some of the compiled files:

sudo cp ~/m2m-aligner-1.2/m2m-aligner /usr/local/bin/m2m-aligner
sudo cp ~/is2013-conversion/bin/phonetisaurus-g2p /usr/local/bin/phonetisaurus-g2p

Building the Phonetisaurus FST model:

wget https://www.dropbox.com/s/kfht75czdwucni1/g014b2b.tgz
tar -xvf g014b2b.tgz

Build Phonetisaurus model:

cd g014b2b/
./compile-fst.sh
cd ..

Is the command above correct? May i ask the command to install them? Thanks a lot :D

my profile:

carrier: ''
first_name: Asyraaf
gmail_address: ''
gmail_password: ''
last_name: ''
phone_number: '123456789'
prefers_email: true
stt_engine: sphinx
pocketsphinx:
  fst_model: '/home/pi/phonetisaurus/g014b2b.fst'                             
  hmm_dir: '/usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k' 
timezone: Asia/Kuala_Lumpur
tts_engine: mary-tts
mary-tts:
  server: 'tts.mattcurry.com'
  port: '59125'
  language: 'en_US'
  voice: 'cmu-slt-hsmm'
G10DRAS commented 6 years ago

Check the path etc are correct.

asyraafqayyum commented 6 years ago

Thank you, sir.