headset SVEN AP-B900MV

not work program https://github.com/TheWeirdDev/Bluetooth_Headset_Battery_Level for looking level battery headset (bluetooth)
i cant push pip install bluetooth_battery

terminal say -
Defaulting to user installation because normal site-packages is not writeable
Collecting bluetooth_battery
Using cached bluetooth_battery-1.2.0.tar.gz (3.5 kB)
Collecting PyBluez
Using cached PyBluez-0.23.tar.gz (97 kB)
Using legacy ‘setup.py install’ for bluetooth-battery, since package ‘wheel’ is not installed.
Using legacy ‘setup.py install’ for PyBluez, since package ‘wheel’ is not installed.
Installing collected packages: PyBluez, bluetooth-battery
Running setup.py install for PyBluez … error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-z2xguzru/pybluez/setup.py’"’"’; file=’"’"’/tmp/pip-install-z2xguzru/pybluez/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’
‘"’"’, ‘"’"’
‘"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record /tmp/pip-record-mil5ldl1/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/roman/.local/include/python3.6m/PyBluez
cwd: /tmp/pip-install-z2xguzru/pybluez/
Complete output (34 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/bluetooth
copying bluetooth/init.py → build/lib.linux-x86_64-3.6/bluetooth
copying bluetooth/msbt.py → build/lib.linux-x86_64-3.6/bluetooth
copying bluetooth/widcomm.py → build/lib.linux-x86_64-3.6/bluetooth
copying bluetooth/bluez.py → build/lib.linux-x86_64-3.6/bluetooth
copying bluetooth/macos.py → build/lib.linux-x86_64-3.6/bluetooth
copying bluetooth/ble.py → build/lib.linux-x86_64-3.6/bluetooth
copying bluetooth/btcommon.py → build/lib.linux-x86_64-3.6/bluetooth
Fixing build/lib.linux-x86_64-3.6/bluetooth/init.py build/lib.linux-x86_64-3.6/bluetooth/msbt.py build/lib.linux-x86_64-3.6/bluetooth/widcomm.py build/lib.linux-x86_64-3.6/bluetooth/bluez.py build/lib.linux-x86_64-3.6/bluetooth/macos.py build/lib.linux-x86_64-3.6/bluetooth/ble.py build/lib.linux-x86_64-3.6/bluetooth/btcommon.py
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
Fixing build/lib.linux-x86_64-3.6/bluetooth/init.py build/lib.linux-x86_64-3.6/bluetooth/msbt.py build/lib.linux-x86_64-3.6/bluetooth/widcomm.py build/lib.linux-x86_64-3.6/bluetooth/bluez.py build/lib.linux-x86_64-3.6/bluetooth/macos.py build/lib.linux-x86_64-3.6/bluetooth/ble.py build/lib.linux-x86_64-3.6/bluetooth/btcommon.py
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-x86_64-3.6
creating build/temp.linux-x86_64-3.6/bluez
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -DOPENSSL_LOAD_CONF -fwrapv -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -fPIC -I./port3 -I/usr/include/python3.6m -c bluez/btmodule.c -o build/temp.linux-x86_64-3.6/bluez/btmodule.o
In file included from bluez/btmodule.c:20:0:
bluez/btmodule.h:4:10: fatal error: Python.h: Нет такого файла или каталога
#include “Python.h”
^~~~~~~~~~
compilation terminated.
error: command ‘gcc’ failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-z2xguzru/pybluez/setup.py’"’"’; file=’"’"’/tmp/pip-install-z2xguzru/pybluez/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’
‘"’"’, ‘"’"’
‘"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record /tmp/pip-record-mil5ldl1/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/roman/.local/include/python3.6m/PyBluez Check the logs for full command output.

RTFM https://github.com/TheWeirdDev/Bluetooth_Headset_Battery_Level
and install needed packages:


bluez
bluez-devel 
python3-devel
python3-pybluez

This list is converted from Debian/Ubuntu requirements:


libbluetooth-dev
python3-dev
pybluez

Use “CODE” tags for output listings.

Hi

https://build.opensuse.org/package/show/home:malcolmlewis:TESTING/python-bluetooth-battery