gras64 / bluetooth-audio-skill

Connect mycroft with bluetooth speaker or other devices
Apache License 2.0
3 stars 0 forks source link

Installing skill with mycroft-msm failed #1

Open thejacer opened 3 years ago

thejacer commented 3 years ago

I didn't know the command to install by voice and didn't see it in the marketplace so I tried with mycroft-msm. This is the result:

PipRequirementsException:
Pip returned code 1:
Collecting pybluez2
  Using cached pybluez2-0.41.tar.gz (108 kB)
Building wheels for collected packages: pybluez2
  Building wheel for pybluez2 (setup.py): started
  Building wheel for pybluez2 (setup.py): finished with status 'error'
  Running setup.py clean for pybluez2
Failed to build pybluez2
Installing collected packages: pybluez2
    Running setup.py install for pybluez2: started
    Running setup.py install for pybluez2: finished with status 'error'

  ERROR: Command errored out with exit status 1:
   command: /home/pi/mycroft-core/.venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-541dwmq8/pybluez2_50434b9279bd4d38a875abc1e4c954e5/setup.py'"'"'; __file__='"'"'/tmp/pip-install-541dwmq8/py$
       cwd: /tmp/pip-install-541dwmq8/pybluez2_50434b9279bd4d38a875abc1e4c954e5/
  Complete output (36 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-armv7l-3.7
  creating build/lib.linux-armv7l-3.7/bluetooth
  copying bluetooth/device.py -> build/lib.linux-armv7l-3.7/bluetooth
  copying bluetooth/docstrings.py -> build/lib.linux-armv7l-3.7/bluetooth
  copying bluetooth/btcommon.py -> build/lib.linux-armv7l-3.7/bluetooth
  copying bluetooth/widcomm.py -> build/lib.linux-armv7l-3.7/bluetooth
  copying bluetooth/msbt.py -> build/lib.linux-armv7l-3.7/bluetooth
  copying bluetooth/bluez.py -> build/lib.linux-armv7l-3.7/bluetooth
  copying bluetooth/__init__.py -> build/lib.linux-armv7l-3.7/bluetooth
  /home/pi/mycroft-core/.venv/lib/python3.7/site-packages/setuptools/lib2to3_ex.py:41: SetuptoolsDeprecationWarning: 2to3 support is deprecated. If the project still requires Python 2 support, please migrate to a single-codebase solutio$
    SetuptoolsDeprecationWarning)
  Fixing build/lib.linux-armv7l-3.7/bluetooth/device.py build/lib.linux-armv7l-3.7/bluetooth/docstrings.py build/lib.linux-armv7l-3.7/bluetooth/btcommon.py build/lib.linux-armv7l-3.7/bluetooth/widcomm.py build/lib.linux-armv7l-3.7/bluet$
  Skipping optional fixer: buffer
  Skipping optional fixer: idioms
  Skipping optional fixer: set_literal
  Skipping optional fixer: ws_comma
  Fixing build/lib.linux-armv7l-3.7/bluetooth/device.py build/lib.linux-armv7l-3.7/bluetooth/docstrings.py build/lib.linux-armv7l-3.7/bluetooth/btcommon.py build/lib.linux-armv7l-3.7/bluetooth/widcomm.py build/lib.linux-armv7l-3.7/bluet$
  Skipping optional fixer: buffer
  Skipping optional fixer: idioms
  Skipping optional fixer: set_literal
  Skipping optional fixer: ws_comma
  running build_ext
  building 'bluetooth._bluetooth' extension
  creating build/temp.linux-armv7l-3.7
  creating build/temp.linux-armv7l-3.7/bluez
  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 -I/home/pi/mycroft-core/.venv/include -I/usr/include/python3.7m -c bluez$
  In file included from bluez/btmodule.c:20:
  bluez/btmodule.h:5:10: fatal error: bluetooth/bluetooth.h: No such file or directory
   #include <bluetooth/bluetooth.h>
            ^~~~~~~~~~~~~~~~~~~~~~~
  compilation terminated.
  error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for pybluez2
    ERROR: Command errored out with exit status 1:
     command: /home/pi/mycroft-core/.venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-541dwmq8/pybluez2_50434b9279bd4d38a875abc1e4c954e5/setup.py'"'"'; __file__='"'"'/tmp/pip-install-541dwmq8/$
         cwd: /tmp/pip-install-541dwmq8/pybluez2_50434b9279bd4d38a875abc1e4c954e5/
 Complete output (36 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-armv7l-3.7
    creating build/lib.linux-armv7l-3.7/bluetooth
    copying bluetooth/device.py -> build/lib.linux-armv7l-3.7/bluetooth
    copying bluetooth/docstrings.py -> build/lib.linux-armv7l-3.7/bluetooth
    copying bluetooth/btcommon.py -> build/lib.linux-armv7l-3.7/bluetooth
    copying bluetooth/widcomm.py -> build/lib.linux-armv7l-3.7/bluetooth
    copying bluetooth/msbt.py -> build/lib.linux-armv7l-3.7/bluetooth
    copying bluetooth/bluez.py -> build/lib.linux-armv7l-3.7/bluetooth
    copying bluetooth/__init__.py -> build/lib.linux-armv7l-3.7/bluetooth
    /home/pi/mycroft-core/.venv/lib/python3.7/site-packages/setuptools/lib2to3_ex.py:41: SetuptoolsDeprecationWarning: 2to3 support is deprecated. If the project still requires Python 2 support, please migrate to a single-codebase solut$
      SetuptoolsDeprecationWarning)
    Fixing build/lib.linux-armv7l-3.7/bluetooth/device.py build/lib.linux-armv7l-3.7/bluetooth/docstrings.py build/lib.linux-armv7l-3.7/bluetooth/btcommon.py build/lib.linux-armv7l-3.7/bluetooth/widcomm.py build/lib.linux-armv7l-3.7/blu$
    Skipping optional fixer: buffer
    Skipping optional fixer: idioms
    Skipping optional fixer: set_literal
    Skipping optional fixer: ws_comma
    Fixing build/lib.linux-armv7l-3.7/bluetooth/device.py build/lib.linux-armv7l-3.7/bluetooth/docstrings.py build/lib.linux-armv7l-3.7/bluetooth/btcommon.py build/lib.linux-armv7l-3.7/bluetooth/widcomm.py build/lib.linux-armv7l-3.7/blu$
    Skipping optional fixer: buffer
    Skipping optional fixer: idioms
    Skipping optional fixer: set_literal
    Skipping optional fixer: ws_comma
    running build_ext
    building 'bluetooth._bluetooth' extension
creating build/temp.linux-armv7l-3.7
    creating build/temp.linux-armv7l-3.7/bluez
    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 -I/home/pi/mycroft-core/.venv/include -I/usr/include/python3.7m -c blu$
    In file included from bluez/btmodule.c:20:
    bluez/btmodule.h:5:10: fatal error: bluetooth/bluetooth.h: No such file or directory
     #include <bluetooth/bluetooth.h>
              ^~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/pi/mycroft-core/.venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-541dwmq8/pybluez2_50434b9279bd4d38a875abc1e4c954e5/setup.py'"'"'; __file_$
mawoka-myblock commented 3 years ago

Are you sure that the Bluetooth package for the Linux is installed? Maybe it is blueman, bluez or so, I don't know

kefor commented 3 years ago

sudo apt-get install libbluetooth-dev gives the solution for the Error bluez/btmodule.h:5:10: fatal error: bluetooth/bluetooth.h: No such file or directory for me.