The project should be marked as deprecated, for no one in 2025/8/28 can install it on Ubuntu22.04 or Kali 2022.4
When you install bluing on Ubuntu22.04, it shows the followings:
Defaulting to user installation because normal site-packages is not writeable Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple/ Collecting bluing Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e5/1b/135cf87e9c6b51ba2210691054cdb0cf0a6f0c7d8e8ce91100a513f10514/bluing-0.12.0-py3-none-any.whl (1.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 1.5 MB/s 0:00:01 Collecting PyGObject>=3.42.2 (from bluing) Downloading https://pypi.tuna.tsinghua.edu.cn/packages/4a/36/fec530a313d3d48f12e112ac0a65ee3ccc87f385123a0493715609e8e99c/pygobject-3.52.3.tar.gz (1.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 1.1 MB/s 0:00:01 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [23 lines of output] + meson setup /tmp/pip-install-8tl89zc7/pygobject_66b15fb6917d4e8abe4246d6577c97c7 /tmp/pip-install-8tl89zc7/pygobject_66b15fb6917d4e8abe4246d6577c97c7/.mesonpy-gsuly5tv -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md -Dtests=false -Dwheel=true --wrap-mode=nofallback --native-file=/tmp/pip-install-8tl89zc7/pygobject_66b15fb6917d4e8abe4246d6577c97c7/.mesonpy-gsuly5tv/meson-python-native-file.ini The Meson build system Version: 1.9.0 Source dir: /tmp/pip-install-8tl89zc7/pygobject_66b15fb6917d4e8abe4246d6577c97c7 Build dir: /tmp/pip-install-8tl89zc7/pygobject_66b15fb6917d4e8abe4246d6577c97c7/.mesonpy-gsuly5tv Build type: native build Project name: pygobject Project version: 3.52.3 C compiler for the host machine: ccache cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0") C linker for the host machine: cc ld.bfd 2.38 Host machine cpu family: x86_64 Host machine cpu: x86_64 Program python3 found: YES (/usr/bin/python3) Found pkg-config: YES (/usr/bin/pkg-config) 1.8.0 Run-time dependency python found: YES 3.10 Found CMake: /usr/bin/cmake (3.22.1) Run-time dependency girepository-2.0 found: NO (tried pkgconfig and cmake) Not looking for a fallback subproject for the dependency girepository-2.0 because: Use of fallback dependencies is disabled.
../meson.build:31:9: ERROR: Dependency 'girepository-2.0' is required but not found.
A full log can be found at /tmp/pip-install-8tl89zc7/pygobject_66b15fb6917d4e8abe4246d6577c97c7/.mesonpy-gsuly5tv/meson-logs/meson-log.txt
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
Python3 on kali 2022.4 has pointed to 3.13, the dependency has broken. While you force kali 2022.4 to use python 3.10.8 and install bluing, it shows the following:
─$ python3.10 -m pip install bluing
Defaulting to user installation because normal site-packages is not writeable
Collecting bluing
Downloading bluing-0.12.0-py3-none-any.whl.metadata (34 kB)
Requirement already satisfied: PyGObject>=3.42.2 in /usr/lib/python3/dist-packages (from bluing) (3.50.0)
Requirement already satisfied: bluepy>=1.3.0 in /usr/lib/python3/dist-packages (from bluing) (1.3.0)
Collecting btatt>=0.0.19 (from bluing)
Downloading btatt-0.0.19-py3-none-any.whl.metadata (781 bytes)
Collecting btgatt>=0.0.22 (from bluing)
Downloading btgatt-0.0.22-py3-none-any.whl.metadata (754 bytes)
Collecting bthci>=0.0.44 (from bluing)
Downloading bthci-0.0.44-py3-none-any.whl.metadata (753 bytes)
Collecting btsm>=0.0.16 (from bluing)
Downloading btsm-0.0.16-py3-none-any.whl.metadata (746 bytes)
Requirement already satisfied: dbus-python>=1.3.2 in /usr/lib/python3/dist-packages (from bluing) (1.4.0)
Requirement already satisfied: docopt>=0.6.2 in /usr/lib/python3/dist-packages (from bluing) (0.6.2)
Collecting halo>=0.0.31 (from bluing)
Downloading halo-0.0.31.tar.gz (11 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
ERROR: Can not execute setup.py since setuptools failed to import in the build environment with exception:
Traceback (most recent call last):
File "
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
Please don't use >= to collect requirements, the dependent software will update automatically as time went by. Use ==, please.