$ sudo pip3 install pybluez
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pybluez
Using cached PyBluez-0.23.tar.gz (97 kB)
Building wheels for collected packages: pybluez
Building wheel for pybluez (setup.py) ... 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-sp5zsw6l/pybluez_39a2c4c92aad407bbba7674cb2f4adc3/setup.py'"'"'; __file__='"'"'/tmp/pip-install-sp5zsw6l/pybluez_39a2c4c92aad407bbba7674cb2f4adc3/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-elixy4eu
cwd: /tmp/pip-install-sp5zsw6l/pybluez_39a2c4c92aad407bbba7674cb2f4adc3/
Complete output (36 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.9
creating build/lib.linux-aarch64-3.9/bluetooth
copying bluetooth/msbt.py -> build/lib.linux-aarch64-3.9/bluetooth
copying bluetooth/ble.py -> build/lib.linux-aarch64-3.9/bluetooth
copying bluetooth/__init__.py -> build/lib.linux-aarch64-3.9/bluetooth
copying bluetooth/btcommon.py -> build/lib.linux-aarch64-3.9/bluetooth
copying bluetooth/bluez.py -> build/lib.linux-aarch64-3.9/bluetooth
copying bluetooth/widcomm.py -> build/lib.linux-aarch64-3.9/bluetooth
copying bluetooth/macos.py -> build/lib.linux-aarch64-3.9/bluetooth
/usr/lib/python3/dist-packages/setuptools/lib2to3_ex.py:36: SetuptoolsDeprecationWarning: 2to3 support is deprecated. If the project still requires Python 2 support, please migrate to a single-codebase solution or employ an independent conversion process.
warnings.warn(
Fixing build/lib.linux-aarch64-3.9/bluetooth/msbt.py build/lib.linux-aarch64-3.9/bluetooth/ble.py build/lib.linux-aarch64-3.9/bluetooth/__init__.py build/lib.linux-aarch64-3.9/bluetooth/btcommon.py build/lib.linux-aarch64-3.9/bluetooth/bluez.py build/lib.linux-aarch64-3.9/bluetooth/widcomm.py build/lib.linux-aarch64-3.9/bluetooth/macos.py
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
Fixing build/lib.linux-aarch64-3.9/bluetooth/msbt.py build/lib.linux-aarch64-3.9/bluetooth/ble.py build/lib.linux-aarch64-3.9/bluetooth/__init__.py build/lib.linux-aarch64-3.9/bluetooth/btcommon.py build/lib.linux-aarch64-3.9/bluetooth/bluez.py build/lib.linux-aarch64-3.9/bluetooth/widcomm.py build/lib.linux-aarch64-3.9/bluetooth/macos.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-aarch64-3.9
creating build/temp.linux-aarch64-3.9/bluez
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I./port3 -I/usr/include/python3.9 -c bluez/btmodule.c -o build/temp.linux-aarch64-3.9/bluez/btmodule.o
In file included from bluez/btmodule.c:20:
bluez/btmodule.h:5:10: fatal error: bluetooth/bluetooth.h: 没有那个文件或目录
5 | #include <bluetooth/bluetooth.h>
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
----------------------------------------
ERROR: Failed building wheel for pybluez
Running setup.py clean for pybluez
Failed to build pybluez
Installing collected packages: pybluez
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-sp5zsw6l/pybluez_39a2c4c92aad407bbba7674cb2f4adc3/setup.py'"'"'; __file__='"'"'/tmp/pip-install-sp5zsw6l/pybluez_39a2c4c92aad407bbba7674cb2f4adc3/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-qmg0hesm/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/pybluez
cwd: /tmp/pip-install-sp5zsw6l/pybluez_39a2c4c92aad407bbba7674cb2f4adc3/
Complete output (36 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.9
creating build/lib.linux-aarch64-3.9/bluetooth
copying bluetooth/msbt.py -> build/lib.linux-aarch64-3.9/bluetooth
copying bluetooth/ble.py -> build/lib.linux-aarch64-3.9/bluetooth
copying bluetooth/__init__.py -> build/lib.linux-aarch64-3.9/bluetooth
copying bluetooth/btcommon.py -> build/lib.linux-aarch64-3.9/bluetooth
copying bluetooth/bluez.py -> build/lib.linux-aarch64-3.9/bluetooth
copying bluetooth/widcomm.py -> build/lib.linux-aarch64-3.9/bluetooth
copying bluetooth/macos.py -> build/lib.linux-aarch64-3.9/bluetooth
/usr/lib/python3/dist-packages/setuptools/lib2to3_ex.py:36: SetuptoolsDeprecationWarning: 2to3 support is deprecated. If the project still requires Python 2 support, please migrate to a single-codebase solution or employ an independent conversion process.
warnings.warn(
Fixing build/lib.linux-aarch64-3.9/bluetooth/msbt.py build/lib.linux-aarch64-3.9/bluetooth/ble.py build/lib.linux-aarch64-3.9/bluetooth/__init__.py build/lib.linux-aarch64-3.9/bluetooth/btcommon.py build/lib.linux-aarch64-3.9/bluetooth/bluez.py build/lib.linux-aarch64-3.9/bluetooth/widcomm.py build/lib.linux-aarch64-3.9/bluetooth/macos.py
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
Fixing build/lib.linux-aarch64-3.9/bluetooth/msbt.py build/lib.linux-aarch64-3.9/bluetooth/ble.py build/lib.linux-aarch64-3.9/bluetooth/__init__.py build/lib.linux-aarch64-3.9/bluetooth/btcommon.py build/lib.linux-aarch64-3.9/bluetooth/bluez.py build/lib.linux-aarch64-3.9/bluetooth/widcomm.py build/lib.linux-aarch64-3.9/bluetooth/macos.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-aarch64-3.9
creating build/temp.linux-aarch64-3.9/bluez
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I./port3 -I/usr/include/python3.9 -c bluez/btmodule.c -o build/temp.linux-aarch64-3.9/bluez/btmodule.o
In file included from bluez/btmodule.c:20:
bluez/btmodule.h:5:10: fatal error: bluetooth/bluetooth.h: 没有那个文件或目录
5 | #include <bluetooth/bluetooth.h>
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sp5zsw6l/pybluez_39a2c4c92aad407bbba7674cb2f4adc3/setup.py'"'"'; __file__='"'"'/tmp/pip-install-sp5zsw6l/pybluez_39a2c4c92aad407bbba7674cb2f4adc3/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-qmg0hesm/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/pybluez Check the logs for full command output.
Last active
May 18, 2023 09:02
-
-
Save xgqfrms/af407d86c1630af75046d19c0b785451 to your computer and use it in GitHub Desktop.
pip3 install pybluez error logs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment