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

having issues in compiling jasper.py #85

Open
ezargar opened this issue Nov 15, 2017 · 3 comments
Open

having issues in compiling jasper.py #85

ezargar opened this issue Nov 15, 2017 · 3 comments

Comments

@ezargar
Copy link

ezargar commented Nov 15, 2017

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


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

ERROR:client.g2p:Command 'phonetisaurus-g2p --model=/home/pi/phonetisaurus/g014b2b.fst --input=/tmp/tmpKHonAt.g2p --words --isfile' return with exit status -11
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 271, in _compile_vocabulary
self._compile_dictionary(vocabulary, self.dictionary_file)
File "/home/pi/jasper/client/vocabcompiler.py", line 321, in _compile_dictionary
phonemes = g2pconverter.translate(words)
File "/home/pi/jasper/client/g2p.py", line 130, in translate
output = self._translate_words(words)
File "/home/pi/jasper/client/g2p.py", line 119, in _translate_words
nbest=self.nbest)
File "/home/pi/jasper/client/g2p.py", line 56, in execute
raise OSError("Command execution failed")
OSError: Command execution failed
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 40, in get_instance
vocabulary.compile(phrases)
File "/home/pi/jasper/client/vocabcompiler.py", line 171, in compile
raise e
OSError: Command execution failed

@zoecarver
Copy link

zoecarver commented Feb 19, 2018

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
Copy link

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
Copy link
Author

ezargar commented Feb 23, 2018

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

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