Make venv of rasspy-voltron failed

I’ve tryed to install the rhasspy-voltron venv on a pi 3b+ but got after a lot of error messages the final output ‘make: *** [Makefile:52: venv] Error 1’. Unfortunately an upload of the log is not possible so I will place here a part of the errors:

arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DSPHINXBASE_EXPORTS -DPOCKETSPHINX_EXPORTS -DSPHINX_DLL -DHAVE_CONFIG_H -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -Ideps/pocketsphinx/include -I/home/pi/rhasspy-voltron/.venv/include -I/usr/include/python3.7m -c deps/pocketsphinx/src/libpocketsphinx/fsg_search.c -o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/fsg_search.o -Wno-unused-label -Wno-strict-prototypes -Wno-parentheses -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-result -Wno-sign-compare -Wno-misleading-indentation
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DSPHINXBASE_EXPORTS -DPOCKETSPHINX_EXPORTS -DSPHINX_DLL -DHAVE_CONFIG_H -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -Ideps/pocketsphinx/include -I/home/pi/rhasspy-voltron/.venv/include -I/usr/include/python3.7m -c deps/pocketsphinx/swig/pocketsphinx_wrap.c -o build/temp.linux-armv7l-3.7/deps/pocketsphinx/swig/pocketsphinx_wrap.o -Wno-unused-label -Wno-strict-prototypes -Wno-parentheses -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-result -Wno-sign-compare -Wno-misleading-indentation
In file included from deps/sphinxbase/include/sphinxbase/prim_type.h:88,
                 from deps/sphinxbase/include/sphinxbase/cmd_ln.h:66,
                 from deps/pocketsphinx/include/pocketsphinx.h:46,
                 from deps/pocketsphinx/swig/pocketsphinx_wrap.c:21:
deps/sphinxbase/include/android/sphinx_config.h:11: warning: "SIZEOF_LONG" redefined
 #define SIZEOF_LONG 8

In file included from /usr/include/python3.7m/pyconfig.h:13,
                 from /usr/include/python3.7m/Python.h:8,
                 from deps/pocketsphinx/swig/pocketsphinx_wrap.c:11:
/usr/include/arm-linux-gnueabihf/python3.7m/pyconfig.h:1363: note: this is the location of the previous definition
 #define SIZEOF_LONG 4

deps/pocketsphinx/swig/pocketsphinx_wrap.c: In function ‘_wrap_Decoder_process_raw’:
deps/pocketsphinx/swig/pocketsphinx_wrap.c:5715:5: warning: ‘PyObject_AsReadBuffer’ is deprecated [-Wdeprecated-declarations]
     res2 = PyObject_AsReadBuffer(obj1, &buf2, &size2);
     ^~~~
In file included from /usr/include/python3.7m/Python.h:147,
                 from deps/pocketsphinx/swig/pocketsphinx_wrap.c:11:
/usr/include/python3.7m/abstract.h:489:17: note: declared here
 PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
                 ^~~~~~~~~~~~~~~~~~~~~
deps/pocketsphinx/swig/pocketsphinx_wrap.c: In function ‘_wrap_Decoder_process_cep’:
deps/pocketsphinx/swig/pocketsphinx_wrap.c:5784:5: warning: ‘PyObject_AsReadBuffer’ is deprecated [-Wdeprecated-declarations]
     res2 = PyObject_AsReadBuffer(obj1, &buf2, &size2);
     ^~~~
In file included from /usr/include/python3.7m/Python.h:147,
                 from deps/pocketsphinx/swig/pocketsphinx_wrap.c:11:
/usr/include/python3.7m/abstract.h:489:17: note: declared here
 PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
                 ^~~~~~~~~~~~~~~~~~~~~
creating build/lib.linux-armv7l-3.7/pocketsphinx
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/lm/lm_trie.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/lm/fsg_model.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/lm/lm_trie_quant.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/lm/ngram_model.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/lm/jsgf.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/lm/ngram_model_set.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/lm/ngrams_raw.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/lm/jsgf_scanner.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/lm/ngram_model_trie.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/lm/jsgf_parser.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/feat/lda.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/feat/cmn.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/feat/agc.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/feat/cmn_live.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/feat/feat.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/ckd_alloc.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/listelem_alloc.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/strfuncs.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/filename.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/blas_lite.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/slamch.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/matrix.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/dtoa.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/bitarr.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/mmio.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/err.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/logmath.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/genrand.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/slapack_lite.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/f2c_lite.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/hash_table.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/bio.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/profile.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/bitvec.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/sbthread.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/case.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/pio.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/cmd_ln.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/heap.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/errno.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/glist.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/util/priority_queue.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/fe/fe_prespch_buf.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/fe/fe_warp_inverse_linear.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/fe/fe_warp_piecewise_linear.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/fe/fe_interface.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/fe/yin.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/fe/fe_noise.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/fe/fe_warp.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/fe/fixlog.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/fe/fe_sigproc.o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxbase/fe/fe_warp_affine.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/mdef.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/ms_gauden.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/pocketsphinx.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/state_align_search.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/s2_semi_mgau.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/ps_alignment.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/ngram_search_fwdtree.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/ps_mllr.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/ptm_mgau.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/ps_lattice.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/bin_mdef.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/acmod.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/ngram_search.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/phone_loop_search.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/blkarray_list.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/fsg_history.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/kws_search.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/vector.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/allphone_search.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/ms_senone.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/fsg_lextree.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/ngram_search_fwdflat.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/dict.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/tmat.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/ms_mgau.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/kws_detections.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/hmm.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/dict2pid.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/src/libpocketsphinx/fsg_search.o build/temp.linux-armv7l-3.7/deps/pocketsphinx/swig/pocketsphinx_wrap.o -o build/lib.linux-armv7l-3.7/pocketsphinx/_pocketsphinx.cpython-37m-arm-linux-gnueabihf.so
building 'sphinxbase._ad_pulse' extension
swigging swig/sphinxbase/ad_pulse.i to swig/sphinxbase/ad_pulse_wrap.c
swig -python -modern -threads -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -Ideps/sphinxbase/swig -outdir sphinxbase -o swig/sphinxbase/ad_pulse_wrap.c swig/sphinxbase/ad_pulse.i
creating build/temp.linux-armv7l-3.7/swig
creating build/temp.linux-armv7l-3.7/swig/sphinxbase
creating build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxad
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DSPHINXBASE_EXPORTS -DPOCKETSPHINX_EXPORTS -DSPHINX_DLL -DHAVE_CONFIG_H -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -I/home/pi/rhasspy-voltron/.venv/include -I/usr/include/python3.7m -c swig/sphinxbase/ad_pulse_wrap.c -o build/temp.linux-armv7l-3.7/swig/sphinxbase/ad_pulse_wrap.o -Wno-unused-label -Wno-strict-prototypes -Wno-parentheses -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-result -Wno-sign-compare -Wno-misleading-indentation
In file included from deps/sphinxbase/include/sphinxbase/ad.h:44,
                 from swig/sphinxbase/ad_pulse_wrap.c:3046:
deps/sphinxbase/include/android/sphinx_config.h:11: warning: "SIZEOF_LONG" redefined
 #define SIZEOF_LONG 8

In file included from /usr/include/python3.7m/pyconfig.h:13,
                 from /usr/include/python3.7m/Python.h:8,
                 from swig/sphinxbase/ad_pulse_wrap.c:150:
/usr/include/arm-linux-gnueabihf/python3.7m/pyconfig.h:1363: note: this is the location of the previous definition
 #define SIZEOF_LONG 4

swig/sphinxbase/ad_pulse_wrap.c: In function ‘_wrap_Ad_readinto’:
swig/sphinxbase/ad_pulse_wrap.c:3735:5: warning: ‘PyObject_AsWriteBuffer’ is deprecated [-Wdeprecated-declarations]
     res2 = PyObject_AsWriteBuffer(obj1, &buf2, &size2);
     ^~~~
In file included from /usr/include/python3.7m/Python.h:147,
                 from swig/sphinxbase/ad_pulse_wrap.c:150:
/usr/include/python3.7m/abstract.h:500:17: note: declared here
 PyAPI_FUNC(int) PyObject_AsWriteBuffer(PyObject *obj,
                 ^~~~~~~~~~~~~~~~~~~~~~
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DSPHINXBASE_EXPORTS -DPOCKETSPHINX_EXPORTS -DSPHINX_DLL -DHAVE_CONFIG_H -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -I/home/pi/rhasspy-voltron/.venv/include -I/usr/include/python3.7m -c deps/sphinxbase/src/libsphinxad/ad_pulse.c -o build/temp.linux-armv7l-3.7/deps/sphinxbase/src/libsphinxad/ad_pulse.o -Wno-unused-label -Wno-strict-prototypes -Wno-parentheses -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-result -Wno-sign-compare -Wno-misleading-indentation
deps/sphinxbase/src/libsphinxad/ad_pulse.c:44:10: fatal error: pulse/pulseaudio.h: No such file or directory
 #include <pulse/pulseaudio.h>
          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------

ERROR: Command errored out with exit status 1: /home/pi/rhasspy-voltron/.venv/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-amt_unwi/pocketsphinx/setup.py’"’"’; file=’"’"’/tmp/pip-install-amt_unwi/pocketsphinx/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record /tmp/pip-record-wx3xv3eq/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/rhasspy-voltron/.venv/include/site/python3.7/pocketsphinx Check the logs for full command output.
make: *** [Makefile:52: venv] Error 1

with greetings … Martin

1 Like

Hi @Martin_Maier, thanks for trying this out. Can you pull the latest version and try again? I’m using my custom-built version of Pocketsphinx now that shouldn’t depend on PulseAudio being installed first.

Thanks!

Hi @synestesium, i’ve tried again … pocketsphinx installation was successful but another error occured …
Successfully installed pocketsphinx-0.1.15
Installing MITLM
mitlm/lib/libmitlm.so.1
mitlm/bin/estimate-ngram
/home/pi/rhasspy-voltron/scripts/install-mitlm.sh: line 14: patchelf: command not found
make: *** [Makefile:43: venv] Error 127

Hi again @synesthesiam, I did the installation of patchelf manually (sudo apt-get) and the installation of rhasspy-voltron finally worked. After setting up all the things I need a first test the next problem appears:

[ERROR:2020-03-13 08:12:30,429] rhasspyserver_hermes: on_message
Traceback (most recent call last):
File “/home/pi/rhasspy-voltron/rhasspy-server-hermes/rhasspyserver_hermes/init.py”, line 1045, in on_message
hotword_detected = HotwordDetected.from_dict(json_payload)
File “/home/pi/rhasspy-voltron/rhasspy-hermes/rhasspyhermes/base.py”, line 20, in from_dict
return cls(**message_dict)
TypeError: init() got an unexpected keyword argument ‘detectionSignalMs’

I am using a snips-satellite for the wake word detection (this pi will be used as satellite) and the published json string is

{“siteId”:“192.168.178.33”,“modelId”:“hey_snips”,“modelVersion”:“workflow-hey_snips_subww_feedback_10seeds-2018_12_04T12_13_05_evaluated_model_0002”,“modelType”:“universal”,“currentSensitivity”:0.5,“detectionSignalMs”:1584084118652,“endSignalMs”:1584084118652}

Hi @synesthesiam, at the moment I have lot of time for testing and my next try to install rhasspy-voltron venv on a Pi Zero leaded into following error:

curl -sSfL -o download/mitlm-0.4.2-armv6l.tar.gz “https://github.com/synesthesiam/docker-mitlm/releases/download/v0.4.2/mitlm-0.4.2-armv6l.tar.gz
curl: (22) The requested URL returned error: 404 Not Found
make: *** [Makefile:160: download/mitlm-0.4.2-armv6l.tar.gz] Error 22

Hi @synesthesiam, I’ve updated my docker server installation to the last 2.5.0-pre, did a fresh satellite venv installaition (without any problem) on a Pi 3 and set the Dialogue Management to Rhasspy. Now the snips-satellite wakeword detection is fine and all works very well except the hermes intent messages. For each recognized intent I receive two messages one with

"id": "06b4778e-f025-4750-a24a-c9eebb88a9e3",
"siteId": "default",
"sessionId": "",
"customData": "",
"asrTokens": ["schalte", "schreibtischlicht", "aus"],
"asrConfidence": 1.0,
"rawAsrTokens": ["schalte", "schreibtischlicht", "aus"]

and another with

"id": "",
"siteId": "192.168.178.33",
"sessionId": "192.168.178.33-default-8e563176-1117-454e-95d2-f19bdfc39c3a",
"customData": "",
"asrTokens": ["schalte", "schreibtischlicht", "aus"],
"asrConfidence": 1.0,
"wakewordId": "",
"rawAsrTokens": ["schalte", "schreibtischlicht", "aus"]

Both messages differ within the slots part from rhasspy version 2.4.19
In 2.4.19 it is

"slots": [{
        "slotName": "device",
        "confidence": 1,
        "value": {
            "kind": "device",
            "value": "schreibtischlicht"
        },
        "rawValue": "schreibtischlicht"
    }, {
        "slotName": "state",
        "confidence": 1,
        "value": {
            "kind": "state",
            "value": "aus"
        },
        "rawValue": "aus"
    }
],

and in 2.5

"slots": [{
        "entity": "device",
        "slotName": "device",
        "confidence": 1,
        "raw_value": "schreibtischlicht",
        "value": "schreibtischlicht",
        "range": {
            "start": 8,
            "end": 25,
            "raw_start": 8,
            "raw_end": 25
        }
    }, {
        "entity": "state",
        "slotName": "state",
        "confidence": 1,
        "raw_value": "aus",
        "value": "aus",
        "range": {
            "start": 26,
            "end": 29,
            "raw_start": 26,
            "raw_end": 29
        }
    }
],

Is this behavior as it should be or still a TO DO ?
By the way my Pi Zero installation still stuck as descriped above.

greetings from Martin