hansonrobotics / hrtool

Hanson Robotics Software Management Tool
4 stars 3 forks source link

error message spew: pocketsphinx #13

Closed linas closed 6 years ago

linas commented 6 years ago

After following instructions for the README, installing and starting:

hr run robot
tmux a

Terminal 0 shows a fast spew of messages. One of these is:

Traceback (most recent call last):
  File "/home/hanson/hansonrobotics/HEAD/src/audio_stream/scripts/audio_sensor.py", line 21, in <module>
    from pocketsphinx.pocketsphinx import *
ImportError: No module named pocketsphinx.pocketsphinx

So I guess that needs to be installed!? Apparently, the hrtool install stage did not install it!?

linas commented 6 years ago

Am attempting to fix this by apt-get install ros-indigo-pocketsphinx ...

linas commented 6 years ago

OK, that does not fix the problem. Attempting to fix this with apt-get install python-pocketsphinx...

linas commented 6 years ago

OK, so apt-get install python-pocketsphinx does move forward: there is now a different error:

Traceback (most recent call last):
  File "/home/hanson/hansonrobotics/HEAD/src/audio_stream/scripts/audio_sensor.$y", line 21, in <module>
    from pocketsphinx.pocketsphinx import *
  File "sphinxbase.pxd", line 150, in init pocketsphinx (pocketsphinx.c:7935)
ValueError: PyCapsule_GetPointer called with invalid PyCapsule object
linas commented 6 years ago

The hr install -f head as suggested in issue #12 makes this problem go away.