openlumi / lumimqtt

Service to control Xiaomi Gateway with MQTT
GNU General Public License v3.0
40 stars 14 forks source link

Can't install lumimqtt via pip #21

Closed alive-corpse closed 3 years ago

alive-corpse commented 3 years ago

Hi! I've installed fresh build of openlumi and I can't install lumimqtt.

LuCI openwrt-19.07 branch (git-21.018.57536-6ba9740) / OpenWrt 19.07.7 r11306-c4a6851c72

Python 3.7.10 (default, Jun 14 2021, 09:52:25) [GCC 7.5.0] on linux

pip 20.1.1 from /usr/lib/python3.7/site-packages/pip (python 3.7)

pip3 install -U lumimqtt
Collecting lumimqtt
  Using cached lumimqtt-1.0.12-py3-none-any.whl (24 kB)
Collecting aio-mqtt>=0.2.0
  Using cached aio_mqtt-0.2.0-py3-none-any.whl (18 kB)```
Collecting evdev>=1.0.0
  Using cached evdev-1.4.0.tar.gz (26 kB)
Building wheels for collected packages: evdev
  Building wheel for evdev (setup.py) ... error
  ERROR: Failed building wheel for evdev
  Running setup.py clean for evdev
Failed to build evdev
Installing collected packages: aio-mqtt, evdev, lumimqtt
    Running setup.py install for evdev ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-283vc_uu/evdev/setup.py'"'"'; __file__='"'"'/tmp/pip-install-283vc_uu/evdev/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-qe_naiqs/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.7/evdev Check the logs for full command output.
devbis commented 3 years ago

It requires binary package python3-evdev from opkg preinstalled, see https://github.com/openlumi/lumimqtt#openwrt-installation