fO-000 / bluing

An intelligence gathering tool for hacking Bluetooth
GNU General Public License v3.0
763 stars 105 forks source link

I get a lot of errors! #15

Closed Scrut1ny closed 3 years ago

Scrut1ny commented 3 years ago

I run "sudo pip3 install bluescan" - Sorry for weird format

result:

Collecting bluescan Using cached bluescan-0.6.4-py3-none-any.whl (1.4 MB) Requirement already satisfied: bthci>=0.0.19 in /usr/local/lib/python3.9/dist-packages (from bluescan) (0.0.19) Collecting scapy>=2.4.5 Using cached scapy-2.4.5.tar.gz (1.1 MB) Collecting btgatt>=0.0.2 Using cached btgatt-0.0.2-py3-none-any.whl (20 kB) Requirement already satisfied: pyclui>=0.0.8 in /usr/local/lib/python3.9/dist-packages (from bluescan) (0.0.8) Collecting bluepy>=1.3.0 Using cached bluepy-1.3.0.tar.gz (217 kB) Collecting PyGObject>=3.40.1 Using cached PyGObject-3.40.1.tar.gz (714 kB) Installing build dependencies ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 /usr/lib/python3/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ebyoq5ao/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel pycairo cwd: None Complete output (38 lines): Collecting setuptools Using cached setuptools-57.0.0-py3-none-any.whl (821 kB) Collecting wheel Using cached wheel-0.36.2-py2.py3-none-any.whl (35 kB) Collecting pycairo Using cached pycairo-1.20.1.tar.gz (344 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing wheel metadata: started Preparing wheel metadata: finished with status 'done' Building wheels for collected packages: pycairo Building wheel for pycairo (PEP 517): started Building wheel for pycairo (PEP 517): finished with status 'error' ERROR: Command errored out with exit status 1: command: /usr/bin/python3 /tmp/tmprwjldpvg_in_process.py build_wheel /tmp/tmp2np99kdp cwd: /tmp/pip-install-kk3c5biv/pycairo_0f2656070fa04768a0faf4fbc179c755 Complete output (15 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.9 creating build/lib.linux-x86_64-3.9/cairo copying cairo/init.py -> build/lib.linux-x86_64-3.9/cairo copying cairo/init.pyi -> build/lib.linux-x86_64-3.9/cairo copying cairo/py.typed -> build/lib.linux-x86_64-3.9/cairo running build_ext Package cairo was not found in the pkg-config search path. Perhaps you should add the directory containing `cairo.pc' to the PKG_CONFIG_PATH environment variable No package 'cairo' found Command '['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']' returned non-zero exit status 1.

ERROR: Failed building wheel for pycairo

Failed to build pycairo ERROR: Could not build wheels for pycairo which use PEP 517 and cannot be installed directly

WARNING: Discarding https://files.pythonhosted.org/packages/51/2f/4d5d5afb7000b9151e33952b59163c9389bd867ac6fe85d62f85831fa061/PyGObject-3.40.1.tar.gz#sha256=6fb599aa59ceb9dd05fafb0d72b3862943e7d5e85c8ef6c74856bc6d4321cbab (from https://pypi.org/simple/pygobject/) (requires-python:>=3.6, <4). Command errored out with exit status 1: /usr/bin/python3 /usr/lib/python3/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ebyoq5ao/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel pycairo Check the logs for full command output. Collecting bluescan Using cached bluescan-0.6.3-py3-none-any.whl (1.4 MB) Collecting btatt>=0.0.1 Using cached btatt-0.0.2-py3-none-any.whl (2.1 kB) Collecting pyserial>=3.5 Using cached pyserial-3.5-py2.py3-none-any.whl (90 kB) Requirement already satisfied: dbus-python>=1.2.16 in /usr/lib/python3/dist-packages (from bluescan) (1.2.16) Requirement already satisfied: pybluez>=0.23 in /usr/local/lib/python3.9/dist-packages (from bluescan) (0.23) Requirement already satisfied: PyGObject>=3.38.0 in /usr/lib/python3/dist-packages (from bluescan) (3.38.0) Requirement already satisfied: scapy>=2.4.4 in /usr/lib/python3/dist-packages (from bluescan) (2.4.4) Collecting docopt>=0.6.2 Using cached docopt-0.6.2-py2.py3-none-any.whl Collecting btsmp>=0.0.2 Using cached btsmp-0.0.2-py3-none-any.whl (5.1 kB) Requirement already satisfied: pycairo>=1.11.1 in /usr/lib/python3/dist-packages (from PyGObject>=3.38.0->bluescan) (1.16.2) Building wheels for collected packages: bluepy Building wheel for bluepy (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-le67i4pt/bluepy_159f6cc62d684bdda625c8c28a87dde9/setup.py'"'"'; file='"'"'/tmp/pip-install-le67i4pt/bluepy_159f6cc62d684bdda625c8c28a87dde9/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-sqwi_2rq cwd: /tmp/pip-install-le67i4pt/bluepy_159f6cc62d684bdda625c8c28a87dde9/ Complete output (11 lines): running bdist_wheel running build running build_py Working dir is /tmp/pip-install-le67i4pt/bluepy_159f6cc62d684bdda625c8c28a87dde9 execute make -C ./bluepy clean execute make -C bluepy -j1 Failed to compile bluepy-helper. Exiting install. Command was 'make -C bluepy -j1' in /tmp/pip-install-le67i4pt/bluepy_159f6cc62d684bdda625c8c28a87dde9 Return code was 2 Output was: b"make: Entering directory '/tmp/pip-install-le67i4pt/bluepy_159f6cc62d684bdda625c8c28a87dde9/bluepy'\ntar xzf bluez-src.tgz\ntouch ./bluez-5.47/lib/bluetooth.c ./bluez-5.47/lib/hci.c ./bluez-5.47/lib/sdp.c ./bluez-5.47/lib/uuid.c ./bluez-5.47/attrib/att.c ./bluez-5.47/attrib/gatt.c ./bluez-5.47/attrib/gattrib.c ./bluez-5.47/attrib/utils.c ./bluez-5.47/btio/btio.c ./bluez-5.47/src/log.c ./bluez-5.47/src/shared/mgmt.c ./bluez-5.47/src/shared/crypto.c ./bluez-5.47/src/shared/att.c ./bluez-5.47/src/shared/queue.c ./bluez-5.47/src/shared/util.c ./bluez-5.47/src/shared/io-glib.c ./bluez-5.47/src/shared/timeout-glib.c\nPackage glib-2.0 was not found in the pkg-config search path.\nPerhaps you should add the directory containing glib-2.0.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'glib-2.0' found\nPackage glib-2.0 was not found in the pkg-config search path.\nPerhaps you should add the directory containingglib-2.0.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'glib-2.0' found\ncc -L. -g -Wall -Os -DHAVE_CONFIG_H -I./bluez-5.47/attrib -I./bluez-5.47 -I./bluez-5.47/lib -I./bluez-5.47/src -I./bluez-5.47/gdbus -I./bluez-5.47/btio -I./bluez-5.47/sys -o bluepy-helper bluepy-helper.c ./bluez-5.47/lib/bluetooth.c ./bluez-5.47/lib/hci.c ./bluez-5.47/lib/sdp.c ./bluez-5.47/lib/uuid.c ./bluez-5.47/attrib/att.c ./bluez-5.47/attrib/gatt.c ./bluez-5.47/attrib/gattrib.c ./bluez-5.47/attrib/utils.c ./bluez-5.47/btio/btio.c ./bluez-5.47/src/log.c ./bluez-5.47/src/shared/mgmt.c ./bluez-5.47/src/shared/crypto.c ./bluez-5.47/src/shared/att.c ./bluez-5.47/src/shared/queue.c ./bluez-5.47/src/shared/util.c ./bluez-5.47/src/shared/io-glib.c ./bluez-5.47/src/shared/timeout-glib.c \nbluepy-helper.c:33:10: fatal error: glib.h: No such file or directory\n 33 | #include \n | ^~\ncompilation terminated.\n./bluez-5.47/attrib/att.c:33:10: fatal error: glib.h: No such file or directory\n 33 | #include \n | ^~\ncompilation terminated.\n./bluez-5.47/attrib/gatt.c:32:10: fatal error: glib.h: No such file or directory\n 32 | #include \n | ^~\ncompilation terminated.\n./bluez-5.47/attrib/gattrib.c:34:10: fatal error: glib.h: No such file or directory\n 34 | #include \n | ^~\ncompilation terminated.\n./bluez-5.47/attrib/utils.c:30:10: fatal error: glib.h: No such file or directory\n 30 | #include \n | ^~\ncompilation terminated.\n./bluez-5.47/btio/btio.c:37:10: fatal error: glib.h: No such file or directory\n 37 | #include \n | ^~\ncompilation terminated.\n./bluez-5.47/src/log.c:38:10: fatal error: glib.h: No such file or directory\n 38 | #include \n | ^~\ncompilation terminated.\n./bluez-5.47/src/shared/io-glib.c:30:10: fatal error: glib.h: No such file or directory\n 30 | #include \n | ^~\ncompilation terminated.\n./bluez-5.47/src/shared/timeout-glib.c:22:10: fatal error: glib.h: No such file or directory\n 22 | #include \n | ^~~~\ncompilation terminated.\nmake: *** [Makefile:30: bluepy-helper] Error 1\nmake: Leaving directory '/tmp/pip-install-le67i4pt/bluepy_159f6cc62d684bdda625c8c28a87dde9/bluepy'\n"

ERROR: Failed building wheel for bluepy Running setup.py clean for bluepy Failed to build bluepy Installing collected packages: bluepy, pyserial, docopt, btsmp, btgatt, btatt, bluescan Running setup.py install for bluepy ... 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-le67i4pt/bluepy_159f6cc62d684bdda625c8c28a87dde9/setup.py'"'"'; file='"'"'/tmp/pip-install-le67i4pt/bluepy_159f6cc62d684bdda625c8c28a87dde9/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-alf3j2ea/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/bluepy cwd: /tmp/pip-install-le67i4pt/bluepy_159f6cc62d684bdda625c8c28a87dde9/ Complete output (11 lines): running install running build running build_py Working dir is /tmp/pip-install-le67i4pt/bluepy_159f6cc62d684bdda625c8c28a87dde9 execute make -C ./bluepy clean execute make -C bluepy -j1 Failed to compile bluepy-helper. Exiting install. Command was 'make -C bluepy -j1' in /tmp/pip-install-le67i4pt/bluepy_159f6cc62d684bdda625c8c28a87dde9 Return code was 2 Output was: b"make: Entering directory '/tmp/pip-install-le67i4pt/bluepy_159f6cc62d684bdda625c8c28a87dde9/bluepy'\ntar xzf bluez-src.tgz\ntouch ./bluez-5.47/lib/bluetooth.c ./bluez-5.47/lib/hci.c ./bluez-5.47/lib/sdp.c ./bluez-5.47/lib/uuid.c ./bluez-5.47/attrib/att.c ./bluez-5.47/attrib/gatt.c ./bluez-5.47/attrib/gattrib.c ./bluez-5.47/attrib/utils.c ./bluez-5.47/btio/btio.c ./bluez-5.47/src/log.c ./bluez-5.47/src/shared/mgmt.c ./bluez-5.47/src/shared/crypto.c ./bluez-5.47/src/shared/att.c ./bluez-5.47/src/shared/queue.c ./bluez-5.47/src/shared/util.c ./bluez-5.47/src/shared/io-glib.c ./bluez-5.47/src/shared/timeout-glib.c\nPackage glib-2.0 was not found in the pkg-config search path.\nPerhaps you should add the directory containing glib-2.0.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'glib-2.0' found\nPackage glib-2.0 was not found in the pkg-config search path.\nPerhaps you should add the directory containingglib-2.0.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'glib-2.0' found\ncc -L. -g -Wall -Os -DHAVE_CONFIG_H -I./bluez-5.47/attrib -I./bluez-5.47 -I./bluez-5.47/lib -I./bluez-5.47/src -I./bluez-5.47/gdbus -I./bluez-5.47/btio -I./bluez-5.47/sys -o bluepy-helper bluepy-helper.c ./bluez-5.47/lib/bluetooth.c ./bluez-5.47/lib/hci.c ./bluez-5.47/lib/sdp.c ./bluez-5.47/lib/uuid.c ./bluez-5.47/attrib/att.c ./bluez-5.47/attrib/gatt.c ./bluez-5.47/attrib/gattrib.c ./bluez-5.47/attrib/utils.c ./bluez-5.47/btio/btio.c ./bluez-5.47/src/log.c ./bluez-5.47/src/shared/mgmt.c ./bluez-5.47/src/shared/crypto.c ./bluez-5.47/src/shared/att.c ./bluez-5.47/src/shared/queue.c ./bluez-5.47/src/shared/util.c ./bluez-5.47/src/shared/io-glib.c ./bluez-5.47/src/shared/timeout-glib.c \nbluepy-helper.c:33:10: fatal error: glib.h: No such file or directory\n 33 | #include \n | ^~\ncompilation terminated.\n./bluez-5.47/attrib/att.c:33:10: fatal error: glib.h: No such file or directory\n 33 | #include \n | ^~\ncompilation terminated.\n./bluez-5.47/attrib/gatt.c:32:10: fatal error: glib.h: No such file or directory\n 32 | #include \n | ^~\ncompilation terminated.\n./bluez-5.47/attrib/gattrib.c:34:10: fatal error: glib.h: No such file or directory\n 34 | #include \n | ^~\ncompilation terminated.\n./bluez-5.47/attrib/utils.c:30:10: fatal error: glib.h: No such file or directory\n 30 | #include \n | ^~\ncompilation terminated.\n./bluez-5.47/btio/btio.c:37:10: fatal error: glib.h: No such file or directory\n 37 | #include \n | ^~\ncompilation terminated.\n./bluez-5.47/src/log.c:38:10: fatal error: glib.h: No such file or directory\n 38 | #include \n | ^~\ncompilation terminated.\n./bluez-5.47/src/shared/io-glib.c:30:10: fatal error: glib.h: No such file or directory\n 30 | #include \n | ^~\ncompilation terminated.\n./bluez-5.47/src/shared/timeout-glib.c:22:10: fatal error: glib.h: No such file or directory\n 22 | #include \n | ^~~~\ncompilation terminated.\nmake: *** [Makefile:30: bluepy-helper] Error 1\nmake: Leaving directory '/tmp/pip-install-le67i4pt/bluepy_159f6cc62d684bdda625c8c28a87dde9/bluepy'\n"

ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-le67i4pt/bluepy_159f6cc62d684bdda625c8c28a87dde9/setup.py'"'"'; file='"'"'/tmp/pip-install-le67i4pt/bluepy_159f6cc62d684bdda625c8c28a87dde9/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-alf3j2ea/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/bluepy Check the logs for full command output.

Scrut1ny commented 3 years ago

Fuck, didn't see the other requirements sorry lmao