Installation problem with mycroft-precise. FileNotFoundError: '.venv/bin/precise-engine'


#1

After following the install guide of https://github.com/MycroftAI/mycroft-precise on a ubuntu virtual machine. i copied the sample python program into /mycroft-precise/runner/sample.py
When i run the sample program i get the following output:

user@user-VirtualBox:~/Desktop/project/mycroft-precise$ source .venv/bin/activate
(.venv) user@user-VirtualBox:~/Desktop/project/mycroft-precise/runner$ python3 sample.py 
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib setup.c:547:(add_elem) Cannot obtain info for CTL elem (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory
ALSA lib setup.c:547:(add_elem) Cannot obtain info for CTL elem (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory
ALSA lib setup.c:547:(add_elem) Cannot obtain info for CTL elem (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Traceback (most recent call last):
  File "sample.py", line 8, in <module>
    runner.start()
  File "/home/user/Desktop/project/mycroft-precise/runner/precise_runner/runner.py", line 159, in start
    self.engine.start()
  File "/home/user/Desktop/project/mycroft-precise/runner/precise_runner/runner.py", line 53, in start
    self.proc = Popen(self.exe_args, stdin=PIPE, stdout=PIPE)
  File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '.venv/bin/precise-engine': '.venv/bin/precise-engine'

I am not sure what i should do to make mycroft-precise work.
The file .venv/bin/precise-engine exists and is executable. If i move sample.py to some other place it can’t find precise_runner.


#2

Did you run the setup script after cloning the repo?


#3

i did run the setup script.


#4

i reinstalled mycroft from source, it seems to work now.