devbis / ble2mqtt

Bluetooth to MQTT bridge, add your bluetooth-capable (including controllable) devices to your smart home
MIT License
125 stars 26 forks source link

Cannot install on Xiaomi DGNWG05LM with OpenWRT #67

Closed booroondook-eng closed 8 months ago

booroondook-eng commented 8 months ago

After this command: pip3 install "bleak>=0.11.0" I see the following output:

root@DGNWG05LM:~# pip3 install "bleak>=0.11.0"
Collecting bleak>=0.11.0
  Downloading bleak-0.21.1-py3-none-any.whl.metadata (5.3 kB)
Collecting async-timeout<5,>=3.0.0 (from bleak>=0.11.0)
  Downloading async_timeout-4.0.3-py3-none-any.whl.metadata (4.2 kB)
Collecting dbus-fast<3,>=1.83.0 (from bleak>=0.11.0)
  Downloading dbus_fast-2.12.0.tar.gz (68 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 68.8/68.8 kB 376.7 kB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting typing-extensions>=4.7.0 (from bleak>=0.11.0)
  Downloading typing_extensions-4.8.0-py3-none-any.whl.metadata (3.0 kB)
Downloading bleak-0.21.1-py3-none-any.whl (137 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 137.8/137.8 kB 1.1 MB/s eta 0:00:00
Downloading async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
Downloading typing_extensions-4.8.0-py3-none-any.whl (31 kB)
Building wheels for collected packages: dbus-fast
  error: subprocess-exited-with-error

  × Building wheel for dbus-fast (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  Building wheel for dbus-fast (pyproject.toml) ... error
  ERROR: Failed building wheel for dbus-fast
Failed to build dbus-fast
ERROR: Could not build wheels for dbus-fast, which is required to install pyproject.toml-based projects
devbis commented 8 months ago

Use precompiled bleak from opkg or install bleak==0.14.3 which works with non-compiled dbus library.