Unable to install hotword plugin #95

Closed
opened 2022-07-05 01:38:49 +02:00 by blacklight · 0 comments
Owner

Created by: ABS96

On Raspberry Pi 4, running Raspbian, executing this command yields the following errors:

pip install "platypush[hotword]"

(...)
Building wheels for collected packages: snowboy
  Building wheel for snowboy (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-17kf940d/snowboy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-17kf940d/snowboy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-iauiu_28
       cwd: /tmp/pip-install-17kf940d/snowboy/
  Complete output (14 lines):
  running bdist_wheel
  running build
  Compiling snowboy...
  make: python-config: Command not found
  make: python-config: Command not found
  g++ -I../../ -O3 -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++0x  -shared snowboy-detect-swig.o \
  ../..//lib/rpi/libsnowboy-detect.a  -lm -ldl -lf77blas -lcblas -llapack_atlas -latlas -o _snowboydetect.so
  snowboy-detect-swig.o: file not recognized: file format not recognized
  collect2: error: ld returned 1 exit status
  make: *** [Makefile:65: _snowboydetect.so] Error 1
  creating build
  creating build/lib
  creating build/lib/snowboy
  error: can't copy 'swig/Python/_snowboydetect.so': doesn't exist or not a regular file
  ----------------------------------------
  ERROR: Failed building wheel for snowboy
  Running setup.py clean for snowboy
Failed to build snowboy
Installing collected packages: snowboy
    Running setup.py install for snowboy ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-17kf940d/snowboy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-17kf940d/snowboy/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-qytnzlce/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/pi/.local/include/python3.7m/snowboy
         cwd: /tmp/pip-install-17kf940d/snowboy/
    Complete output (14 lines):
    running install
    running build
    Compiling snowboy...
    make: python-config: Command not found
    make: python-config: Command not found
    g++ -I../../ -O3 -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++0x  -shared snowboy-detect-swig.o \
    ../..//lib/rpi/libsnowboy-detect.a  -lm -ldl -lf77blas -lcblas -llapack_atlas -latlas -o _snowboydetect.so
    snowboy-detect-swig.o: file not recognized: file format not recognized
    collect2: error: ld returned 1 exit status
    make: *** [Makefile:65: _snowboydetect.so] Error 1
    creating build
    creating build/lib
    creating build/lib/snowboy
    error: can't copy 'swig/Python/_snowboydetect.so': doesn't exist or not a regular file
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-17kf940d/snowboy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-17kf940d/snowboy/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-qytnzlce/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/pi/.local/include/python3.7m/snowboy Check the logs for full command output.

As I understand, snowboy has to be built manually for my system. I have managed to do that in a separate directory, but it cannot interact with Platypush from there.
Can I somehow alter the install process for the plugin so that it will succeed at building snowboy?

*Created by: ABS96* On Raspberry Pi 4, running Raspbian, executing this command yields the following errors: `pip install "platypush[hotword]"` ``` (...) Building wheels for collected packages: snowboy Building wheel for snowboy (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-17kf940d/snowboy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-17kf940d/snowboy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-iauiu_28 cwd: /tmp/pip-install-17kf940d/snowboy/ Complete output (14 lines): running bdist_wheel running build Compiling snowboy... make: python-config: Command not found make: python-config: Command not found g++ -I../../ -O3 -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++0x -shared snowboy-detect-swig.o \ ../..//lib/rpi/libsnowboy-detect.a -lm -ldl -lf77blas -lcblas -llapack_atlas -latlas -o _snowboydetect.so snowboy-detect-swig.o: file not recognized: file format not recognized collect2: error: ld returned 1 exit status make: *** [Makefile:65: _snowboydetect.so] Error 1 creating build creating build/lib creating build/lib/snowboy error: can't copy 'swig/Python/_snowboydetect.so': doesn't exist or not a regular file ---------------------------------------- ERROR: Failed building wheel for snowboy Running setup.py clean for snowboy Failed to build snowboy Installing collected packages: snowboy Running setup.py install for snowboy ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-17kf940d/snowboy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-17kf940d/snowboy/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-qytnzlce/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/pi/.local/include/python3.7m/snowboy cwd: /tmp/pip-install-17kf940d/snowboy/ Complete output (14 lines): running install running build Compiling snowboy... make: python-config: Command not found make: python-config: Command not found g++ -I../../ -O3 -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++0x -shared snowboy-detect-swig.o \ ../..//lib/rpi/libsnowboy-detect.a -lm -ldl -lf77blas -lcblas -llapack_atlas -latlas -o _snowboydetect.so snowboy-detect-swig.o: file not recognized: file format not recognized collect2: error: ld returned 1 exit status make: *** [Makefile:65: _snowboydetect.so] Error 1 creating build creating build/lib creating build/lib/snowboy error: can't copy 'swig/Python/_snowboydetect.so': doesn't exist or not a regular file ---------------------------------------- ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-17kf940d/snowboy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-17kf940d/snowboy/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-qytnzlce/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/pi/.local/include/python3.7m/snowboy Check the logs for full command output. ``` As I understand, snowboy has to be built manually for my system. I have managed to do that in a separate directory, but it cannot interact with Platypush from there. Can I somehow alter the install process for the plugin so that it will succeed at building snowboy?
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: platypush/platypush#95
No description provided.