jasperproject / jasperproject.github.io

Web site for general information and documentation
409 stars 189 forks source link

having issues in compiling jasper.py #85

Open ezargar opened 6 years ago

ezargar commented 6 years ago

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


zoecarver commented 6 years ago

Same here - I would love to find a fix.

Edit

After looking into it more, it seems like phonetisaurus-g2p is a completely empty file. I think this would be the problem. @shbhrsaha friendly ping - any ideas about why this is happening?

More info

Error:

*******************************************************
*             JASPER - THE TALKING COMPUTER           *
* (c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *
*******************************************************
ERROR:client.g2p:Error occured while executing command 'phonetisaurus-g2p --model=/Users/<name>/phonetisaurus/g014b2b.fst --input=/var/folders/bk/kzb30zh56l94zmhml4ck70qr0000gn/T/tmp6tP5xf.g2p --words --isfile'
Traceback (most recent call last):
  File "/Users/<name>/jasper/client/g2p.py", line 40, in execute
    stderr=subprocess.PIPE)
  File "/usr/local/Cellar/python/2.7.14_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 390, in __init__
    errread, errwrite)
  File "/usr/local/Cellar/python/2.7.14_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1025, in _execute_child
    raise child_exception
OSError: [Errno 8] Exec format error
ERROR:client.vocabcompiler:Fatal compilation Error occured, cleaning up...
Traceback (most recent call last):
  File "/Users/<name>/jasper/client/vocabcompiler.py", line 163, in compile
    self._compile_vocabulary(phrases)
  File "/Users/<name>/jasper/client/vocabcompiler.py", line 271, in _compile_vocabulary
    self._compile_dictionary(vocabulary, self.dictionary_file)
  File "/Users/<name>/jasper/client/vocabcompiler.py", line 321, in _compile_dictionary
    phonemes = g2pconverter.translate(words)
  File "/Users/<name>/jasper/client/g2p.py", line 130, in translate
    output = self._translate_words(words)
  File "/Users/<name>/jasper/client/g2p.py", line 119, in _translate_words
    nbest=self.nbest)
  File "/Users/<name>/jasper/client/g2p.py", line 40, in execute
    stderr=subprocess.PIPE)
  File "/usr/local/Cellar/python/2.7.14_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 390, in __init__
    errread, errwrite)
  File "/usr/local/Cellar/python/2.7.14_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1025, in _execute_child
    raise child_exception
OSError: [Errno 8] Exec format error
ERROR:root:Error occured!
Traceback (most recent call last):
  File "jasper.py", line 146, in <module>
    app = Jasper()
  File "jasper.py", line 109, in __init__
    stt_passive_engine_class.get_passive_instance(),
  File "/Users/<name>/jasper/client/stt.py", line 48, in get_passive_instance
    return cls.get_instance('keyword', phrases)
  File "/Users/<name>/jasper/client/stt.py", line 40, in get_instance
    vocabulary.compile(phrases)
  File "/Users/<name>/jasper/client/vocabcompiler.py", line 171, in compile
    raise e
OSError: [Errno 8] Exec format error

System info:

OS: MacOS v10.12.6 Python: v2.7.14

Modifications

instead of running make I ran make -stdlib=libstdc++ in is2013-conversion/phonetisaurus/src to include the proper libraries.

zoecarver commented 6 years ago

After testing it a little more, I was able to get phonetisaurus installed and "working" (sort-of) by using this repository. Unfortunately it did not understand me at all so I switched to witai which has been working pretty well.

ezargar commented 6 years ago

thank you but i installed google engine...i'm pretty good with it